2004-11-28 17:41:14 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2004/11/28 22:41:17 espie Exp $
|
2001-05-05 21:06:09 -04:00
|
|
|
|
|
|
|
COMMENT= "Classic Gnu Chess"
|
1998-05-19 22:59:10 -04:00
|
|
|
|
2004-07-06 00:00:11 -04:00
|
|
|
DISTNAME= gnuchess-5.07
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz book_1.01.pgn.gz
|
|
|
|
|
1998-05-19 22:59:10 -04:00
|
|
|
CATEGORIES= games
|
2004-07-06 00:00:11 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
|
|
|
|
|
|
|
|
MAINTAINER= Michael Coulter <mjc@openbsd.org>
|
1998-11-08 20:49:54 -05:00
|
|
|
|
2004-07-06 00:00:11 -04:00
|
|
|
# GPL
|
2000-06-06 19:38:02 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB= c ncurses pthread readline
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2004-07-06 00:00:11 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
|
|
|
|
MAKE_FLAGS+= CFLAGS="${CFLAGS} -DBOOK_PREFIX=\\\"${TRUEPREFIX}\\\""
|
|
|
|
|
|
|
|
README= ${WRKSRC}/doc/README
|
|
|
|
BOOK_FILE= ${WRKSRC}/src/book.dat
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/src && ln -sf ../../book_1.01.pgn
|
|
|
|
cd ${WRKSRC}/src && \
|
|
|
|
printf "book add book_1.01.pgn\nquit\n" | ./gnuchess ; echo
|
1999-09-23 16:45:18 -04:00
|
|
|
|
2004-07-06 00:00:11 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/gnuchess
|
|
|
|
${INSTALL_DATA} ${BOOK_FILE} ${PREFIX}/share/gnuchess
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnuchess
|
|
|
|
${INSTALL_DATA} ${README} ${PREFIX}/share/doc/gnuchess
|
1998-05-19 22:59:10 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|