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
|
2012-03-08 09:26:25 +01:00
|
|
|
PORTVERSION= 0.10.5
|
2007-03-31 11:08:40 +02:00
|
|
|
CATEGORIES= games java
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2007-03-31 11:08:40 +02:00
|
|
|
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
|
|
COMMENT= An open source version of Colonization
|
|
|
|
|
2010-06-21 11:37:51 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2011-06-13 12:29:07 +02:00
|
|
|
USE_ZIP= yes
|
2007-03-31 11:08:40 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.5+
|
|
|
|
|
2009-01-18 00:20:43 +01:00
|
|
|
.if defined(NOPORTDATA)
|
2009-02-17 07:57:03 +01:00
|
|
|
IGNORE= needs data file to run, unset NOPORTDATA
|
2009-01-18 00:20:43 +01:00
|
|
|
.endif
|
|
|
|
|
2009-01-16 08:10:10 +01:00
|
|
|
PLIST_FILES= bin/freecol
|
|
|
|
PORTDATA= *
|
2007-04-25 08:41:36 +02:00
|
|
|
PORTDOCS= *
|
2007-03-31 11:08:40 +02:00
|
|
|
|
2011-10-19 10:09:17 +02:00
|
|
|
DESKTOP_ENTRIES="FreeCol" "${COMMENT}" "${DATADIR}/freecol.xpm" "freecol" "Game;StrategyGame;" "false"
|
2008-06-18 08:31:21 +02:00
|
|
|
|
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}/
|
2008-06-18 08:31:21 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/freecol.xpm ${DATADIR}/
|
2007-03-31 11:08:40 +02:00
|
|
|
@(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>
|