openbsd-ports/games/gnuchess/Makefile

36 lines
865 B
Makefile
Raw Normal View History

2012-04-08 12:36:09 -04:00
# $OpenBSD: Makefile,v 1.29 2012/04/08 16:36:09 ajacoutot Exp $
COMMENT= chess program
1998-05-19 22:59:10 -04:00
2012-04-08 12:32:29 -04:00
DISTNAME= gnuchess-6.0.1
DISTFILES= ${DISTNAME}.tar.gz book_1.02.pgn.gz
1998-05-19 22:59:10 -04:00
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
# GPLv3
2000-06-06 19:38:02 -04:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2008-11-29 04:49:03 -05:00
2012-04-08 12:32:29 -04:00
WANTLIB += c m ncurses pthread readline stdc++
2000-02-12 03:02:07 -05:00
CONFIGURE_STYLE= gnu
2012-04-08 12:32:29 -04:00
README= ${WRKSRC}/README
BOOK_FILE= ${WRKSRC}/src/book.bin
post-build:
2012-04-08 12:32:29 -04:00
cd ${WRKSRC}/src && ln -sf ../../book_1.02.pgn
cd ${WRKSRC}/src && \
2012-04-08 12:32:29 -04:00
printf "book add book_1.02.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>