2014-03-24 00:05:09 +00:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2012-10-04 19:40:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= domination
|
2015-09-22 20:19:42 +00:00
|
|
|
PORTVERSION= 1.1.1.6
|
2015-09-22 22:36:17 +00:00
|
|
|
PORTREVISION= 1
|
2012-10-04 19:40:39 +00:00
|
|
|
CATEGORIES= games java
|
2014-03-24 00:05:09 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME:S/d/D/}/${PORTVERSION}/:game \
|
2012-11-04 18:53:13 +00:00
|
|
|
http://domination.sourceforge.net/maps/
|
2012-10-31 05:40:09 +00:00
|
|
|
DISTFILES= ${PORTNAME:S/d/D/}_${DISTVERSION}${EXTRACT_SUFX}:game \
|
2012-11-04 18:53:13 +00:00
|
|
|
${MAPS:S/$/.zip/}
|
2012-10-04 19:40:39 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2013-09-12 22:19:48 +00:00
|
|
|
EXTRACT_ONLY= ${PORTNAME:S/d/D/}_${DISTVERSION}${EXTRACT_SUFX}
|
2012-10-04 19:40:39 +00:00
|
|
|
|
2018-06-26 17:06:33 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-10-04 19:40:39 +00:00
|
|
|
COMMENT= Board game that is a bit like the well known game Risk
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2014-03-24 00:05:09 +00:00
|
|
|
USES= dos2unix zip:infozip
|
|
|
|
DOS2UNIX_GLOB= *.txt *.ini *.htm *.cards *.map
|
2012-10-04 19:40:39 +00:00
|
|
|
USE_JAVA= yes
|
2012-12-10 13:18:28 +00:00
|
|
|
JAVA_VERSION= 1.6+
|
2012-10-04 19:40:39 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:S/d/D/}
|
|
|
|
|
|
|
|
# Please contact the MAINTAINER if a Map is missing
|
|
|
|
MAPS= solar bigeurope google europass europe artic sudamerica \
|
|
|
|
MiddleEast-Qatar kosova Falkland-Islands england sw_baltic \
|
|
|
|
spain swiss france austria austria-hungary eire haiti brasil \
|
2014-03-24 00:05:09 +00:00
|
|
|
benelux canada germany northeurope germany1871 \
|
|
|
|
Deutsches_Reich_1871 eesti estonia mexico serbia fletzmap \
|
|
|
|
greece North_of_Italy bayern berlin navarra Illes_Balears \
|
|
|
|
calw wuppertal kerzell ennepe-ruhr-kreis cologne saarland \
|
|
|
|
andorra catalunya astadt dortmund rio_de_janeiro caribbean \
|
|
|
|
Nuremberg_Public_Transit discworld aztec GTA_SAN_AN \
|
|
|
|
middleearth LOTR2 wow randland Riskopoly SuperRiskopoly \
|
|
|
|
trivia chutes sudoku conquest chrono_trigger startrek usa8 \
|
|
|
|
civilwar usa hawaii ohio nyc zertina fortress estlandr \
|
|
|
|
periodictable sylsia troisdorf wolken castle naerr cow \
|
|
|
|
westfalenhalle union rub gymnasium simpsons_world simpsons \
|
|
|
|
germany2
|
|
|
|
|
|
|
|
PORTDOCS= ChangeLog.txt ReadMe.txt commands.txt
|
2014-01-12 21:44:13 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2012-10-04 19:40:39 +00:00
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
|
2014-03-24 00:05:09 +00:00
|
|
|
SUB_FILES= ${PORTNAME}-FlashGUI ${PORTNAME}-Increment1GUI \
|
|
|
|
${PORTNAME}-SimpleGUI ${PORTNAME}-SwingGUI \
|
|
|
|
pkg-deinstall
|
2012-10-04 19:40:39 +00:00
|
|
|
|
2014-01-12 21:44:13 +00:00
|
|
|
DESKTOP_ENTRIES="Domination" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}-SwingGUI" "Game;StrategyGame;" ""
|
2012-10-04 19:40:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
post-extract-script:
|
|
|
|
.for f in ${MAPS:S/$/.zip/}
|
2013-09-12 22:19:48 +00:00
|
|
|
@${UNZIP_CMD} -qo -d ${WRKSRC}/maps ${_DISTDIR}/${f}
|
2012-10-04 19:40:39 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
2014-01-12 21:44:13 +00:00
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
|
2014-03-24 00:05:09 +00:00
|
|
|
"help lib maps resources saves *.jar *.htm *.txt *.ini" \
|
2014-01-12 21:44:13 +00:00
|
|
|
${STAGEDIR}${DATADIR})
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-* ${STAGEDIR}${PREFIX}/bin/
|
2014-03-24 00:05:09 +00:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_SCRIPT} *.sh ${STAGEDIR}${DATADIR})
|
2014-01-12 21:44:13 +00:00
|
|
|
@(cd ${STAGEDIR}${DATADIR} && ${CHMOD} 774 saves)
|
|
|
|
${LN} -sf ${DATADIR}/resources/icon.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2012-10-04 19:40:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|