[38891] trunk/dports/games/blobwars

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 23:12:00 PDT 2008


Revision: 38891
          http://trac.macosforge.org/projects/macports/changeset/38891
Author:   ryandesign at macports.org
Date:     2008-08-01 23:12:00 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
blobwars:

 * fix fetch failure / update to 1.08
 * use port:-style dependencies to make sure we only depend on other MacPorts ports
 * add dependency on gettext and add -lintl flag so it can link with it
 * add dependency on zlib; seems to be necessary
 * remove dependency on libzzip; doesn't seem to be used
 * enable parallel build
 * use ${applications_dir}; don't assume /Applications/MacPorts
 * create symlink with tcl ln command instead of system

Modified Paths:
--------------
    trunk/dports/games/blobwars/Portfile
    trunk/dports/games/blobwars/files/patch-makefile.diff

Modified: trunk/dports/games/blobwars/Portfile
===================================================================
--- trunk/dports/games/blobwars/Portfile	2008-08-02 05:28:30 UTC (rev 38890)
+++ trunk/dports/games/blobwars/Portfile	2008-08-02 06:12:00 UTC (rev 38891)
@@ -3,7 +3,7 @@
 PortSystem              1.0
 
 name                    blobwars
-version                 0.96
+version                 1.08
 categories              games
 platforms               darwin
 maintainers             nomaintainer
@@ -17,22 +17,27 @@
                         Blobs who have been assimilated and the evil alien \
                         leader, Galdov.
 
+distname                ${name}-${version}-1
+worksrcdir              ${name}-${version}
 homepage                http://www.parallelrealities.co.uk/blobWars.php
-master_sites            http://www.opendarwin.org/~mww/files
-use_bzip2               yes
+master_sites            http://www.parallelrealities.co.uk/download.php?proj=blobwars&file=${distfiles}&type=zip&foo=
 
-checksums               md5 cdfe1231a9f6966c0d5189c1706000fe
+checksums               md5     16462e3ee394b05432fab820a7de8389 \
+                        sha1    3b932def0d93dbbe625887558d029df0f77254dd \
+                        rmd160  1816fb53c2cc8cb6aa9bb31cd2e9626bfd841a95
 
-depends_lib             bin:sdl-config:libsdl \
-                        lib:libSDL_image:libsdl_image \
-                        lib:libSDL_ttf:libsdl_ttf \
-                        lib:libSDL_mixer:libsdl_mixer \
-                        lib:libzzip:libzzip
+depends_lib             port:gettext \
+                        port:libsdl \
+                        port:libsdl_image \
+                        port:libsdl_ttf \
+                        port:libsdl_mixer \
+                        port:zlib
 
 patchfiles              patch-makefile.diff
 
 use_configure           no
 
+use_parallel_build      yes
 build.args              PREFIX=${prefix}
 build.env               CFLAGS=-I${prefix}/include \
                         LDFLAGS=-bind_at_load
@@ -40,14 +45,19 @@
 destroot.destdir        PREFIX=${destroot}${prefix}
 
 post-destroot {
-    file delete -force ${destroot}${prefix}/share/applnk \
-        ${destroot}${prefix}/share/gnome ${destroot}${prefix}/share/icons
+    file delete -force ${destroot}${prefix}/share/applications \
+        ${destroot}${prefix}/share/icons
 }
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 platform darwin {
     pre-destroot {
-        xinstall -d ${destroot}/Applications/MacPorts/BlobWars.app/Contents/MacOS
-        system "ln -s ${prefix}/bin/blobwars \
-            ${destroot}/Applications/MacPorts/BlobWars.app/Contents/MacOS/BlobWars"
+        xinstall -d ${destroot}${applications_dir}/BlobWars.app/Contents/MacOS
+        ln -s ${prefix}/bin/blobwars \
+            ${destroot}${applications_dir}/BlobWars.app/Contents/MacOS/BlobWars
     }
 }

Modified: trunk/dports/games/blobwars/files/patch-makefile.diff
===================================================================
--- trunk/dports/games/blobwars/files/patch-makefile.diff	2008-08-02 05:28:30 UTC (rev 38890)
+++ trunk/dports/games/blobwars/files/patch-makefile.diff	2008-08-02 06:12:00 UTC (rev 38891)
@@ -1,31 +1,33 @@
---- makefile	Wed Oct 27 09:39:20 2004
-+++ makefile.new	Wed Oct 27 09:39:49 2004
+--- makefile	2008-01-21 14:17:53.000000000 -0600
++++ makefile	2008-08-02 00:48:43.000000000 -0500
 @@ -8,7 +8,7 @@
  USEPAK = 1
  
  PREFIX=$(DESTDIR)/usr
 -BINDIR = $(PREFIX)/games/
 +BINDIR = $(PREFIX)/bin/
- DATADIR = $(PREFIX)/share/games/parallelrealities/
+ DATADIR = $(PREFIX)/share/games/blobwars/
  DOCDIR = $(PREFIX)/share/doc/$(PROG)/
- ICONDIR = $(PREFIX)/share/icons/
-@@ -63,9 +63,9 @@
- 	mkdir -p $(GNOME)
+ ICONDIR = $(PREFIX)/share/icons/hicolor/
+@@ -19,7 +19,7 @@
+ CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"$(DATADIR)\" -DUNIX -DGAMEPLAYMANUAL=\"$(DOCDIR)index.html\" -Wall
+ CXXFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\"
+ CXXFLAGS += $(CFLAGS)
+-LIBS = `sdl-config --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lz
++LIBS = `sdl-config --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lz -lintl
  
- 	strip $(PROG)
+ OBJS += aquaBoss.o bosses.o bullets.o cutscene.o
+ OBJS += CAudio.o CBoss.o CCollision.o CCutscene.o CData.o CEffect.o CEngine.o CEntity.o CFileData.o CGame.o 
+@@ -77,9 +77,9 @@
+ 	mkdir -p $(ICONDIR)64x64/apps
+ 	mkdir -p $(DESKTOPDIR)
+ 
 -	install -o root -g games -m 755 $(PROG) $(BINDIR)$(PROG)
 -	install -o root -g games -m 644 $(PAKNAME) $(DATADIR)$(PAKNAME)
 -	install -o root -g games -m 644 $(DOCS) $(DOCDIR)
 +	install -m 755 $(PROG) $(BINDIR)$(PROG)
 +	install -m 644 $(PAKNAME) $(DATADIR)$(PAKNAME)
 +	install -m 644 $(DOCS) $(DOCDIR)
- 	cp $(ICONS)$(PROG).png $(ICONDIR)
- 	cp $(ICONS)$(PROG)-mini.png $(ICONDIR)mini/$(PROG).png
- 	cp $(ICONS)$(PROG)-large.png $(ICONDIR)large/$(PROG).png
-@@ -81,4 +81,4 @@
- 	$(RM) $(ICONDIR)large/$(PROG).png
- 	$(RM) $(KDE)$(ICONS)$(PROG).desktop
- 	$(RM) $(GNOME)$(ICONS)$(PROG).desktop
--	
-\ No newline at end of file
-+	
+ 	cp $(ICONS)$(PROG).png $(ICONDIR)32x32/apps/
+ 	cp $(ICONS)$(PROG)-mini.png $(ICONDIR)16x16/apps/$(PROG).png
+ 	cp $(ICONS)$(PROG)-large.png $(ICONDIR)64x64/apps/$(PROG).png
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/ca4c1643/attachment-0001.html 


More information about the macports-changes mailing list