[82986] trunk/dports/games/blobwars
ryandesign at macports.org
ryandesign at macports.org
Mon Aug 22 22:41:35 PDT 2011
Revision: 82986
http://trac.macports.org/changeset/82986
Author: ryandesign at macports.org
Date: 2011-08-22 22:41:31 -0700 (Mon, 22 Aug 2011)
Log Message:
-----------
blobwars:
* update to 1.19
* indicate license
* installs_libs no
* use app portgroup
* add app icon
* fix livecheck
Modified Paths:
--------------
trunk/dports/games/blobwars/Portfile
trunk/dports/games/blobwars/files/patch-makefile.diff
Added Paths:
-----------
trunk/dports/games/blobwars/files/blobwars.in
Modified: trunk/dports/games/blobwars/Portfile
===================================================================
--- trunk/dports/games/blobwars/Portfile 2011-08-23 04:33:44 UTC (rev 82985)
+++ trunk/dports/games/blobwars/Portfile 2011-08-23 05:41:31 UTC (rev 82986)
@@ -1,12 +1,15 @@
# $Id$
PortSystem 1.0
+PortGroup app 1.0
name blobwars
-version 1.17
+version 1.19
categories games
platforms darwin
maintainers nomaintainer
+license GPL-2+
+installs_libs no
description jump and run game featuring a Blob as main character
long_description In Blob Wars : Metal Blob Solid, you take on the role \
@@ -17,14 +20,11 @@
Blobs who have been assimilated and the evil alien \
leader, Galdov.
-distname ${name}-${version}-1
-worksrcdir ${name}-${version}
homepage http://www.parallelrealities.co.uk/projects/blobWars.php
-master_sites http://www.parallelrealities.co.uk/download/blobwars/
+master_sites sourceforge
-checksums md5 b7e639e1dddf13fe7d9de939ef0e5d6f \
- sha1 0541c4f6e4b9ca7222dc66594c054db8219e3e5f \
- rmd160 1b9752f262d111a6fc71e995c9c3d1fc3c87ff3f
+checksums rmd160 39a2bf865e7c2af97dcb2d26e06604e8d1fcc62f \
+ sha256 f9bafe59ead9e370ceaba4aae3d280241bf05fa06c8ae006eec0322c2fe9e2ed
depends_lib port:gettext \
path:lib/pkgconfig/sdl.pc:libsdl \
@@ -34,14 +34,24 @@
port:libsdl_net \
port:zlib
+post-extract {
+ copy ${filespath}/${name}.in ${workpath}/${name}
+}
+
patchfiles patch-makefile.diff patch-src_pak.h.diff
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name}
+}
+
use_configure no
+variant universal {}
+
use_parallel_build yes
build.args PREFIX=${prefix}
-build.env CFLAGS=-I${prefix}/include \
- LDFLAGS=-bind_at_load
+build.env CXX="${configure.cxx} [get_canonical_archflags]" \
+ CFLAGS=${configure.cppflags}
destroot.destdir PREFIX=${destroot}${prefix}
@@ -50,10 +60,9 @@
${destroot}${prefix}/share/icons
}
-platform darwin {
- pre-destroot {
- xinstall -d ${destroot}${applications_dir}/BlobWars.app/Contents/MacOS
- ln -s ${prefix}/bin/blobwars \
- ${destroot}${applications_dir}/BlobWars.app/Contents/MacOS/BlobWars
- }
-}
+app.name Blob Wars
+app.executable ${workpath}/${name}
+app.icon gfx/main/alienDevice.png
+app.identifier uk.co.parallelrealities.BlobWars
+
+livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
Added: trunk/dports/games/blobwars/files/blobwars.in
===================================================================
--- trunk/dports/games/blobwars/files/blobwars.in (rev 0)
+++ trunk/dports/games/blobwars/files/blobwars.in 2011-08-23 05:41:31 UTC (rev 82986)
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd @PREFIX@/share/games/blobwars
+exec @PREFIX@/libexec/blobwars/blobwars
Property changes on: trunk/dports/games/blobwars/files/blobwars.in
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ native
Modified: trunk/dports/games/blobwars/files/patch-makefile.diff
===================================================================
--- trunk/dports/games/blobwars/files/patch-makefile.diff 2011-08-23 04:33:44 UTC (rev 82985)
+++ trunk/dports/games/blobwars/files/patch-makefile.diff 2011-08-23 05:41:31 UTC (rev 82986)
@@ -1,14 +1,14 @@
---- makefile.orig 2010-03-07 21:58:04.000000000 +1100
-+++ makefile 2011-07-30 22:49:56.000000000 +1000
-@@ -8,7 +8,7 @@
- USEPAK = 1
+--- makefile.orig 2011-04-17 09:56:56.000000000 -0500
++++ makefile 2011-08-22 23:07:02.000000000 -0500
+@@ -9,7 +9,7 @@
+ USEPAK ?= 0
- PREFIX=$(DESTDIR)/usr
--BINDIR = $(PREFIX)/games/
-+BINDIR = $(PREFIX)/bin/
- DATADIR = $(PREFIX)/share/games/blobwars/
- DOCDIR = $(PREFIX)/share/doc/$(PROG)/
- ICONDIR = $(PREFIX)/share/icons/hicolor/
+ PREFIX ?= /usr
+-BINDIR ?= $(PREFIX)/games/
++BINDIR ?= $(PREFIX)/libexec/blobwars/
+ DATADIR ?= $(PREFIX)/share/games/blobwars/
+ DOCDIR ?= $(PREFIX)/share/doc/$(PROG)/
+ ICONDIR ?= $(PREFIX)/share/icons/hicolor/
@@ -22,7 +22,7 @@
CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"$(DATADIR)\" -DUNIX -DGAMEPLAYMANUAL=\"$(DOCDIR)index.html\" -Wall
CXXFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\" -DMEDAL_SERVER_HOST=\"$(MEDAL_SERVER_HOST)\" -DMEDAL_SERVER_PORT=$(MEDAL_SERVER_PORT)
@@ -18,7 +18,7 @@
OBJS += CAudio.o
OBJS += CBoss.o
-@@ -80,7 +80,7 @@
+@@ -85,7 +85,7 @@
$(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG)
pak: $(PAKOBJS)
@@ -27,16 +27,3 @@
%.mo: %.po
msgfmt -c -o $@ $<
-@@ -108,9 +108,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)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/20110822/e3cc79c7/attachment-0001.html>
More information about the macports-changes
mailing list