[83017] trunk/dports/games/2Pong

ryandesign at macports.org ryandesign at macports.org
Tue Aug 23 09:13:03 PDT 2011


Revision: 83017
          http://trac.macports.org/changeset/83017
Author:   ryandesign at macports.org
Date:     2011-08-23 09:13:01 -0700 (Tue, 23 Aug 2011)
Log Message:
-----------
2Pong:

 * use app portgroup and add app icon
 * ensure we're UsingTheRightCompiler
 * force 32-bit build; crashes when built 64-bit
 * indicate license
 * installs_libs no

Modified Paths:
--------------
    trunk/dports/games/2Pong/Portfile

Added Paths:
-----------
    trunk/dports/games/2Pong/files/
    trunk/dports/games/2Pong/files/patch-Makefile.diff

Modified: trunk/dports/games/2Pong/Portfile
===================================================================
--- trunk/dports/games/2Pong/Portfile	2011-08-23 14:54:56 UTC (rev 83016)
+++ trunk/dports/games/2Pong/Portfile	2011-08-23 16:13:01 UTC (rev 83017)
@@ -1,14 +1,20 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               app 1.0
 
 name                    2Pong
 version                 0.6
-revision                1
+revision                2
 categories              games
 platforms               darwin
 maintainers             nomaintainer
+license                 GPL-2
+installs_libs           no
 
+# Compiles ok for x86_64 but crashes on launch
+supported_archs         i386 ppc
+
 description             Pong game with 2 balls, 2 and 4 player support
 long_description        ${description}
 
@@ -21,17 +27,20 @@
                         port:libsdl_image \
                         port:libsdl_mixer
 
+patchfiles              patch-Makefile.diff
+
 use_configure           no
 
-build.args              CFLAGS="-I${prefix}/include -I${prefix}/include/SDL"
+build.args              CC="${configure.cc} [get_canonical_archflags]" \
+                        CFLAGS="-I${prefix}/include -I${prefix}/include/SDL"
 
 destroot.destdir        PRE=${destroot}${prefix}
 
 post-destroot {
     reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/2Pong
-    xinstall -d ${destroot}${applications_dir}/2Pong.app/Contents/MacOS
-    ln -s ${prefix}/bin/2Pong ${destroot}${applications_dir}/2Pong.app/Contents/MacOS/2Pong
 }
 
+app.icon                Graphics/2pongicon.png
+
 livecheck.version       ${name}-${version}
 livecheck.distname      ${name}

Added: trunk/dports/games/2Pong/files/patch-Makefile.diff
===================================================================
--- trunk/dports/games/2Pong/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/games/2Pong/files/patch-Makefile.diff	2011-08-23 16:13:01 UTC (rev 83017)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2003-07-15 08:16:20.000000000 -0500
++++ Makefile	2011-08-23 10:56:18.000000000 -0500
+@@ -9,7 +9,7 @@
+ 
+ 
+ 2Pong: $(OBJECTS) src/2Pong.o
+-	gcc $(CFLAGS) -o 2Pong $(OBJECTS) src/2Pong.o $(LIBS)
++	$(CC) $(CFLAGS) -o 2Pong $(OBJECTS) src/2Pong.o $(LIBS)
+ 
+ 
+ clean:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110823/45055ecb/attachment.html>


More information about the macports-changes mailing list