aboutsummaryrefslogtreecommitdiffstats
path: root/games/urbanterror-data
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2007-09-29 09:56:49 +0800
committeralepulver <alepulver@FreeBSD.org>2007-09-29 09:56:49 +0800
commit0706748587a31d5fee14dcde7cc9692be2d6f6a6 (patch)
treea17a884d8cf4a795dba52faddce11710ca4d5cc9 /games/urbanterror-data
parentbac285b49e1cdb697805b4d2c772fc57dd8496ce (diff)
downloadfreebsd-ports-gnome-0706748587a31d5fee14dcde7cc9692be2d6f6a6.tar.gz
freebsd-ports-gnome-0706748587a31d5fee14dcde7cc9692be2d6f6a6.tar.zst
freebsd-ports-gnome-0706748587a31d5fee14dcde7cc9692be2d6f6a6.zip
- Do not depend on games/quake3-data, but install in the same directory and
use @dirrmtry. Suggested by: ale
Diffstat (limited to 'games/urbanterror-data')
-rw-r--r--games/urbanterror-data/Makefile13
-rw-r--r--games/urbanterror-data/pkg-plist27
2 files changed, 22 insertions, 18 deletions
diff --git a/games/urbanterror-data/Makefile b/games/urbanterror-data/Makefile
index c8859d0d63b1..a47282f80ead 100644
--- a/games/urbanterror-data/Makefile
+++ b/games/urbanterror-data/Makefile
@@ -24,18 +24,21 @@ NO_BUILD= yes
NO_PACKAGE= Package will be 560MB; set FORCE_PACKAGE if you really want it
WRKSRC= ${WRKDIR}/q3ut4
-DATADIR= ${Q3DIR}/q3ut4
+DATADIR= ${Q3DIR}
+
+.include <bsd.port.pre.mk>
+
+Q3DIR!= cd ${PORTSDIR}/games/quake3-data && ${MAKE} -V Q3DIR
post-extract:
@cd ${WRKSRC} && ${MV} readme40.txt ..
do-install:
- ${MKDIR} ${DATADIR}
- ${CP} -r ${WRKSRC}/* ${DATADIR}
+ ${MKDIR} ${DATADIR}/q3ut4
+ ${CP} -r ${WRKSRC}/* ${DATADIR}/q3ut4
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/readme40.txt ${DOCSDIR}
.endif
-.include "${.CURDIR}/../quake3-data/Makefile.include"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/games/urbanterror-data/pkg-plist b/games/urbanterror-data/pkg-plist
index df421c34b819..6d52651cb397 100644
--- a/games/urbanterror-data/pkg-plist
+++ b/games/urbanterror-data/pkg-plist
@@ -1,15 +1,16 @@
%%PORTDOCS%%%%DOCSDIR%%/readme40.txt
-%%DATADIR%%/Urban Terror Website.url
-%%DATADIR%%/autoexec.cfg
-%%DATADIR%%/demos/test.dm_68
-%%DATADIR%%/description.txt
-%%DATADIR%%/mapcycle.txt
-%%DATADIR%%/q3config.cfg
-%%DATADIR%%/q3ut.ico
-%%DATADIR%%/screenshots/shot0000.jpg
-%%DATADIR%%/server.cfg
-%%DATADIR%%/zpak000.pk3
-@dirrm %%DATADIR%%/screenshots
-@dirrm %%DATADIR%%/demos
-@dirrm %%DATADIR%%
+%%DATADIR%%/q3ut4/Urban Terror Website.url
+%%DATADIR%%/q3ut4/autoexec.cfg
+%%DATADIR%%/q3ut4/demos/test.dm_68
+%%DATADIR%%/q3ut4/description.txt
+%%DATADIR%%/q3ut4/mapcycle.txt
+%%DATADIR%%/q3ut4/q3config.cfg
+%%DATADIR%%/q3ut4/q3ut.ico
+%%DATADIR%%/q3ut4/screenshots/shot0000.jpg
+%%DATADIR%%/q3ut4/server.cfg
+%%DATADIR%%/q3ut4/zpak000.pk3
+@dirrm %%DATADIR%%/q3ut4/screenshots
+@dirrm %%DATADIR%%/q3ut4/demos
+@dirrm %%DATADIR%%/q3ut4
+@dirrmtry %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%