summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>2002-04-02 19:55:23 +0000
committerMatthew Hunt <mph@FreeBSD.org>2002-04-02 19:55:23 +0000
commit9e5ab808f3ea6dd5aa2436a14bab5cfd8a841d5d (patch)
treea8f596e25126a782f12cf7e01a53c7d54cc33555 /games
parentUpdate to version 2.54 Beta 32. (diff)
Instead of relying on /dev/fd/3 being available, make a named pipe to
provide input to crafty. This should allow package building to succeed and has no negative consequences that I know of. It is not clear at the moment why /dev/fd/3 is not present in the chroot'ed package building environment, but I wanted to get a fix in before the DP1 ports freeze. I arrived at this solution after helpful discussions with <esoha@attbi.com>.
Notes
Notes: svn path=/head/; revision=57235
Diffstat (limited to 'games')
-rw-r--r--games/crafty-open-rock/Makefile6
-rw-r--r--games/crafty-open-rock/files/book-building2
2 files changed, 6 insertions, 2 deletions
diff --git a/games/crafty-open-rock/Makefile b/games/crafty-open-rock/Makefile
index 3690a154ac2d..a44eaa5c54b5 100644
--- a/games/crafty-open-rock/Makefile
+++ b/games/crafty-open-rock/Makefile
@@ -22,11 +22,15 @@ DIST_SUBDIR= crafty
NO_WRKSUBDIR= yes
EXTRACT_ONLY=
+MKFIFO= /usr/bin/mkfifo
+GAMEFIFO= ${WRKDIR}/gamefifo
+
do-build:
@${ECHO_MSG} '================================================================'
@${ECHO_MSG} 'Ignore warnings about illegal moves. These warnings are normal.'
@${ECHO_MSG} '================================================================'
- (cd ${DISTDIR}/${DIST_SUBDIR} && ${CAT} ${DISTFILES} | ${GUNZIP_CMD}) | (cd ${WRKDIR}; crafty 3<&0 < ${FILESDIR}/book-building)
+ ${MKFIFO} ${GAMEFIFO}
+ (cd ${DISTDIR}/${DIST_SUBDIR} && ${CAT} ${DISTFILES} | ${GUNZIP_CMD} > ${GAMEFIFO}) & (cd ${WRKDIR}; crafty < ${FILESDIR}/book-building)
do-install:
${MKDIR} ${PREFIX}/lib/crafty
diff --git a/games/crafty-open-rock/files/book-building b/games/crafty-open-rock/files/book-building
index 95b8a95c8397..bb0133295255 100644
--- a/games/crafty-open-rock/files/book-building
+++ b/games/crafty-open-rock/files/book-building
@@ -1,2 +1,2 @@
-book create /dev/fd/3 60 3
+book create gamefifo 60 3
quit