openbsd-ports/games/gnuchess/Makefile
2013-03-11 11:02:49 +00:00

33 lines
783 B
Makefile

# $OpenBSD: Makefile,v 1.31 2013/03/11 11:07:39 espie Exp $
COMMENT= chess program
DISTNAME= gnuchess-6.0.2
DISTFILES= ${DISTNAME}.tar.gz book_1.02.pgn.gz
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c m ncurses pthread readline stdc++
CONFIGURE_STYLE= gnu
README= ${WRKSRC}/README
BOOK_FILE= ${WRKSRC}/src/book.bin
post-build:
cd ${WRKSRC}/src && ln -sf ../../book_1.02.pgn
cd ${WRKSRC}/src && \
printf "book add book_1.02.pgn\nquit\n" | ./gnuchess ; echo
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
.include <bsd.port.mk>