pkgsrc/games/crafty/Makefile
joerg 2cfbcdf9d9 Update to crafty 22.1. Always use the NetBSD rules, we can fixup issues
if they happen. Don't install the ECO classification as opening book, it
is essentially useful.

No detailed ChangeLog, but this fixes some crashes with invalid games,
brings SMP support and increases to the strength of crafty.
2008-05-25 15:55:27 +00:00

34 lines
757 B
Makefile

# $NetBSD: Makefile,v 1.42 2008/05/25 15:55:27 joerg Exp $
DISTNAME= crafty-22.1
CATEGORIES= games
MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/source/ \
http://www.craftychess.com/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Chess engine
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
.include "../../mk/bsd.prefs.mk"
CRAFTY_OPTS= -DBOOKDIR=\"${BOOKDIR:Q}\"
CRAFTY_OPTS+= -DTBDIR=\"${TBDIR:Q}\"
MAKE_ENV+= target=NetBSD
BUILD_TARGET= crafty-make
BOOKDIR= ${PREFIX}/lib/crafty
TBDIR= ${PREFIX}/share/egtb
DOCDIR= ${PREFIX}/share/doc/crafty
CRAFTYRC= ${WRKSRC}/.craftyrc
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/crafty ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"