Modified: trunk/dports/games/SDLInvaders/Portfile (38835 => 38836)
--- trunk/dports/games/SDLInvaders/Portfile 2008-08-01 08:47:58 UTC (rev 38835)
+++ trunk/dports/games/SDLInvaders/Portfile 2008-08-01 09:09:55 UTC (rev 38836)
@@ -19,18 +19,20 @@
port:libsdl_image \
port:libsdl_mixer
-configure.cflags-append "-I${prefix}/include"
configure.args --disable-sdltest
-build.env CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+ set applications_dir /Applications/MacPorts
+}
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"
+ xinstall -d ${destroot}${applications_dir}/${name}.app/Contents/MacOS
+ ln -s ${prefix}/bin/${name} \
+ ${destroot}${applications_dir}/${name}.app/Contents/MacOS
}
}