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

92 lines
2.8 KiB
Makefile

PORTNAME= rnd_jue
PORTVERSION= 3.3.0.0
PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/:game \
SF/nemysisfreebsdp/${CATEGORIES}/rocksndiamonds/
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:game \
rocksndiamonds-3.3.1.0${EXTRACT_SUFX}:game \
${LEVELS_BD_FANS:S/$/.zip/} \
Tutorial_Alpha.zip \
${PORTNAME}_icons.tar.gz
DIST_SUBDIR= rocksndiamonds
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
rocksndiamonds-3.3.1.0${EXTRACT_SUFX} \
${PORTNAME}_icons.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Colorful Boulderdash'n'Emerald Mine'n'Sokoban'n'Stuff jue
WWW= https://www.jb-line.de/rnd/rnd_start_e.html
LICENSE= GPLv2
BROKEN_FreeBSD_13= ld: error: duplicate symbol: setup
BROKEN_FreeBSD_14= ld: error: duplicate symbol: setup
LIB_DEPENDS+= libsmpeg.so:multimedia/smpeg
EXTRACT_DEPENDS+=${UNZIP_CMD}:archivers/unzip
USES= gmake gnome sdl
USE_SDL= image mixer net sdl
MAKE_ARGS= CC="${CC}" MAKE="${MAKE_CMD}" OPTIONS="${CFLAGS}" \
RO_GAME_DIR="${DATADIR}" \
X11_PATH="${LOCALBASE}"
ALL_TARGET= sdl
SUB_FILES= pkg-message
LEVELS_BD_FANS= JuergenBonhagen rnd_the_h_world Walpurgis_Collection
PORTDOCS= *
PORTDATA= *
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
DESKTOP_ENTRIES="R'n'D jue" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
OPTIONS_DEFINE= DOCS
post-extract-script:
@(cd ${WRKDIR}/rocksndiamonds* && ${COPYTREE_SHARE} levels ${WRKSRC})
.for l in ${LEVELS_BD_FANS:S/$/.zip/}
@${UNZIP_CMD} -qo -d ${WRKSRC}/levels ${_DISTDIR}/${l}
.endfor
@${UNZIP_CMD} -qo -d ${WRKSRC}/levels/Tutorials \
${_DISTDIR}/Tutorial_Alpha.zip
@(cd ${WRKSRC}/levels/Tutorials && ${MV} \
"Tutorial Alpha" rnd_tutorial_alpha)
@(cd ${WRKSRC}/levels/"Walpurgis Collection" && \
${RM} -r "Walpurgis Gardens" "Walpurgis World")
@(cd ${WRKSRC}/levels/rnd_the_h_world && ${RM} -r hwld_dceos)
@${RM} ${WRKDIR}/${PORTNAME}/Readme.txt
@${RM} ${WRKSRC}/levels/Readme.txt
post-patch:
@${REINPLACE_CMD} \
-e 's|sdl-config|$${SDL_CONFIG}|g' ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} \
-e 's|machine/soundcard.h|sys/soundcard.h|' \
${WRKSRC}/src/libgame/sound.c
@${REINPLACE_CMD} \
-e 's|machine/joystick.h|sys/joystick.h|' \
${WRKSRC}/src/libgame/joystick.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for dir in graphics levels music sounds
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR})
.endfor
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
cd ${WRKSRC} && ${COPYTREE_SHARE} "CREDITS ChangeLog docs/elements" \
${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>