2013-09-20 19:36:33 +02:00
|
|
|
# Created by: Andrey Zakhvatov
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1999-06-06 19:40:06 +02:00
|
|
|
|
2000-04-14 14:28:40 +02:00
|
|
|
PORTNAME= phalanx
|
2011-08-26 05:58:59 +02:00
|
|
|
PORTVERSION= 23.b
|
2000-04-02 03:00:24 +02:00
|
|
|
CATEGORIES= games
|
2011-08-26 05:58:59 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Version%20XXIII%20Beta
|
|
|
|
DISTNAME= ${PORTNAME}-XXIII-beta
|
|
|
|
EXTRACT_SUFX= .tgz
|
1999-06-06 19:40:06 +02:00
|
|
|
|
2000-04-02 03:00:24 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:32:26 +01:00
|
|
|
COMMENT= Xboard-compatible chess playing program
|
1999-06-06 19:40:06 +02:00
|
|
|
|
2011-08-26 05:58:59 +02:00
|
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2011-08-02 19:04:00 +02:00
|
|
|
|
2011-08-26 05:58:59 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-beta//}
|
2003-05-10 09:03:07 +02:00
|
|
|
|
2000-04-02 03:00:24 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKEFILE= makefile
|
2011-08-26 05:58:59 +02:00
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
|
|
|
|
ALL_TARGET= # empty
|
2011-08-28 23:13:08 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2011-08-26 05:58:59 +02:00
|
|
|
|
|
|
|
CFLAGS+= -DECO_DIR=\\\"${DATADIR}\\\" \
|
|
|
|
-DLEARN_DIR=\\\"${DATADIR}\\\" \
|
|
|
|
-DPBOOK_DIR=\\\"${DATADIR}\\\" \
|
|
|
|
-DSBOOK_DIR=\\\"${DATADIR}\\\"
|
|
|
|
|
|
|
|
PORTDOCS= HISTORY README README.old
|
|
|
|
PLIST_FILES= bin/phalanx \
|
|
|
|
%%DATADIR%%/eco.phalanx \
|
|
|
|
%%DATADIR%%/pbook.phalanx \
|
|
|
|
%%DATADIR%%/sbook.phalanx
|
2004-08-08 19:08:40 +02:00
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
|
2013-09-20 19:36:33 +02:00
|
|
|
NO_STAGE= yes
|
1999-06-06 19:40:06 +02:00
|
|
|
do-install:
|
2000-04-02 03:00:24 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${PREFIX}/bin
|
2002-08-21 05:10:55 +02:00
|
|
|
@${MKDIR} ${DATADIR}
|
2011-08-26 05:58:59 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.phalanx ${DATADIR}
|
1999-06-06 19:40:06 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-08-21 05:10:55 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2011-08-26 05:58:59 +02:00
|
|
|
.for file in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
1999-06-06 19:40:06 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|