aboutsummaryrefslogtreecommitdiff
path: root/games/freebsd-games
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-01-22 19:41:36 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-01-22 19:41:36 +0000
commit1e877ee37ee15527b9fe735519df1debfd0f78f0 (patch)
tree04a2c20aa45f10e37811837c450f5d7b591ecfbf /games/freebsd-games
parentfef45f25081d8ee845036d4ad85774129eead809 (diff)
downloadports-1e877ee37ee15527b9fe735519df1debfd0f78f0.tar.gz
ports-1e877ee37ee15527b9fe735519df1debfd0f78f0.zip
Notes
Diffstat (limited to 'games/freebsd-games')
-rw-r--r--games/freebsd-games/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/games/freebsd-games/Makefile b/games/freebsd-games/Makefile
index 146649d406bf..a9a3ef997316 100644
--- a/games/freebsd-games/Makefile
+++ b/games/freebsd-games/Makefile
@@ -7,7 +7,7 @@
PORTNAME= freebsd-games
PORTVERSION= 5.1.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=markm
@@ -48,6 +48,14 @@ MAN6= \
MANCOMPRESSED= maybe
+PATHNAME_FILES= atc/pathnames.h \
+ cribbage/pathnames.h \
+ fish/pathnames.h \
+ larn/pathnames.h \
+ quiz/datfiles/index \
+ quiz/pathnames.h \
+ wump/pathnames.h
+
post-extract:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} extract)
@@ -56,8 +64,10 @@ post-patch:
@${FIND} ${WRKSRC} -name '*.c' -or -name '*.h' -or -name '*.6' -or \
-name 'index' | ${XARGS} ${REINPLACE_CMD} -e \
's|share/games|local/share/games|g'
- @${REINPLACE_CMD} -e 's|/usr/local/local/local|${PREFIX}|g' \
- ${WRKSRC}/quiz/pathnames.h ${WRKSRC}/quiz/datfiles/index
+ @for file in ${PATHNAME_FILES}; do \
+ ${REINPLACE_CMD} -e 's|/usr/local/local/local|${PREFIX}|g' \
+ ${WRKSRC}/$${file}; \
+ done
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
"${WRKSRC}/hack/hack.unix.c"