Ticket #49126: class-dump.diff

File class-dump.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 9 years ago)
  • Portfile

     
    33
    44PortSystem          1.0
    55PortGroup           xcode 1.0
     6PortGroup           xcodeversion 1.0
    67
    78name                class-dump
    89version             3.5
     
    2627# error: -fobjc-arc is not supported on platforms using the legacy runtime
    2728supported_archs     x86_64
    2829
    29 worksrcdir          ${distname}/src
     30build.dir           ${worksrcpath}/src
    3031
    3132# 3.5+ must be built against the 10.9 SDK, as it requires LC_* constants
    3233# and other definitions unavailable in earlier SDKs. It will, however,
    3334# run against 10.8+.
    34 configure.sdkroot   "$developer_dir/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"
     35minimum_xcodeversions   {12 5}
     36if {${configure.sdk_version} eq "10.8"} {
     37    configure.sdk_version 10.9
     38}
     39
    3540xcode.target        class-dump deprotect
    36 
    3741xcode.configuration Release
    3842xcode.destroot.path ${prefix}/bin
    3943
     
    4549}
    4650
    4751post-destroot {
    48     set docdir ${prefix}/share/doc/${name}
     52    set docdir ${prefix}/share/doc/${subport}
    4953    xinstall -d ${destroot}${docdir}
    50     xinstall -m 644 ${worksrcpath}/../README.md ${destroot}${docdir}
     54    xinstall -m 644 ${worksrcpath}/README.md ${destroot}${docdir}
    5155
    5256    delete ${destroot}${prefix}/bin/libMachObjC.a
    5357}