[77966] trunk/dports/games/bzflag/Portfile

phw at macports.org phw at macports.org
Mon Apr 18 01:35:11 PDT 2011


Revision: 77966
          http://trac.macports.org/changeset/77966
Author:   phw at macports.org
Date:     2011-04-18 01:35:10 -0700 (Mon, 18 Apr 2011)
Log Message:
-----------
Fixed Ticket #26179 and #26180, thanks to ryandesign and brad

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

Modified: trunk/dports/games/bzflag/Portfile
===================================================================
--- trunk/dports/games/bzflag/Portfile	2011-04-18 08:20:39 UTC (rev 77965)
+++ trunk/dports/games/bzflag/Portfile	2011-04-18 08:35:10 UTC (rev 77966)
@@ -2,38 +2,57 @@
 
 PortSystem 1.0
 
-name		    bzflag
-version		    2.0.16
-revision	    1
-categories	    games
-platforms	    darwin
-maintainers	    phw openmaintainer
+name				bzflag
+version				2.0.16
+revision			2
+categories			games
+platforms			darwin
+maintainers			phw openmaintainer
  
-description	    3D tank game, multiplayer and internet gaming available
+description			3D tank game, multiplayer and internet gaming available
 long_description    BZFlag is a free multiplayer multiplatform 3D tank \
-		    battle game. The name stands for Battle Zone capture Flag.
+					battle game. The name stands for Battle Zone capture Flag.
 
-homepage	    http://bzflag.org
+homepage			http://bzflag.org
 master_sites	    http://ftp.bzflag.org/bzflag/ sourceforge
 
-use_bzip2	    yes
+use_bzip2			yes
 checksums           md5     161b973bee586d43ebff4695dfb8c359 \
 					sha1    08e3a839fb0e4919c9244dd886c5059c076e1349 \
 					rmd160  9156642183b9b33c6509737cd8e40f4ad612a657
 
 
-depends_lib	    port:curl path:lib/pkgconfig/sdl.pc:libsdl port:c-ares
+depends_lib			port:curl path:lib/pkgconfig/sdl.pc:libsdl port:c-ares port:makeicns 
 
-patchfiles      patch-configure
+patchfiles			patch-configure
 
 configure.args	    --mandir=${prefix}/share/man --libdir=${prefix}/lib/${name} \
-		    --includedir=${prefix}/include/${name} \
-		    --with-sdl-exec-prefix=${prefix} --disable-sdl-test \
-		    --without-x
+					--includedir=${prefix}/include/${name} \
+					--with-sdl-exec-prefix=${prefix} --disable-sdl-test \
+					--without-x
 
-platform darwin 10 {
-    patchfiles-append patch-include__bzfSDL.h patch-src__platform__SDLDisplay.cxx
+post-destroot		{
+					set my_app BZFlag
+	    			xinstall -d ${destroot}${applications_dir}/${my_app}.app/Contents/MacOS
+	    			ln -s ${prefix}/bin/${name} ${destroot}${applications_dir}/${my_app}.app/Contents/MacOS/${my_app}
+	    			xinstall -d ${destroot}${applications_dir}/${my_app}.app/Contents/Resources
+	    			system "makeicns -in ${worksrcpath}/data/bzflag-256x256.png -out ${destroot}${applications_dir}/${my_app}.app/Contents/Resources/${my_app}.icns"
+	    			system "echo '<?xml version=\"1.0\" encoding=\"UTF-8\"?>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '<plist version=\"1.0\">' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '<dict>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '  <key>CFBundleExecutable</key>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '  <string>${my_app}</string>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '  <key>CFBundleIconFile</key>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '  <string>${my_app}.icns</string>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '</dict>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
+	    			system "echo '</plist>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist"
 }
 
+
+platform darwin 10	{
+					patchfiles-append patch-include__bzfSDL.h patch-src__platform__SDLDisplay.cxx
+}
+
 livecheck.type		sourceforge
 livecheck.regex		bzflag-(\\d+(?:\\.\\d+)*)\\.tar\\.bz2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110418/60992f32/attachment.html>


More information about the macports-changes mailing list