664a2fa1e5
New major version 3.0.0
106 lines
2.5 KiB
Makefile
106 lines
2.5 KiB
Makefile
PORTNAME= joequake
|
|
PORTVERSION= 0.15b1329
|
|
PORTREVISION= 12
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://joequake.runecentral.com/
|
|
DISTNAME= ${PORTNAME}-v${PORTVERSION}-source
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
${PORTNAME}-v0.15b1331-linux${EXTRACT_SUFX}
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Improved NQ engine with ZQuake and FuhQuake graphical effects
|
|
WWW= http://runecentral.com/joequake/
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
USES= gmake zip
|
|
USE_CSTD= gnu89
|
|
|
|
MAKEFILE= Makefile.linux
|
|
CFLAGS+= -fcommon
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
OPTIONS_MULTI= UI
|
|
OPTIONS_MULTI_UI= OPENGL X11
|
|
OPTIONS_DEFINE= HUD HUD_SA OPTIMIZED_CFLAGS X86_ASM DOCS
|
|
OPTIONS_DEFAULT= OPENGL OPTIMIZED_CFLAGS X11
|
|
OPTIONS_DEFAULT_amd64= X86_ASM
|
|
HUD_DESC= High quality HUD images (for OpenGL)
|
|
HUD_SA_DESC= Same for Scourge of Armagon (hipnotic)
|
|
X86_ASM_DESC= Enable x86 assembly code
|
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
|
USES+= gl jpeg xorg
|
|
USE_GL+= gl
|
|
USE_XORG+= x11 xext xxf86dga xxf86vm
|
|
ALL_TARGET+= glx
|
|
PLIST_SUB+= GLX=""
|
|
.else
|
|
PLIST_SUB+= GLX="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MHUD}
|
|
DISTFILES+= joequake_wad${EXTRACT_SUFX}
|
|
PLIST_SUB+= HUD=""
|
|
.else
|
|
PLIST_SUB+= HUD="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MHUD_SA}
|
|
DISTFILES+= hipnotic_wad${EXTRACT_SUFX}
|
|
PLIST_SUB+= HUD_SA=""
|
|
.else
|
|
PLIST_SUB+= HUD_SA="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MHUD} || !empty(PORT_OPTIONS:MHUD_SA)
|
|
PLIST_SUB+= HUD_DIR=""
|
|
.else
|
|
PLIST_SUB+= HUD_DIR="@comment "
|
|
.endif
|
|
|
|
.for f in OPTIMIZED_CFLAGS X86_ASM
|
|
. if ${PORT_OPTIONS:M${f}}
|
|
MAKE_ENV+= USE_${f}=YES
|
|
. else
|
|
MAKE_ENV+= USE_${f}=NO
|
|
. endif
|
|
.endfor
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
USES+= xorg
|
|
USE_XORG+= x11 xext
|
|
ALL_TARGET+= x11
|
|
PLIST_SUB+= X11=""
|
|
.else
|
|
PLIST_SUB+= X11="@comment "
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${Q1DIR}/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/pak0.pak ${STAGEDIR}${Q1DIR}/${PORTNAME}
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/release_glx/joequake-gl.glx \
|
|
${STAGEDIR}${PREFIX}/bin/joequake-glx
|
|
.endif
|
|
.if ${PORT_OPTIONS:MHUD} || !empty(PORT_OPTIONS:MHUD_SA)
|
|
${MKDIR} ${STAGEDIR}${Q1DIR}/${PORTNAME}/textures/wad
|
|
${INSTALL_DATA} ${WRKDIR}/wad/* ${STAGEDIR}${Q1DIR}/${PORTNAME}/textures/wad
|
|
.endif
|
|
.if ${PORT_OPTIONS:MX11}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/release_x11/joequake.x11 \
|
|
${STAGEDIR}${PREFIX}/bin/joequake-x11
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/*.txt ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|