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

93 lines
2.4 KiB
Makefile

PORTNAME= quake3
PORTVERSION= 1.32c
CATEGORIES= games linux
MASTER_SITES= IDSOFTWARE/quake3/linux/:data \
IDSOFTWARE/quake3/:patch
PKGNAMEPREFIX= linux-
DISTFILES= ${Q3DATAFILE}:data \
${Q3PATCHFILE}:patch
DIST_SUBDIR= ${Q3PKGNAMEPREFIX}data
MAINTAINER= ports@FreeBSD.org
COMMENT= Quake III Arena for Linux
WWW= http://www.quake3arena.com/
# Converted from RESTRICTED
LICENSE= Loki
LICENSE_NAME= Loki
LICENSE_TEXT= Restrictive license by Loki Software
LICENSE_PERMS= auto-accept
USES= linux zip:infozip
NO_WRKSUBDIR= yes
OPTIONS_MULTI= TYPE
OPTIONS_MULTI_TYPE= CLIENT DEDICATED SMP
OPTIONS_DEFINE= PUNKBUSTER DOCS
OPTIONS_DEFAULT= CLIENT DEDICATED PUNKBUSTER SMP
OPTIONS_SUB= yes
CLIENT_DESC= Install client
DEDICATED_DESC= Install dedicated server
PUNKBUSTER_DESC= Install PunkBuster
SMP_DESC= Install SMP (threaded) client
PLIST_SUB+= LIBDIR="libexec/${PKGNAMEPREFIX}${PORTNAME}"
LIBDIR= ${PREFIX}/libexec/${PKGNAMEPREFIX}${PORTNAME}
Q3DATAFILE= linuxq3apoint-1.32b-3.x86.run
Q3PATCHFILE= quake3-${PORTVERSION}.zip
do-extract:
@cd ${WRKSRC} && ${TAIL} +356 ${_DISTDIR}/${Q3DATAFILE} | \
${TAR} zxf -
@${UNZIP_CMD} -qo ${_DISTDIR}/${Q3PATCHFILE} -d ${WRKSRC}
post-extract:
.for f in q3ded quake3.x86 quake3-smp.x86
@${MV} "${WRKSRC}/Quake III Arena 1.32c/linux/${f}" \
${WRKSRC}/bin/Linux/x86/${f}
.endfor
.include "${.CURDIR}/../quake3-data/Makefile.include"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEDICATED}
PROGS+= q3ded
.endif
.if ${PORT_OPTIONS:MCLIENT}
PROGS+= quake3.x86
.endif
.if ${PORT_OPTIONS:MSMP}
PROGS+= quake3-smp.x86
.endif
do-build:
.for f in ${PROGS}
@(${ECHO_CMD} "#!${SH}"; \
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
${ECHO_CMD} 'exec ${LIBDIR}/${f:R} "$$@"') > ${WRKDIR}/${f:R}
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${LIBDIR}
.for f in ${PROGS}
${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${f} ${STAGEDIR}${LIBDIR}/${f:R}
${INSTALL_SCRIPT} ${WRKDIR}/${f:R} ${STAGEDIR}${PREFIX}/bin/linux-${f:R}
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MPUNKBUSTER}
@${CP} -Rp ${WRKSRC}/pb ${STAGEDIR}${DATADIR}
@${RM} ${STAGEDIR}${DATADIR}/pb/PB_EULA.txt
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${STAGEDIR}${DOCSDIR}
${CP} -Rp ${WRKSRC}/Docs/LinuxFAQ ${STAGEDIR}${DOCSDIR}
${CP} -Rp ${WRKSRC}/Docs/PunkBuster ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/pb/PB_EULA.txt ${STAGEDIR}${DOCSDIR}/PunkBuster
.include <bsd.port.mk>