[28218] trunk/dports/games/54321

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 24 15:41:59 PDT 2007


Revision: 28218
          http://trac.macosforge.org/projects/macports/changeset/28218
Author:   nox at macports.org
Date:     2007-08-24 15:41:59 -0700 (Fri, 24 Aug 2007)

Log 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.

Modified Paths:
--------------
    trunk/dports/games/54321/Portfile

Removed Paths:
-------------
    trunk/dports/games/54321/files/

Modified: trunk/dports/games/54321/Portfile
===================================================================
--- trunk/dports/games/54321/Portfile	2007-08-24 21:58:45 UTC (rev 28217)
+++ trunk/dports/games/54321/Portfile	2007-08-24 22:41:59 UTC (rev 28218)
@@ -5,7 +5,7 @@
 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 @@
 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
 
-extract.suffix	.tgz
+checksums		md5 20b2ad52ef45742c1a65911b225b6ddc \
+				sha1 9841276d6e1f00de4de22cc11d19e1f08a9a01cb \
+				rmd160 63381c6f9cbc2d785ebf76dddc54b178cd704078
+
 worksrcdir		${name}
-patchfiles		patch-variables.GNU
 
-use_configure    no
+post-patch {
+	cd ${worksrcpath}/archs/Darwin
 
-build.type       gnu
-build.target     all size
-build.env        CXX=g++
+	reinplace -E "/CXX/s/CC/g++/" variables.GNU
+	reinplace -E "s@/(usr/local|sw)@${prefix}@" variables.GNU
+}
 
+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
+	}
+}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070824/8b28db26/attachment.html


More information about the macports-changes mailing list