openbsd-ports/games/gnuchess/Makefile

39 lines
974 B
Makefile
Raw Normal View History

2004-11-28 17:41:14 -05:00
# $OpenBSD: Makefile,v 1.21 2004/11/28 22:41:17 espie Exp $
COMMENT= "Classic Gnu Chess"
1998-05-19 22:59:10 -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
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
MAINTAINER= Michael Coulter <mjc@openbsd.org>
# 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
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
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>