[38889] trunk/dports/games/atanks
ryandesign at macports.org
ryandesign at macports.org
Fri Aug 1 21:56:33 PDT 2008
Revision: 38889
http://trac.macosforge.org/projects/macports/changeset/38889
Author: ryandesign at macports.org
Date: 2008-08-01 21:56:33 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
atanks: update to 2.6 (later versions up to at least 3.0 don't compile) and now use their make install instead of overriding the destroot
Modified Paths:
--------------
trunk/dports/games/atanks/Portfile
trunk/dports/games/atanks/files/patch-src-Makefile
Added Paths:
-----------
trunk/dports/games/atanks/files/patch-Makefile
Modified: trunk/dports/games/atanks/Portfile
===================================================================
--- trunk/dports/games/atanks/Portfile 2008-08-02 04:30:17 UTC (rev 38888)
+++ trunk/dports/games/atanks/Portfile 2008-08-02 04:56:33 UTC (rev 38889)
@@ -3,7 +3,7 @@
PortSystem 1.0
name atanks
-version 2.3
+version 2.6
categories games
platforms darwin
maintainers nomaintainer
@@ -13,39 +13,27 @@
homepage http://atanks.sourceforge.net/
master_sites sourceforge
-checksums md5 9b717e7922a7ff2bdc55abc42f76e88e
+checksums md5 3399323f7e18033a422074508bc4b8f6 \
+ sha1 939db882b128e33129250f86df3aefb8ce5d1b53 \
+ rmd160 8aba18312d9f79cf95d9338b68db3498f70a925e
worksrcdir ${name}
depends_lib port:allegro
-patchfiles patch-src-Makefile
+patchfiles patch-Makefile \
+ patch-src-Makefile
+post-patch {
+ reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/Makefile
+ reinplace s|@DESTROOT@|${destroot}|g ${worksrcpath}/Makefile
+}
+
use_configure no
build.env CFLAGS=-I${prefix}/include \
LDFLAGS=-L${prefix}/lib
build.args PREFIX=${prefix}
-destroot {
- xinstall -m 755 ${worksrcpath}/atanks ${destroot}${prefix}/bin
- xinstall -m 755 -d ${destroot}${prefix}/share/atanks
- xinstall -m 644 -W ${worksrcpath} \
- button.dat \
- misc.dat \
- missile.dat \
- sound.dat \
- stock.dat \
- tank.dat \
- tankgun.dat \
- title.dat \
- Help.txt \
- credits.txt \
- gloat.txt \
- instr.txt \
- revenge.txt \
- ${destroot}${prefix}/share/atanks
-}
-
# Can be removed once MacPorts 1.7.0 is released
if {![info exists applications_dir]} {
set applications_dir /Applications/MacPorts
Added: trunk/dports/games/atanks/files/patch-Makefile
===================================================================
--- trunk/dports/games/atanks/files/patch-Makefile (rev 0)
+++ trunk/dports/games/atanks/files/patch-Makefile 2008-08-02 04:56:33 UTC (rev 38889)
@@ -0,0 +1,22 @@
+--- Makefile 2007-11-08 19:27:29.000000000 -0600
++++ Makefile 2008-08-01 23:50:24.000000000 -0500
+@@ -5,13 +5,16 @@
+ DISTCOMMON=atanks/*.dat atanks/COPYING atanks/README atanks/TODO atanks/Changelog atanks/BUGS atanks/Help.txt atanks/credits.txt atanks/gloat.txt atanks/instr.txt atanks/revenge.txt atanks/suicide.txt gloat.pt_BR.txt Help.pt_BR.txt revenge.pt_BR.txt suicide.pt_BR.txt
+ INCOMMON=*.dat COPYING README TODO Changelog *.txt
+
++PREFIX=@PREFIX@
++DESTROOT=@DESTROOT@
++
+ all:
+ $(MAKE) -C src
+
+ install: all
+- $(INSTALL) -g 0 -m 755 -o 0 atanks /usr/bin
+- mkdir -p /usr/share/games/atanks
+- $(INSTALL) -g 0 -m 644 -o 0 $(INCOMMON) /usr/share/games/atanks
++ $(INSTALL) -m 755 atanks $(DESTROOT)$(PREFIX)/bin
++ mkdir -p $(DESTROOT)$(PREFIX)/share/atanks
++ $(INSTALL) -m 644 $(INCOMMON) $(DESTROOT)$(PREFIX)/share/atanks
+ clean:
+ rm -f atanks
+ $(MAKE) -C src clean
Modified: trunk/dports/games/atanks/files/patch-src-Makefile
===================================================================
--- trunk/dports/games/atanks/files/patch-src-Makefile 2008-08-02 04:30:17 UTC (rev 38888)
+++ trunk/dports/games/atanks/files/patch-src-Makefile 2008-08-02 04:56:33 UTC (rev 38889)
@@ -1,11 +1,11 @@
---- src/Makefile.org 2007-03-08 18:06:24.000000000 -0800
-+++ src/Makefile 2007-04-27 21:57:29.000000000 -0700
+--- src/Makefile 2007-10-13 13:37:07.000000000 -0500
++++ src/Makefile 2008-08-01 23:48:42.000000000 -0500
@@ -4,12 +4,12 @@
- globaldata.o environment.o player.o virtobj.o floattext.o teleport.o physobj.o decor.o explosion.o missile.o beam.o tank.o atanks.o fade.o perlin.o sky.o
+ globaldata.o environment.o player.o virtobj.o floattext.o teleport.o physobj.o decor.o explosion.o missile.o beam.o tank.o atanks.o fade.o perlin.o sky.o button.o files.o team.o
CC = g++
--FLAGS = -DLINUX -DVERSION=\"2.3\" -DDATA_DIR=\".\"
-+FLAGS = -DLINUX -DVERSION=\"2.3\" -DDATA_DIR=\"$(PREFIX)/share/atanks\"
+-FLAGS = -DLINUX -DDATA_DIR=\".\"
++FLAGS = -DLINUX -DDATA_DIR=\"$(PREFIX)/share/atanks\"
OUTPUT = ../atanks
WFLAGS =
OFLAGS =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/d7b40f1a/attachment-0001.html
More information about the macports-changes
mailing list