- Set EXTRACT_SUFX and dismiss USE_ZIP

- Augment DEPRECATED notice text a bit
- Make USE_GL more specific (gl) instead of umbrella `yes'
- Remove references to PTHREAD_CFLAGS (long-time empty) and PTHREAD_LIBS
  (replace with just `-pthread'); it also allows to shave off two lines
- Modernize LIB_DEPENDS syntax and stagify
This commit is contained in:
Alexey Dokuchaev 2014-01-17 18:21:42 +00:00
parent 5421b82e0c
commit 55923938e0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340093

View file

@ -8,6 +8,7 @@ CATEGORIES= games
MASTER_SITES= http://www.fuhquake.net/files/releases/v${PORTVERSION}/ \ MASTER_SITES= http://www.fuhquake.net/files/releases/v${PORTVERSION}/ \
http://www.fuhquake.net/files/misc/:misc http://www.fuhquake.net/files/misc/:misc
DISTNAME= ${PORTNAME}-source-v${PORTVERSION} DISTNAME= ${PORTNAME}-source-v${PORTVERSION}
EXTRACT_SUFX= .zip
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}-linux-v${PORTVERSION}${EXTRACT_SUFX} ${PORTNAME}-linux-v${PORTVERSION}${EXTRACT_SUFX}
DIST_SUBDIR= ${PORTNAME} DIST_SUBDIR= ${PORTNAME}
@ -15,9 +16,8 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Excellent and feature-rich QuakeWorld client COMMENT= Excellent and feature-rich QuakeWorld client
DEPRECATED= Upstream disappeared; no more distfiles DEPRECATED= Upstream disappeared; no more public distfiles; unmaintained
USE_ZIP= yes
MAKEFILE= ${FILESDIR}/Makefile MAKEFILE= ${FILESDIR}/Makefile
WRKSRC= ${WRKDIR}/source WRKSRC= ${WRKDIR}/source
@ -37,14 +37,13 @@ X11_DESC= Build X11 client
HUD_DESC= Install high quality HUD images HUD_DESC= Install high quality HUD images
XMMS_DESC= Enable MP3 player feature XMMS_DESC= Enable MP3 player feature
NO_STAGE= yes
.include "${.CURDIR}/../quake-data/Makefile.include" .include "${.CURDIR}/../quake-data/Makefile.include"
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGLX} .if ${PORT_OPTIONS:MGLX}
USE_GL= yes USE_GL= gl
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png \ LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png \
jpeg:${PORTSDIR}/graphics/jpeg libjpeg.so:${PORTSDIR}/graphics/jpeg
CFLAGS+= -I${LOCALBASE}/include/libpng15 CFLAGS+= -I${LOCALBASE}/include/libpng15
PLIST_SUB+= GLX="" PLIST_SUB+= GLX=""
CLIENTS+= glx CLIENTS+= glx
@ -75,11 +74,9 @@ MAKE_ARGS+= -DWITH_OPTIMIZED_CFLAGS
MAKE_ARGS+= -DWITHOUT_X86_ASM MAKE_ARGS+= -DWITHOUT_X86_ASM
.endif .endif
.if ${PORT_OPTIONS:MXMMS} || exists(${LOCALBASE}/lib/libxmms.so.4) .if ${PORT_OPTIONS:MXMMS} || exists(${LOCALBASE}/lib/libxmms.so)
LIB_DEPENDS+= xmms:${PORTSDIR}/multimedia/xmms LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms
MAKE_ARGS+= -DWITH_XMMS \ MAKE_ARGS+= -DWITH_XMMS PTHREAD_LIBS=-pthread
PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
PTHREAD_LIBS=${PTHREAD_LIBS}
.endif .endif
post-patch: post-patch:
@ -93,21 +90,21 @@ do-build:
do-install: do-install:
.for f in ${CLIENTS} .for f in ${CLIENTS}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${STAGEDIR}${PREFIX}/bin
.endfor .endfor
@${MKDIR} ${DATADIR}/${PORTNAME} @${MKDIR} ${STAGEDIR}${DATADIR}/${PORTNAME}
${INSTALL_DATA} ${WRKDIR}/qw/*.dat ${DATADIR}/${PORTNAME} ${INSTALL_DATA} ${WRKDIR}/qw/*.dat ${STAGEDIR}${DATADIR}/${PORTNAME}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/pak0.pak ${DATADIR}/${PORTNAME} ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/pak0.pak \
${STAGEDIR}${DATADIR}/${PORTNAME}
.if ${PORT_OPTIONS:MHUD} .if ${PORT_OPTIONS:MHUD}
@${MKDIR} ${DATADIR}/${PORTNAME}/textures/wad @${MKDIR} ${STAGEDIR}${DATADIR}/${PORTNAME}/textures/wad
${INSTALL_DATA} ${WRKDIR}/qw/charset.png ${DATADIR}/${PORTNAME} ${INSTALL_DATA} ${WRKDIR}/qw/charset.png \
${STAGEDIR}${DATADIR}/${PORTNAME}
${INSTALL_DATA} ${WRKDIR}/qw/textures/wad/* \ ${INSTALL_DATA} ${WRKDIR}/qw/textures/wad/* \
${DATADIR}/${PORTNAME}/textures/wad ${STAGEDIR}${DATADIR}/${PORTNAME}/textures/wad
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/*.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.txt ${DOCSDIR}
.endif .endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/*.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk> .include <bsd.port.mk>