aboutsummaryrefslogtreecommitdiff
path: root/games/bsdgames
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/bsdgames
parent890dc18da80212416c833bc86dc4264ae0ccd70a (diff)
Notes
Diffstat (limited to 'games/bsdgames')
-rw-r--r--games/bsdgames/Makefile4
-rw-r--r--games/bsdgames/files/patch-hack::hack.unix.c13
2 files changed, 16 insertions, 1 deletions
diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile
index f650b681474e..a7eaf18c38a7 100644
--- a/games/bsdgames/Makefile
+++ b/games/bsdgames/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>
diff --git a/games/bsdgames/files/patch-hack::hack.unix.c b/games/bsdgames/files/patch-hack::hack.unix.c
new file mode 100644
index 000000000000..8143edad035c
--- /dev/null
+++ b/games/bsdgames/files/patch-hack::hack.unix.c
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- hack/hack.unix.c.orig Thu Nov 20 10:17:36 2003
++++ hack/hack.unix.c Thu Nov 20 10:18:09 2003
+@@ -86,7 +86,7 @@
+ /* old version - for people short of space */
+ char *np;
+
+- name = "/usr/games/hide/hack";
++ name = "%%PREFIX%%/bin/hack";
+ if(stat(name, &hbuf))
+ error("Cannot get status of %s.",
+ (np = rindex(name, '/')) ? np+1 : name);