2007-03-31 11:08:40 +02:00
|
|
|
# New ports collection makefile for: freecol
|
|
|
|
# Date created: 31 March 2007
|
|
|
|
# Whom: Alex Dupre <ale@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= freecol
|
2007-05-25 07:56:46 +02:00
|
|
|
PORTVERSION= 0.6.1
|
2007-03-31 11:08:40 +02:00
|
|
|
CATEGORIES= games java
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
|
|
COMMENT= An open source version of Colonization
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.5+
|
|
|
|
|
2007-04-25 08:41:36 +02:00
|
|
|
PORTDOCS= *
|
2007-03-31 11:08:40 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|%%DATADIR%%|${DATADIR}|g' \
|
|
|
|
${WRKSRC}/freecol
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/freecol ${PREFIX}/bin/
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/FreeCol.jar ${DATADIR}/
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}/)
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} jars ${DATADIR}/)
|
2007-04-25 08:41:36 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/FreeCol.pdf ${DOCSDIR}/
|
|
|
|
.endif
|
2007-03-31 11:08:40 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|