freebsd-ports/games/rocksndiamonds-data/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

68 lines
2.6 KiB
Makefile

PORTNAME= rocksndiamonds-data
PORTVERSION= 20131106
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.artsoft.org/RELEASES/rocksndiamonds/levels/:levels \
http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/:unix_levels \
SF/nemysisfreebsdp/${CATEGORIES}/rocksndiamonds/
DISTFILES= BD2K3-1.0.0.zip:levels \
Boulder_Dash_Dream-1.0.0.zip:levels \
Emerald_Mine_Club-2.1.1.7z:levels \
Snake_Bite-1.0.0.zip:levels \
Zelda-1.0.0.zip:levels \
ZeldaII-1.0.0.zip:levels \
rockslevels-sp-1.0.tar.gz:unix_levels \
rockslevels-dx-1.0.tar.gz:unix_levels \
${LEVELS_BD_FANS:S/$/.zip/} \
Alans_Random_Levels.zip \
Gavin_Davidson_2006.zip \
Puzzles_v1.8.zip \
Veysi_Orak_2006.zip
DIST_SUBDIR= rocksndiamonds
MAINTAINER= ports@FreeBSD.org
COMMENT= Additional Player Levels for Rocks'n'Diamonds and R'n'D jue
WWW= https://web.archive.org/web/20140110211740/http://www.bd-fans.com/RnD.html
DATADIR= ${PREFIX}/share/rocksndiamonds
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
LEVELS_ARTSOFT= BD2K3 Boulder_Dash_Dream DX_Boulderdash Emerald_Mine_Club \
Snake_Bite Supaplex zelda zelda2
LEVELS_BD_FANS= 42_Steps Alexanders_Levels Arcade_Levels Be_a_bug \
Contest_Levels Danilo_Parantar_Serrano \
Danilo_Parantar_Serrano_2 Earth_Shaker_Collection Glasses \
Hard_Skills Haspeton Learning_Maths Little_Games Magic_CEs \
Manuel Manuels_Sokoban_Levels Master-Rocks Memory \
Mini_Levels_Ryan Missions Mixed_Levels Mixed_Levels_2 \
MultiRandomLevel My_Levels_of_Fun Negundo_World_2 \
Negundo_World_3 P98_Level_Pack_1 Pacman Random_Games \
Rocks_n_Diamonds_Fun Ryans_Random_Levels Slippery_Ground \
Space_Invaders Space_Invaders_2 Springlis_Levels Stinky \
Super_BD-Rock Super_Comic_Levels Venatir Warparound_Murphy \
Time_Gate_Rush
post-extract:
@cd ${WRKSRC}/levels && ${MV} * .. && cd .. && ${RMDIR} levels
@cd ${WRKSRC} && ${MV} "Alan's_Random_Levels" Alans_Random_Levels
@cd ${WRKSRC} && ${MV} "Gavin Davidson 2006" Gavin_Davidson_2006
@cd ${WRKSRC} && ${MV} "Veysi Orak 2006" Veysi_Orak_2006
@cd ${WRKSRC} && ${RM} Readme.txt levelinfo.conf
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/levels
@cd ${STAGEDIR}${PREFIX} && ${FIND} ${DATADIR_REL}/levels \
-type f >> ${TMPPLIST}
# Create symlinks to the levels for games/rnd_jue
@${MKDIR} ${STAGEDIR}${PREFIX}/share/rnd_jue/levels
.for l in ${LEVELS_ARTSOFT} ${LEVELS_BD_FANS} Alans_Random_Levels \
Gavin_Davidson_2006 Puzzles Veysi_Orak_2006
@${RLN} ${STAGEDIR}${DATADIR}/levels/${l} \
${STAGEDIR}${PREFIX}/share/rnd_jue/levels
@${ECHO_CMD} share/rnd_jue/levels/${l} >> ${TMPPLIST}
.endfor
.include <bsd.port.mk>