[82712] trunk/dports/games/ship84/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Aug 18 14:04:42 PDT 2011


Revision: 82712
          http://trac.macports.org/changeset/82712
Author:   ryandesign at macports.org
Date:     2011-08-18 14:04:42 -0700 (Thu, 18 Aug 2011)
Log Message:
-----------
ship84:
 * use app portgroup
 * use port:-style dependencies
 * build 32-bit so it doesn't crash
 * ensure we're UsingTheRightCompiler and archs
 * add universal variant

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

Modified: trunk/dports/games/ship84/Portfile
===================================================================
--- trunk/dports/games/ship84/Portfile	2011-08-18 20:45:41 UTC (rev 82711)
+++ trunk/dports/games/ship84/Portfile	2011-08-18 21:04:42 UTC (rev 82712)
@@ -2,14 +2,18 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           app 1.0
 
 name                ship84
 version             1.3.3.7
-revision            1
+revision            2
 categories          games
 platforms           darwin
 maintainers         nomaintainer
 
+# Compiles ok for x86_64 but crashes on launch after showing main window
+supported_archs     i386 ppc
+
 description         space invaders clone using SDL
 
 long_description    The Angryfez Army and their minions have pointed the \
@@ -24,6 +28,9 @@
 
 checksums           md5     06df2ae060fe4a076d7fa17a57205348
 
+depends_lib         port:libsdl \
+                    port:libsdl_mixer
+
 extract.mkdir       yes
 
 post-extract {
@@ -43,19 +50,19 @@
                     patch-shipsdl.c.diff \
                     patch-shippy.c.diff
 
-depends_lib         bin:sdl-config:libsdl \
-                    lib:libSDL_mixer:libsdl_mixer
-
-configure {
+post-patch {
     reinplace "s|data/|${prefix}/share/games/${name}/|g" \
         ${worksrcpath}/shipall.c \
         ${worksrcpath}/shippy.c \
         ${worksrcpath}/shipsdl.c
 }
 
-build.type          gnu
-build.args          -f GNUmakefile
+use_configure       no
 
+variant universal {}
+
+build.args          CC="${configure.cc} [get_canonical_archflags]"
+
 destroot {
     xinstall -m 755 -d ${destroot}${prefix}/bin \
         ${destroot}${prefix}/share/games
@@ -63,13 +70,9 @@
     file copy ${worksrcpath}/data ${destroot}${prefix}/share/games/${name}
 }
 
-platform darwin {
-    post-destroot {
-        xinstall -d -m 755 ${destroot}/Applications/MacPorts/Ship84.app/Contents/MacOS
-        system "ln -sf ${prefix}/bin/shippy \
-            ${destroot}/Applications/MacPorts/Ship84.app/Contents/MacOS/Ship84"
-    }
-}
+app.name            Shippy1984
+app.executable      shippy
+app.identifier      net.sourceforge.ship84.Shippy1984
 
 livecheck.type      sourceforge
 livecheck.regex     /shipv(\[0-9.\]+)UNIX${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110818/3d54efd6/attachment-0001.html>


More information about the macports-changes mailing list