1995-12-23 17:54:11 +01:00
|
|
|
# New ports collection makefile for: Gnu Chess
|
1996-07-10 04:36:45 +02:00
|
|
|
# Date created: 04 July 1996
|
1995-12-23 17:54:11 +01:00
|
|
|
# Whom: markm
|
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1995-12-23 17:54:11 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 08:53:26 +02:00
|
|
|
PORTNAME= gnuchess
|
2004-12-23 05:57:09 +01:00
|
|
|
PORTVERSION= 5.07
|
1996-11-18 11:25:35 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2002-10-07 12:28:09 +02:00
|
|
|
MASTER_SITE_SUBDIR= chess
|
2005-01-18 02:34:31 +01:00
|
|
|
# The DISTFILES here is explicitly needed because it can be extended later.
|
2005-01-18 00:18:16 +01:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
1995-12-23 17:54:11 +01:00
|
|
|
|
2008-08-20 08:40:43 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:32:26 +01:00
|
|
|
COMMENT= "Classic" Gnu Chess
|
1995-12-23 17:54:11 +01:00
|
|
|
|
2004-12-23 05:57:09 +01:00
|
|
|
PLIST_FILES= bin/gnuchess \
|
|
|
|
bin/gnuchessx
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= ChangeLog \
|
|
|
|
NEWS \
|
|
|
|
README
|
|
|
|
.endif
|
|
|
|
|
|
|
|
OPTIONS= OPENING_BOOK "Install opening book (24 MB download)" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_OPENING_BOOK)
|
|
|
|
DISTFILES+= book_1.01.pgn.gz
|
|
|
|
PLIST_DIRS+= %%DATADIR%%
|
|
|
|
PLIST_FILES+= %%DATADIR%%/book.dat
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
2002-10-07 12:28:09 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-05-10 10:03:01 +02:00
|
|
|
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS:S/"//g}|g ; \
|
|
|
|
s|-pthread ||g' ${WRKSRC}/configure
|
1995-12-23 17:54:11 +01:00
|
|
|
|
2004-12-23 05:57:09 +01:00
|
|
|
pre-install:
|
|
|
|
.if defined(WITH_OPENING_BOOK)
|
2004-12-26 14:26:45 +01:00
|
|
|
@${SH} ${SCRIPTDIR}/create_opening_book.sh ${DISTDIR} ${WRKSRC}
|
2004-12-23 05:57:09 +01:00
|
|
|
.endif
|
|
|
|
|
2003-10-08 13:31:49 +02:00
|
|
|
post-install:
|
|
|
|
${LN} -f ${PREFIX}/bin/gnuchess ${PREFIX}/bin/gnuchessx
|
2004-12-23 05:57:09 +01:00
|
|
|
.if defined(WITH_OPENING_BOOK)
|
|
|
|
@${ECHO_CMD} Installing opening book
|
|
|
|
${MKDIR} ${DATADIR} && \
|
|
|
|
${CP} ${WRKSRC}/src/book.dat ${DATADIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_CMD} Installing documentation
|
|
|
|
${MKDIR} ${DOCSDIR} && \
|
|
|
|
${CP} ${WRKSRC}/NEWS ${DOCSDIR} && \
|
|
|
|
${CP} ${WRKSRC}/doc/* ${DOCSDIR}
|
|
|
|
.endif
|
2003-10-08 13:31:49 +02:00
|
|
|
|
2004-12-23 05:57:09 +01:00
|
|
|
.include <bsd.port.post.mk>
|