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

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 02:09:56 PDT 2008


Revision: 38836
          http://trac.macosforge.org/projects/macports/changeset/38836
Author:   ryandesign at macports.org
Date:     2008-08-01 02:09:55 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
SDLInvaders:

 * use ${applications_dir} instead of assuming /Applications/MacPorts
 * remove unnecessary configure and build flags
 * create symlink using tcl ln command instead of using system
 * create directory using xinstall -d instead of file mkdir

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

Modified: trunk/dports/games/SDLInvaders/Portfile
===================================================================
--- 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
 	}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/fb674fac/attachment-0001.html 


More information about the macports-changes mailing list