2012-10-06 13:54:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.19 2012/10/06 11:54:55 asau Exp $
|
2001-10-25 06:42:52 +02:00
|
|
|
|
|
|
|
DISTNAME= Sjeng-Free-11.0
|
|
|
|
PKGNAME= sjeng-11.0
|
2012-01-24 10:10:50 +01:00
|
|
|
PKGREVISION= 5
|
2001-10-25 06:42:52 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://sjeng.sourceforge.net/ftp/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:=sjeng/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-10-25 22:35:33 +02:00
|
|
|
HOMEPAGE= http://www.sjeng.org/
|
2003-07-21 18:45:54 +02:00
|
|
|
COMMENT= Engine for chess variations (bughouse, suicide, etc.)
|
2001-10-25 06:42:52 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
2006-06-05 18:02:51 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2002-10-10 02:35:56 +02:00
|
|
|
LIBS+= -lm # floor()
|
2001-10-25 06:42:52 +02:00
|
|
|
|
|
|
|
MAKE_ENV+= BOOKDIR="${BOOKDIR}/"
|
|
|
|
|
|
|
|
BOOKDIR= ${PREFIX}/lib/sjeng
|
|
|
|
TBDIR= ${PREFIX}/share/egtb
|
|
|
|
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/sjeng
|
|
|
|
EGDIR= ${PREFIX}/share/examples/sjeng
|
|
|
|
|
2004-01-31 02:00:29 +01:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2005-12-05 21:49:47 +01:00
|
|
|
GCC_REQD+= 3.0
|
2004-01-31 02:00:29 +01:00
|
|
|
.endif
|
|
|
|
|
2001-10-25 06:42:52 +02:00
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
file="sjeng.rc"; \
|
|
|
|
for file in $${files}; do \
|
|
|
|
${SED} -e "s|/wwwindows/crafty/TB|${TBDIR}|g" \
|
|
|
|
$${file} > $${file}.fixed; \
|
|
|
|
${MV} -f $${file}.fixed $${file}; \
|
|
|
|
done
|
|
|
|
|
2010-02-14 21:51:23 +01:00
|
|
|
INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR} ${BOOKDIR}
|
|
|
|
|
2001-10-25 06:42:52 +02:00
|
|
|
post-install:
|
2010-02-14 21:51:23 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
|
2001-10-25 06:42:52 +02:00
|
|
|
${CAT} ${WRKSRC}/sjeng.rc | ${TR} -d "\015" > ${WRKDIR}/sample.sjengrc
|
2010-02-14 21:51:23 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/sample.sjengrc ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/books/*.opn ${DESTDIR}${BOOKDIR}
|
2001-10-25 06:42:52 +02:00
|
|
|
|
2004-04-15 23:29:16 +02:00
|
|
|
.include "../../databases/gdbm/buildlink3.mk"
|
2001-10-25 06:42:52 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|