freebsd-ports/games/netradiant/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.4 KiB
Makefile

PORTNAME= netradiant
PORTVERSION= 20150621
PORTREVISION= 4
CATEGORIES= games cad
MASTER_SITES= http://ingar.intranifty.net/gtkradiant/files/ LOCAL/danfe \
http://ingar.intranifty.net/gtkradiant/files/gamepacks/:gp
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} q3map2.6
EXTRACT_ONLY= ${_DISTFILES:Nq3map2.6}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Fork of GtkRadiant v1.5 FPS games map editor
WWW= http://ingar.intranifty.net/gtkradiant/
LICENSE= GPLv2
BROKEN_armv6= fails to build: h2data.armv6: No such file or directory
BROKEN_armv7= fails to build: h2data.armv7: No such file or directory
LIB_DEPENDS= libpng.so:graphics/png \
libwebp.so:graphics/webp \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig \
libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
USES= compiler:c++11-lang gl gmake gnome jpeg localbase:ldflags \
pkgconfig tar:xz xorg
USE_GL= gl glu
USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 libxml2 pango pangox-compat
USE_XORG= ice sm x11 xmu xt
MAKE_ENV= BUILD=release DOWNLOAD_GAMEPACKS=no EXE=${ARCH} \
RADIANT_ABOUTMSG="For ${OPSYS} ${OSREL} (${ARCH})"
SUB_FILES= ${PORTNAME}
SUB_LIST= ARCH=${ARCH}
PLIST_SUB:= ${SUB_LIST}
OPTIONS_DEFINE= GAMEPACK
OPTIONS_DEFAULT= GAMEPACK
GAMEPACK_DESC= Install gamepacks for some popular games
OPTIONS_SUB= yes
GAMES= DarkPlaces Doom3 ET Neverball Nexuiz OpenArena Osirion Quake1 \
Quake2 Quake2World Quake3 Quake4 Quake Quetoo Tremulous UFOAI \
Unvanquished Warsow Xonotic
GAMEPACK_DISTFILES= ${GAMES:S/$/Pack.zip:gp/}
post-patch:
@${REINPLACE_CMD} -e '/#include/s,<sys/dir,&ent,' \
${WRKSRC}/tools/quake2/qdata/qdata.c
@${REINPLACE_CMD} -e 's,#ifndef WIN32,#ifdef NeXT,' \
${WRKSRC}/tools/quake3/q3data/q3data.c
@${GREP} -Rl --null __linux__ ${WRKSRC}/tools | ${XARGS} -0 \
${REINPLACE_CMD} -e 's,__linux__,__${OPSYS}__,'
pre-install:
# Remove a copy of GNU GPL from what we are going to install
@${RM} ${WRKSRC}/install/GPL.txt
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
@${RMDIR} ${WRKSRC}/install/games
${CP} -a ${WRKSRC}/install/* ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${DISTDIR}/q3map2.6 ${STAGEDIR}${MANPREFIX}/man/man6
do-install-GAMEPACK-on:
.for g in ${GAMES}
${CP} -a ${WRKDIR}/${g}Pack/games ${WRKDIR}/${g}Pack/*.game \
${STAGEDIR}${DATADIR}
.endfor
.include <bsd.port.mk>