Ignore:
Timestamp:
Apr 3, 2012, 7:08:04 PM (7 years ago)
Author:
jeremyhu@…
Message:

ld64,cctools: Reformat the Portfile for consistency across the ports and for easier future updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/cctools/Portfile

    r91498 r91501  
    2727patchfiles              PR-11136237.patch
    2828
    29 use_configure           no
    30 destroot.args           DSTROOT=${destroot}${prefix} RC_ProjectSourceVersion=${version}
    31 
    3229if {${os.major} < 9} {
    3330    pre-fetch {
     
    3532        return -code error "incompatible Mac OS X version"
    3633    }
     34} elseif {${os.major} < 10} {
     35    # We should bump to at-least version 795, which was included in
     36    # XCode 3.2.6 and supports Tiger and Leopard targets.
     37    version             698.1
     38    revision            1
     39    distname            cctools-${version}
     40    checksums           rmd160  898c7b46869d4989c115420912fdd8d96ae923d3 \
     41                        sha256  383f1c0c78a2b3efdfdf7ce01adb7e2f8ee9985164dba6ab1c0fae800a211cec
     42    patchfiles          patch-misc_libtool.c.diff PR-11136237-698.1.patch
     43
     44    supported_archs     i386 ppc
     45} elseif {${os.major} == 10} {
     46    version             809
     47    revision            1
     48    distname            cctools-${version}
     49    checksums           rmd160  f433124035ac0ef403bdc6edec087bdedd0b4375 \
     50                        sha256  03ba62749b843b131c7304a044a98c6ffacd65b1399b921d69add0375f79d8ad
    3751}
     52
     53use_configure           no
     54destroot.args           DSTROOT=${destroot}${prefix} RC_ProjectSourceVersion=${version}
    3855
    3956post-patch {
     
    89106    build.args-append RC_OS="macos"
    90107    destroot.args-append RC_OS="macos"
    91 
    92     if {${os.major} < 10} {
    93         # We should bump to at-least version 795, which was included in
    94         # XCode 3.2.6 and supports Tiger and Leopard targets.
    95         version             698.1
    96         revision            1
    97         distname            cctools-${version}
    98         checksums           rmd160  898c7b46869d4989c115420912fdd8d96ae923d3 \
    99                             sha256  383f1c0c78a2b3efdfdf7ce01adb7e2f8ee9985164dba6ab1c0fae800a211cec
    100         patchfiles          patch-misc_libtool.c.diff PR-11136237-698.1.patch
    101 
    102         supported_archs     i386 ppc
    103     } elseif {${os.major} == 10} {
    104         version             809
    105         revision            1
    106         distname            cctools-${version}
    107         checksums           rmd160  f433124035ac0ef403bdc6edec087bdedd0b4375 \
    108                             sha256  03ba62749b843b131c7304a044a98c6ffacd65b1399b921d69add0375f79d8ad
    109     }
    110108}
    111109
Note: See TracChangeset for help on using the changeset viewer.