Skip to content
Permalink
Browse files

54321:

 * Enabled universal support.
 * Fixed dependencies (and changed them to port:- ones) based on trace mode and otool(1).
 * Added sha1 and rmd160 checksums.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@28218 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Anthony Ramine
Anthony Ramine committed Aug 24, 2007
1 parent 1846395 commit c7d101e3235bf78a0c00e5325cdeb03398a7e9dd
Showing with 32 additions and 21 deletions.
  1. +32 −12 games/54321/Portfile
  2. +0 −9 games/54321/files/patch-variables.GNU
@@ -5,7 +5,7 @@ PortSystem 1.0
name 54321
version 1.0.2001.11.16
categories games
platforms darwin
platforms macosx
maintainers nomaintainer
description 5 games in 4, 3, or 2 dimensions for 1 player

@@ -18,24 +18,44 @@ long_description \
homepage http://www.nklein.com/products/54321/
master_sites ${homepage}${version}/
distname ${name}
extract.suffix .tgz

depends_lib lib:libSDL-1:libsdl lib:libSDL_image-1:libsdl_image \
lib:libpng.3:libpng lib:libz.1:zlib
depends_build port:libiconv \
port:zlib

checksums md5 20b2ad52ef45742c1a65911b225b6ddc
depends_lib port:libsdl \
port:libsdl_image \
port:libpng

checksums md5 20b2ad52ef45742c1a65911b225b6ddc \
sha1 9841276d6e1f00de4de22cc11d19e1f08a9a01cb \
rmd160 63381c6f9cbc2d785ebf76dddc54b178cd704078

extract.suffix .tgz
worksrcdir ${name}
patchfiles patch-variables.GNU

use_configure no
post-patch {
cd ${worksrcpath}/archs/Darwin

reinplace -E "/CXX/s/CC/g++/" variables.GNU
reinplace -E "s@/(usr/local|sw)@${prefix}@" variables.GNU
}

build.type gnu
build.target all size
build.env CXX=g++
use_configure no

build.type gnu
build.env CC=g++

destroot {
system "ditto -v -rsrcFork Release \
${destroot}/Applications/MacPorts/54321"
copy ${worksrcpath}/Release/bin/Darwin/${name}.app \
${destroot}/Applications/MacPorts/
}

variant universal {
post-patch {
cd ${worksrcpath}/archs/Darwin

reinplace -E "/^CPPFLAGS/s|\\+=|+= ${configure.universal_cflags}|" variables.GNU
reinplace -E "/^LDFLAGS/s|\\+=|+= ${configure.universal_ldflags}|" variables.GNU
}
}

This file was deleted.

0 comments on commit c7d101e

Please sign in to comment.
You can’t perform that action at this time.