aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPhilip Paeps <philip@FreeBSD.org>2006-06-11 13:41:38 +0000
committerPhilip Paeps <philip@FreeBSD.org>2006-06-11 13:41:38 +0000
commit2ebd6b9d851b632a7290c337fba8deee4fcd322b (patch)
treed2d883c19efb65ac10190065b7fca94064d96c0d /games
parentbb3dcb099faab610a652e09b274c4a7475938349 (diff)
downloadports-2ebd6b9d851b632a7290c337fba8deee4fcd322b.tar.gz
ports-2ebd6b9d851b632a7290c337fba8deee4fcd322b.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/zatacka/Makefile6
-rw-r--r--games/zatacka/distinfo6
-rw-r--r--games/zatacka/files/patch-Makefile14
-rw-r--r--games/zatacka/pkg-plist2
4 files changed, 17 insertions, 11 deletions
diff --git a/games/zatacka/Makefile b/games/zatacka/Makefile
index 7058b44c48cc..3ea9d3d5e798 100644
--- a/games/zatacka/Makefile
+++ b/games/zatacka/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= zatacka
-PORTVERSION= 0.1.4
+PORTVERSION= 0.1.5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -32,12 +32,16 @@ post-patch:
${WRKSRC}/fx.cpp
@${REINPLACE_CMD} -e 's|main_screen.jpg|${DATADIR}/main_screen.jpg|' \
${WRKSRC}/fx.cpp
+ @${REINPLACE_CMD} -e 's|maps/|${DATADIR}/maps/|' ${WRKSRC}/fx.cpp
+ @${REINPLACE_CMD} -e '/opendir/ s|maps|${DATADIR}/maps|' ${WRKSRC}/fx.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/main_screen.jpg ${WRKSRC}/barrier.jpg \
${WRKSRC}/font.ttf ${DATADIR}
+ ${MKDIR} ${DATADIR}/maps
+ ${INSTALL_DATA} ${WRKSRC}/maps/*.jpg ${DATADIR}/maps
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
diff --git a/games/zatacka/distinfo b/games/zatacka/distinfo
index 69a554dbf8c3..0b3f3a963fa9 100644
--- a/games/zatacka/distinfo
+++ b/games/zatacka/distinfo
@@ -1,3 +1,3 @@
-MD5 (zatacka-0.1.4_src.tar.gz) = 3c00ea94811eb6886f58c5eac16fc22d
-SHA256 (zatacka-0.1.4_src.tar.gz) = 949e96764fbfa5eb1349bd2d1d2cb90dace943090667d117564e0a6cd782cfdb
-SIZE (zatacka-0.1.4_src.tar.gz) = 128061
+MD5 (zatacka-0.1.5_src.tar.gz) = 3e8edfdef86c76e5c676abdc38c8f363
+SHA256 (zatacka-0.1.5_src.tar.gz) = 1d9da33201d35970b71a1eb3c0eb38b61a86dab33d9084087bbb36728d22e5b9
+SIZE (zatacka-0.1.5_src.tar.gz) = 150038
diff --git a/games/zatacka/files/patch-Makefile b/games/zatacka/files/patch-Makefile
index 4732b64a19a8..ff6ce332980d 100644
--- a/games/zatacka/files/patch-Makefile
+++ b/games/zatacka/files/patch-Makefile
@@ -1,15 +1,15 @@
---- Makefile.orig Fri Dec 30 17:27:36 2005
-+++ Makefile Mon Mar 27 00:52:59 2006
-@@ -4,7 +4,7 @@
- # Copryright: GNU GPL (http://www.gnu.org/copyleft/gpl.html)
- ##----------------------------------------------------------------------------
+--- Makefile.orig Wed Mar 29 00:08:50 2006
++++ Makefile Sun Jun 11 15:42:44 2006
+@@ -2,7 +2,7 @@
+ #Copyright by Mage 2006
rm=/bin/rm -f
+ ln=/bin/ln -s
-CC= g++
+CXX?= g++
DEFS=
PROGNAME= zatacka
INCLUDES= -I.
-@@ -12,7 +12,7 @@
+@@ -13,7 +13,7 @@
DEFINES= $(INCLUDES) $(DEFS) -DSYS_UNIX=1
@@ -18,7 +18,7 @@
SRCS = main.cpp fx.cpp SDL_prim.c
-@@ -20,12 +20,12 @@
+@@ -21,12 +21,12 @@
.c.o:
$(rm) $@
diff --git a/games/zatacka/pkg-plist b/games/zatacka/pkg-plist
index 07205e6ae221..7b3a1338d1f5 100644
--- a/games/zatacka/pkg-plist
+++ b/games/zatacka/pkg-plist
@@ -2,4 +2,6 @@ bin/zatacka
%%DATADIR%%/barrier.jpg
%%DATADIR%%/font.ttf
%%DATADIR%%/main_screen.jpg
+%%DATADIR%%/maps/map1.jpg
+@dirrm %%DATADIR%%/maps
@dirrm %%DATADIR%%