Ignore:
Timestamp:
Oct 9, 2009, 7:12:52 AM (10 years ago)
Author:
jmr@…
Message:

CosmicDebris: update to 2.1, use xcode portgroup, restrict to building 32-bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/CosmicDebris/Portfile

    r33413 r59070  
    22
    33PortSystem 1.0
     4PortGroup xcode 1.0
    45
    56name                    CosmicDebris
    6 version                 2.0
     7version                 2.1
    78categories              aqua science
    8 platforms               darwin
    99maintainers             nomaintainer
    1010homepage                http://www.jschilling.net/sw_cosmicdebris.php
     
    1818
    1919checksums \
    20         md5 0711dcb9a47ef0fae2a6ce069d3ed06c \
    21         sha1 8c3ee7218639e4355eb5180e570d637de3d47707 \
    22         rmd160 c5ebf70f8882f01bccc8d827ab68aa174ad71aa4
     20        md5 bcbfb5768bf689a6f668583a5bc64c61 \
     21        sha1 9d6462b3866cba3449848ffd632f36052bea9251 \
     22        rmd160 5849aa4da016cd954818d8bcffa079815ba2c37c
    2323
    2424dist_subdir             ${name}/${version}
     
    2626use_zip                 yes
    2727
    28 use_configure           no
    29 
    30 build.type              pbx
    31 build.args              -configuration Deployment
    32 build.target            { -project "Cosmic Debris.xcodeproj" -target "Cosmic Debris" }
    33 
    34 set appdir      build
    35 platform darwin 8 {
    36         if {$xcodeversion == "2.1"} {
    37                 set appdir      build/Deployment
    38         }
     28# current version uses NSMailDelivery which is not available in 64-bit
     29if {$build_arch == "x86_64"} {
     30    configure.build_arch i386
     31} elseif {$build_arch == "ppc64"} {
     32    configure.build_arch ppc
     33}
     34if {[variant_isset universal] && [string match *64* $universal_archs]} {
     35    pre-fetch {
     36        return -code error "$name $version cannot be built for 64-bit architectures"
     37    }
    3938}
    4039
    41 destroot {              set appPath ${destroot}/Applications/MacPorts
    42                         file mkdir ${appPath}
    43                         file copy "${worksrcpath}/${appdir}/Cosmic Debris.app" ${appPath}
    44                         }
    45 
    46 default_variants +universal
    47 variant universal {}
    48 pre-fetch {
    49         if {![variant_isset universal]} {
    50                 return -code error "${name} is only available in a universal version"
    51         }
    52 }
     40xcode.project   "Cosmic Debris.xcodeproj"
     41xcode.target    "Cosmic Debris"
Note: See TracChangeset for help on using the changeset viewer.