b7f05445c0
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)
103 lines
2.5 KiB
Makefile
103 lines
2.5 KiB
Makefile
PORTNAME= r1q2
|
|
PORTVERSION= 8012
|
|
PORTREVISION= 5
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://freebsd.nsu.ru/distfiles/ LOCAL/danfe \
|
|
http://old.r1ch.net/stuff/r1q2/src/
|
|
DISTNAME= ${PORTNAME}-b${PORTVERSION}-src
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Enhanced Quake II client/server focusing on stability
|
|
WWW= http://old.r1ch.net/stuff/r1q2/
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
ONLY_FOR_ARCHS_REASON= sets the FPU rounding mode and precision (not available in fenv.h)
|
|
|
|
USES= dos2unix gmake zip
|
|
NO_WRKSUBDIR= yes
|
|
BUILD_WRKSRC= ${WRKSRC}/binaries
|
|
ALL_TARGET= #
|
|
|
|
LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
|
MAKE_ENV= LIBDIR="${LIBDIR}"
|
|
PLIST_SUB= LIBDIR="${LIBDIR:S|${PREFIX}/||}"
|
|
|
|
OPTIONS_DEFINE= GAME REF_GL DOCS
|
|
OPTIONS_MULTI= FLAVOR
|
|
OPTIONS_MULTI_FLAVOR= CLIENT DEDICATED
|
|
OPTIONS_DEFAULT= CLIENT DEDICATED REF_GL
|
|
|
|
FLAVOR_DESC= Clients and servers
|
|
CLIENT_DESC= Build client
|
|
DEDICATED_DESC= Build dedicated server
|
|
GAME_DESC= Build main game (default mod)
|
|
REF_GL_DESC= Build renderer (required for client)
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
|
ALL_TARGET+= client
|
|
PLIST_SUB+= CLIENT=""
|
|
.else
|
|
PLIST_SUB+= CLIENT="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDEDICATED}
|
|
ALL_TARGET+= r1q2ded
|
|
PLIST_SUB+= DEDICATED=""
|
|
.else
|
|
PLIST_SUB+= DEDICATED="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGAME}
|
|
ALL_TARGET+= game
|
|
PLIST_SUB+= GAME=""
|
|
.else
|
|
PLIST_SUB+= GAME="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MREF_GL}
|
|
USES+= gl jpeg sdl
|
|
USE_GL= gl
|
|
USE_SDL= sdl
|
|
LIB_DEPENDS+= libpng.so:graphics/png
|
|
ALL_TARGET+= ref_gl
|
|
PLIST_SUB+= REF_GL=""
|
|
.else
|
|
PLIST_SUB+= REF_GL="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|game$$(ARCH)|game|g' \
|
|
${BUILD_WRKSRC}/game/Makefile
|
|
@${REINPLACE_CMD} -e '/SV_FixPlayerSkin/s,__inline,static,' \
|
|
${WRKSRC}/server/sv_game.c
|
|
|
|
pre-build:
|
|
@${FIND} ${BUILD_WRKSRC} -type d -depth 1 -exec ${MKDIR} {}/.depends \;
|
|
|
|
do-install:
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/client/quake2 \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDEDICATED}
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/r1q2ded/r1q2ded \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
.endif
|
|
@${MKDIR} ${STAGEDIR}${LIBDIR}/baseq2
|
|
.if ${PORT_OPTIONS:MGAME}
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/game/game.so \
|
|
${STAGEDIR}${LIBDIR}/baseq2
|
|
.endif
|
|
.if ${PORT_OPTIONS:MREF_GL}
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/ref_gl/ref_gl.so \
|
|
${STAGEDIR}${LIBDIR}
|
|
.endif
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/r1q2.txt ${WRKSRC}/readme.txt \
|
|
${STAGEDIR}${DOCSDIR}
|
|
|
|
.include "${.CURDIR}/../quake2-data/Makefile.include"
|
|
.include <bsd.port.mk>
|