aboutsummaryrefslogtreecommitdiff
path: root/games/freebsd-games/Makefile
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-11-20 19:10:51 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-11-20 19:10:51 +0000
commitfd744d95ea77d719ae7bce4e222108f134341976 (patch)
treef911d53568d7836ea5540260d8d545e7bab6e6d2 /games/freebsd-games/Makefile
parent890dc18da80212416c833bc86dc4264ae0ccd70a (diff)
. Have hack look in the correct location for itself. Fixes the
"Can't get status of hack" error and exit. PR: 59443 Submitted by: Mark Laws <mdl@60hz.org>
Notes
Notes: svn path=/head/; revision=94511
Diffstat (limited to 'games/freebsd-games/Makefile')
-rw-r--r--games/freebsd-games/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/freebsd-games/Makefile b/games/freebsd-games/Makefile
index f650b681474e..a7eaf18c38a7 100644
--- a/games/freebsd-games/Makefile
+++ b/games/freebsd-games/Makefile
@@ -54,6 +54,8 @@ post-extract:
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' \
+ 's|share/games|local/share/games|g'
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
+ "${WRKSRC}/hack/hack.unix.c"
.include <bsd.port.mk>