aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2005-07-24 11:45:44 +0800
committermezz <mezz@FreeBSD.org>2005-07-24 11:45:44 +0800
commit91421ded7a02c0a7a2d96dd4f46ec37fcc74f02f (patch)
tree899a9e9c0a9240b08c3c50fddd53d7800cf4e1cb
parentd03d34ce77efae3b0c94e0b371c388d54bf7ae74 (diff)
downloadfreebsd-ports-graphics-91421ded7a02c0a7a2d96dd4f46ec37fcc74f02f.tar.gz
freebsd-ports-graphics-91421ded7a02c0a7a2d96dd4f46ec37fcc74f02f.tar.zst
freebsd-ports-graphics-91421ded7a02c0a7a2d96dd4f46ec37fcc74f02f.zip
-Fix the plist.
-Use DATADIR macros and move some stuff in DATADIR. -Remove the BROKEN, DEPRECATED and EXPIRATION_DATE. -Bump the PORTREVISION. PR: ports/83955 Submitted by: Andrej Zverev <az@inec.ru>
-rw-r--r--games/oilwar/Makefile11
-rw-r--r--games/oilwar/pkg-plist15
2 files changed, 14 insertions, 12 deletions
diff --git a/games/oilwar/Makefile b/games/oilwar/Makefile
index 270a941d8b3..402ae54ed49 100644
--- a/games/oilwar/Makefile
+++ b/games/oilwar/Makefile
@@ -7,7 +7,7 @@
PORTNAME= oilwar
PORTVERSION= 1.2.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://www.2ndpoint.fi/projektit/filut/
DISTNAME= OilWar-${PORTVERSION}
@@ -15,11 +15,12 @@ DISTNAME= OilWar-${PORTVERSION}
MAINTAINER= hendrik@scholz.net
COMMENT= Evil army wants to steal your oil
-BROKEN= Incomplete pkg-plist
-DEPRECATED= ${BROKEN}
-EXPIRATION_DATE=2005-09-22
-
USE_SDL= image mixer sdl
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
+post-patch:
+ @${REINPLACE_CMD} -e 's|games/oilwar|${PORTNAME}|g ; \
+ s|/var/games|\$$\(datadir\)/oilwar|g' ${WRKSRC}/Makefile.in
+
.include <bsd.port.mk>
diff --git a/games/oilwar/pkg-plist b/games/oilwar/pkg-plist
index 4a58268d0b2..0d47ec6ab29 100644
--- a/games/oilwar/pkg-plist
+++ b/games/oilwar/pkg-plist
@@ -1,8 +1,9 @@
bin/oilwar
-share/games/oilwar/background.png
-share/games/oilwar/bitmaps.png
-share/games/oilwar/singlegunshot.wav
-share/games/oilwar/bulletricochet.wav
-share/games/oilwar/explode.wav
-share/games/oilwar/gasp.wav
-@dirrm share/games/oilwar
+%%DATADIR%%/background.png
+%%DATADIR%%/bitmaps.png
+%%DATADIR%%/bulletricochet.wav
+%%DATADIR%%/explode.wav
+%%DATADIR%%/gasp.wav
+%%DATADIR%%/oilwar.scores
+%%DATADIR%%/singlegunshot.wav
+@dirrm %%DATADIR%%