ports/53016: Fix for games/freebsd-games
gibbon at cocoa.freemail.ne.jp
gibbon at cocoa.freemail.ne.jp
Sat Jun 7 13:20:08 UTC 2003
>Number: 53016
>Category: ports
>Synopsis: Fix for games/freebsd-games
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jun 07 06:20:06 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: HIYAMA Takeshi
>Release: FreeBSD 4.0-STABLE i386
>Organization:
Hitachi Naka Electronics Co., Ld.
>Environment:
>Description:
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 .
>How-To-Repeat:
install games/freebsd-games and run one of the followings.
atc,cribbage,fish,larn,quiz
>Fix:
diff -urN freebsd-games.old/Makefile freebsd-games.new/Makefile
--- freebsd-games.old/Makefile Fri Feb 21 02:32:07 2003
+++ freebsd-games.new/Makefile Mon Jun 2 02:05:39 2003
@@ -14,6 +14,7 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= FreeBSD-modified "Standard" BSD games
+USE_REINPLACE= yes
USE_BZIP2= yes
MAN6= \
@@ -50,5 +51,10 @@
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>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list