aboutsummaryrefslogtreecommitdiff
path: root/games/freebsd-games/Makefile
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/Makefile
parentfef45f25081d8ee845036d4ad85774129eead809 (diff)
downloadports-1e877ee37ee15527b9fe735519df1debfd0f78f0.tar.gz
ports-1e877ee37ee15527b9fe735519df1debfd0f78f0.zip
. Patch the paths in a number of source files to respect ${PREFIX}. Not
only were they hardwired, they were hardwired incorrectly (the prefix was set to /usr/local/local/local). Reported and tested by: Alexandr Kovalenko <never@nevermind.kiev.ua>
Notes
Notes: svn path=/head/; revision=98821
Diffstat (limited to 'games/freebsd-games/Makefile')
-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"