aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-07-02 20:46:23 +0800
committerdaichi <daichi@FreeBSD.org>2003-07-02 20:46:23 +0800
commit27e6bdf874e9cb35eb4186d16f4982817e14cbc8 (patch)
tree54894b4e259f79e3bcb574dc344535639a447903
parentcb3fc316247f6858dd5433cd8232481f8a12b84a (diff)
downloadfreebsd-ports-gnome-27e6bdf874e9cb35eb4186d16f4982817e14cbc8.tar.gz
freebsd-ports-gnome-27e6bdf874e9cb35eb4186d16f4982817e14cbc8.tar.zst
freebsd-ports-gnome-27e6bdf874e9cb35eb4186d16f4982817e14cbc8.zip
fix games/freebsd-games:
- Some of the games in freebsd-games needs data files which is installed in /usr/local/share/games, but they won't work correctly because they look at /usr/share/games. PR: 53016 Submitted by: HIYAMA Takeshi <gibbon@cocoa.freemail.ne.jp>
-rw-r--r--games/bsdgames/Makefile6
-rw-r--r--games/freebsd-games/Makefile6
2 files changed, 12 insertions, 0 deletions
diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile
index 7b77d9fa217e..e798e9616a34 100644
--- a/games/bsdgames/Makefile
+++ b/games/bsdgames/Makefile
@@ -14,6 +14,7 @@ MASTER_SITE_SUBDIR=markm
MAINTAINER= ports@FreeBSD.org
COMMENT= FreeBSD-modified "Standard" BSD games
+USE_REINPLACE= yes
USE_BZIP2= yes
MAN6= \
@@ -51,4 +52,9 @@ post-extract:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} 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' \
+
.include <bsd.port.mk>
diff --git a/games/freebsd-games/Makefile b/games/freebsd-games/Makefile
index 7b77d9fa217e..e798e9616a34 100644
--- a/games/freebsd-games/Makefile
+++ b/games/freebsd-games/Makefile
@@ -14,6 +14,7 @@ MASTER_SITE_SUBDIR=markm
MAINTAINER= ports@FreeBSD.org
COMMENT= FreeBSD-modified "Standard" BSD games
+USE_REINPLACE= yes
USE_BZIP2= yes
MAN6= \
@@ -51,4 +52,9 @@ post-extract:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} 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' \
+
.include <bsd.port.mk>