1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/games/crafty-open-rock/Makefile
Matthew Hunt 9e5ab808f3 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>.
2002-04-02 19:55:23 +00:00

40 lines
1.2 KiB
Makefile

# New ports collection makefile for: crafty-open-rock
# Date created: 28 December 1998
# Whom: Matthew Hunt <mph@FreeBSD.org>
# Based on ports by: Stefan Eggers <seggers@semyam.dinoco.de>
#
# $FreeBSD$
#
PORTNAME= crafty-open-rock
PORTVERSION= 19980707
CATEGORIES= games
MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/common/rock/
DISTFILES= rock.01 rock.02 rock.03 rock.04 rock.05 rock.06 rock.07 \
rock.08 rock.09 rock.10
MAINTAINER= mph@FreeBSD.org
BUILD_DEPENDS= crafty:${PORTSDIR}/games/crafty
RUN_DEPENDS= crafty:${PORTSDIR}/games/crafty
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} '================================================================'
${MKFIFO} ${GAMEFIFO}
(cd ${DISTDIR}/${DIST_SUBDIR} && ${CAT} ${DISTFILES} | ${GUNZIP_CMD} > ${GAMEFIFO}) & (cd ${WRKDIR}; crafty < ${FILESDIR}/book-building)
do-install:
${MKDIR} ${PREFIX}/lib/crafty
${INSTALL_DATA} ${WRKDIR}/book.bin ${PREFIX}/lib/crafty/rock-book.bin
.include <bsd.port.mk>