[82692] trunk/dports/games/starfighter/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Aug 18 08:13:37 PDT 2011


Revision: 82692
          http://trac.macports.org/changeset/82692
Author:   ryandesign at macports.org
Date:     2011-08-18 06:29:43 -0700 (Thu, 18 Aug 2011)
Log Message:
-----------
starfighter: use app portgroup; ensure we're UsingTheRightCompiler and build_arch and add universal variant; fix license

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

Modified: trunk/dports/games/starfighter/Portfile
===================================================================
--- trunk/dports/games/starfighter/Portfile	2011-08-18 13:17:32 UTC (rev 82691)
+++ trunk/dports/games/starfighter/Portfile	2011-08-18 13:29:43 UTC (rev 82692)
@@ -1,13 +1,15 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               app 1.0
 
 name                    starfighter
 version                 1.1-1
+revision                1
 categories              games
 platforms               darwin
 maintainers             nomaintainer
-license                 GPL-2
+license                 GPL-2+
 
 description             2D Space Shooter
 
@@ -36,14 +38,17 @@
 
 use_configure           no
 
-build.args              PREFIX=${prefix}
+variant universal {}
 
+build.args              PREFIX=${prefix} \
+                        CXX="${configure.cxx} [get_canonical_archflags]"
+
 destroot.destdir        PREFIX=${destroot}${prefix}
 
 post-destroot {
-    xinstall -d ${destroot}${prefix}/share/doc/${name} \
-        ${destroot}${applications_dir}/Starfighter.app/Contents/MacOS
+    xinstall -d ${destroot}${prefix}/share/doc/${name}
     xinstall -m 644 ${worksrcpath}/docs/LICENSE \
         ${destroot}${prefix}/share/doc/${name}
-    ln -s ${prefix}/bin/starfighter ${destroot}${applications_dir}/Starfighter.app/Contents/MacOS/Starfighter
 }
+
+app.identifier              uk.co.parallelrealities.${app.name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110818/3543fcc9/attachment-0001.html>


More information about the macports-changes mailing list