Changeset 28218 for trunk/dports


Ignore:
Timestamp:
Aug 24, 2007, 10:41:59 PM (17 years ago)
Author:
nox@…
Message:

54321:

  • Enabled universal support.
  • Fixed dependencies (and changed them to port:- ones) based on trace mode and otool(1).
  • Added sha1 and rmd160 checksums.
Location:
trunk/dports/games/54321
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/54321/Portfile

    r28215 r28218  
    66version                 1.0.2001.11.16
    77categories              games
    8 platforms               darwin
     8platforms               macosx
    99maintainers             nomaintainer
    1010description             5 games in 4, 3, or 2 dimensions for 1 player
     
    1919master_sites    ${homepage}${version}/
    2020distname                ${name}
     21extract.suffix  .tgz
    2122
    22 depends_lib             lib:libSDL-1:libsdl lib:libSDL_image-1:libsdl_image \
    23                                 lib:libpng.3:libpng lib:libz.1:zlib
     23depends_build   port:libiconv \
     24                                port:zlib
    2425
    25 checksums               md5 20b2ad52ef45742c1a65911b225b6ddc
     26depends_lib             port:libsdl \
     27                                port:libsdl_image \
     28                                port:libpng
    2629
    27 extract.suffix  .tgz
     30checksums               md5 20b2ad52ef45742c1a65911b225b6ddc \
     31                                sha1 9841276d6e1f00de4de22cc11d19e1f08a9a01cb \
     32                                rmd160 63381c6f9cbc2d785ebf76dddc54b178cd704078
     33
    2834worksrcdir              ${name}
    29 patchfiles              patch-variables.GNU
    3035
    31 use_configure    no
     36post-patch {
     37        cd ${worksrcpath}/archs/Darwin
    3238
    33 build.type       gnu
    34 build.target     all size
    35 build.env        CXX=g++
     39        reinplace -E "/CXX/s/CC/g++/" variables.GNU
     40        reinplace -E "s@/(usr/local|sw)@${prefix}@" variables.GNU
     41}
     42
     43use_configure   no
     44
     45build.type              gnu
     46build.env               CC=g++
    3647
    3748destroot {
    38         system "ditto -v -rsrcFork Release \
    39                 ${destroot}/Applications/MacPorts/54321"
     49        copy ${worksrcpath}/Release/bin/Darwin/${name}.app \
     50                ${destroot}/Applications/MacPorts/
    4051}
    4152
     53variant universal {
     54        post-patch {
     55                cd ${worksrcpath}/archs/Darwin
     56
     57                reinplace -E "/^CPPFLAGS/s|\\+=|+= ${configure.universal_cflags}|" variables.GNU
     58                reinplace -E "/^LDFLAGS/s|\\+=|+= ${configure.universal_ldflags}|" variables.GNU
     59        }
     60}
     61
Note: See TracChangeset for help on using the changeset viewer.