2006-02-17 20:37:15 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2006/02/17 19:37:15 wiz Exp $
|
2001-10-25 06:42:52 +02:00
|
|
|
|
|
|
|
DISTNAME= Sjeng-Free-11.0
|
|
|
|
PKGNAME= sjeng-11.0
|
2006-02-17 20:37:15 +01:00
|
|
|
PKGREVISION= 3
|
2001-10-25 06:42:52 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://sjeng.sourceforge.net/ftp/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:=sjeng/}
|
|
|
|
|
2004-04-25 00:46:08 +02:00
|
|
|
MAINTAINER= tech-pkg@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
|
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
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
|
|
${CAT} ${WRKSRC}/sjeng.rc | ${TR} -d "\015" > ${WRKDIR}/sample.sjengrc
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/sample.sjengrc ${EGDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${BOOKDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/books/*.opn ${BOOKDIR}
|
|
|
|
|
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"
|