2012-04-08 12:36:09 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2012/04/08 16:36:09 ajacoutot Exp $
|
2001-05-05 21:06:09 -04:00
|
|
|
|
2011-03-02 01:39:47 -05:00
|
|
|
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
|
2004-07-06 00:00:11 -04:00
|
|
|
|
1998-05-19 22:59:10 -04:00
|
|
|
CATEGORIES= games
|
2004-07-06 00:00:11 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
|
|
|
|
|
2011-03-02 01:39:47 -05:00
|
|
|
# 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
|
|
|
|
2004-07-06 00:00:11 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
|
2012-04-08 12:32:29 -04:00
|
|
|
README= ${WRKSRC}/README
|
|
|
|
BOOK_FILE= ${WRKSRC}/src/book.bin
|
2004-07-06 00:00:11 -04:00
|
|
|
|
|
|
|
post-build:
|
2012-04-08 12:32:29 -04:00
|
|
|
cd ${WRKSRC}/src && ln -sf ../../book_1.02.pgn
|
2004-07-06 00:00:11 -04:00
|
|
|
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
|
|
|
|
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>
|