freebsd-ports/games/phalanx/Makefile

50 lines
1.1 KiB
Makefile
Raw Normal View History

# Created by: Andrey Zakhvatov
1999-08-25 08:06:33 +02:00
# $FreeBSD$
PORTNAME= phalanx
PORTVERSION= 23.b
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Version%20XXIII%20Beta
DISTNAME= ${PORTNAME}-XXIII-beta
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:32:26 +01:00
COMMENT= Xboard-compatible chess playing program
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/${DISTNAME:S/-beta//}
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
ALL_TARGET= # empty
MAKE_JOBS_UNSAFE= yes
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
PLIST_DIRS= %%DATADIR%%
NO_STAGE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.phalanx ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>