[36945] trunk/dports/games/SDLInvaders/Portfile

phw at macports.org phw at macports.org
Tue May 20 10:51:24 PDT 2008


Revision: 36945
          http://trac.macosforge.org/projects/macports/changeset/36945
Author:   phw at macports.org
Date:     2008-05-20 10:51:23 -0700 (Tue, 20 May 2008)

Log Message:
-----------
Fixed the duke-port overwriting SDLInvaders

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

Modified: trunk/dports/games/SDLInvaders/Portfile
===================================================================
--- trunk/dports/games/SDLInvaders/Portfile	2008-05-20 17:40:52 UTC (rev 36944)
+++ trunk/dports/games/SDLInvaders/Portfile	2008-05-20 17:51:23 UTC (rev 36945)
@@ -2,28 +2,35 @@
 
 PortSystem 1.0
 
-name		duke3d
-version		0.1
+name		SDLInvaders
+version		0.8.0
 categories	games
 platforms	darwin
-maintainers	phw openmaintainer
-description	Runtime for FPS Duke Nukem 3D
-long_description Duke Nukem 3D is a first-person shooter computer game \
-		 developed by 3D Realms and published by Apogee Software. \
-		 Level and gamefiles are not included (use Shareware Version)
-fetch.type      svn
-svn.url 	svn://svn.icculus.org/duke3d/trunk/
-homepage	http://icculus.org/duke3d/
+maintainers	nomaintainer
+description	simple clone of the famous Space Invaders game.
+long_description	${description}
 
+# no better homepage available, sf.net only has outdated versions
+homepage	http://sourceforge.net/projects/sdlinvaders
+master_sites	http://csnlinux.genesee.edu/opsys/downloads/software-lesson/
+checksums	md5 f3fbca07eb05acfae23d2d554a0f1375
+
 depends_lib	port:libsdl \
 		port:libsdl_image \
 		port:libsdl_mixer
 
-worksrcdir       trunk/source/
-use_configure    no
-build.args       macosx=true
+configure.cflags-append	"-I${prefix}/include"
+configure.args	--disable-sdltest
 
-destroot {
-	xinstall -m 755 -d ${destroot}/${prefix}/bin
-	file copy ${worksrcpath}/${name} ${destroot}/${prefix}/bin/
+build.env	CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
+
+platform darwin	{
+	post-destroot	{
+		file attributes \
+			${destroot}${prefix}/share/SDLInvaders/highscores \
+			-permissions +w
+		file mkdir ${destroot}/Applications/MacPorts/${name}.app/Contents/MacOS
+		system "ln -s ${prefix}/bin/${name} \
+			${destroot}/Applications/MacPorts/${name}.app/Contents/MacOS"
 	}
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080520/8935d820/attachment.htm 


More information about the macports-changes mailing list