From a98797300507a5b565a2729a696c0ef356e6e440 Mon Sep 17 00:00:00 2001 From: Daichi GOTO Date: Wed, 2 Jul 2003 12:46:23 +0000 Subject: 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 --- games/freebsd-games/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'games/freebsd-games/Makefile') 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 -- cgit v1.2.3