most recent changes, diff for sdlinvaders

Index: games/SDLInvaders/Portfile
--- games/SDLInvaders/Portfile (revision 36944)
+++ games/SDLInvaders/Portfile (revision 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"
}
+}