pkgsrc/games/exchess/Makefile
jperkin d14a02d152 Update games/exchess to v7.31beta, this package's first update in 14 years.
The primary motivator for the upgrade is to improve the book generation
time, which is now several times faster (builds were failing with CPU ulimit
of 1 hour on 3GHz Xeon E5's with the previous version).  This new version
even supports multiple cores, though that isn't enabled at this time.

There appear to have been many other updates, but there is no ChangeLog
and there aren't even any intermediate versions for download (hence using
the current beta version).  Upstream unfortunately makes it as difficult
as possible to see the history of this package.
2014-09-11 16:59:16 +00:00

44 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2014/09/11 16:59:16 jperkin Exp $
DISTNAME= EXchess_v7.31beta
PKGNAME= exchess-7.31beta
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://personal.denison.edu/~homand/EXchess.htm
COMMENT= Experimental chess engine
LICENSE= gnu-gpl-v3
USE_LANGUAGES= c++
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${DISTNAME:C/beta//}
LIBDIR= ${PREFIX}/lib/exchess
DOCDIR= ${PREFIX}/share/doc/exchess
CFLAGS+= -DEXCHESS_DIR=${LIBDIR:Q}
LDFLAGS+= ${PTHREAD_LDFLAGS}
LIBS+= ${PTHREAD_LIBS}
post-extract:
cd ${WRKSRC} && ${MV} search.par search.par.in
do-build:
cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} \
${CXX} ${CFLAGS} src/EXchess.cc -o exchess ${LDFLAGS} ${LIBS}
post-build:
${SED} -e "s,@PREFIX@,${PREFIX},g" \
< ${WRKSRC}/search.par.in > ${WRKSRC}/search.par
INSTALLATION_DIRS+= bin lib/exchess ${DOCDIR}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/exchess ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/search.par ${DESTDIR}${PREFIX}/lib/exchess
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DESTDIR}${DOCDIR}
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"