freebsd-ports/games/domination/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

73 lines
2.5 KiB
Makefile

PORTNAME= domination
PORTVERSION= 1.2.5
CATEGORIES= games java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME:S/d/D/}/${PORTVERSION}/:game \
http://domination.sourceforge.net/maps/
DISTFILES= ${PORTNAME:S/d/D/}_${DISTVERSION}${EXTRACT_SUFX}:game \
${MAPS:S/$/.zip/}
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME:S/d/D/}_${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Board game that is a bit like the well known game Risk
WWW= http://domination.sourceforge.net/
LICENSE= GPLv3
USES= dos2unix zip:infozip
DOS2UNIX_GLOB= *.txt *.ini *.cards *.map
USE_JAVA= yes
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 \
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
OPTIONS_DEFINE= DOCS
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES= ${PORTNAME}-FlashGUI ${PORTNAME}-Increment1GUI \
${PORTNAME}-SimpleGUI ${PORTNAME}-SwingGUI \
pkg-message
DESKTOP_ENTRIES="Domination" "" "${PORTNAME}" \
"${PORTNAME}-SwingGUI" "Game;StrategyGame;" ""
.include <bsd.port.options.mk>
post-extract-script:
.for f in ${MAPS:S/$/.zip/}
@${UNZIP_CMD} -qo -d ${WRKSRC}/maps ${_DISTDIR}/${f}
.endfor
do-install:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"help lib maps resources saves *.jar *.txt *.ini" \
${STAGEDIR}${DATADIR})
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-* ${STAGEDIR}${PREFIX}/bin/
(cd ${WRKSRC} && ${INSTALL_SCRIPT} *.sh ${STAGEDIR}${DATADIR})
@(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}
.include <bsd.port.mk>