2006-05-07 16:12:44 +00:00
|
|
|
# New ports collection makefile for: joequake
|
|
|
|
# Date created: 5 May 2006
|
|
|
|
# Whom: alepulver
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= joequake
|
|
|
|
PORTVERSION= 0.15b1329
|
2012-06-01 05:26:28 +00:00
|
|
|
PORTREVISION= 6
|
2006-05-07 16:12:44 +00:00
|
|
|
CATEGORIES= games
|
2011-08-02 13:49:10 +00:00
|
|
|
MASTER_SITES= http://joequake.runecentral.com/
|
2006-05-07 16:12:44 +00:00
|
|
|
DISTNAME= ${PORTNAME}-v${PORTVERSION}-source
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2006-05-10 16:50:02 +00:00
|
|
|
${PORTNAME}-v0.15b1331-linux${EXTRACT_SUFX}
|
2006-05-07 16:12:44 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
2011-02-27 04:54:41 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-05-07 16:12:44 +00:00
|
|
|
COMMENT= Improved NQ engine with ZQuake and FuhQuake graphical effects
|
|
|
|
|
2012-06-01 05:26:28 +00:00
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
|
2006-05-07 16:12:44 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_ZIP= yes
|
|
|
|
|
|
|
|
MAKEFILE= Makefile.linux
|
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
OPTIONS_MULTI= UI
|
|
|
|
OPTIONS_MULTI_UI= OPENGL X11
|
|
|
|
OPTIONS_DEFINE= HUD HUD_SA OPTIMIZED_CFLAGS X86_ASM
|
|
|
|
OPTIONS_DEFAULT= OPENGL OPTIMIZED_CFLAGS X11 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
|
2006-05-07 16:12:44 +00:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2006-05-07 16:12:44 +00:00
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
2006-05-07 16:12:44 +00:00
|
|
|
USE_GL= yes
|
2010-02-05 11:46:55 +00:00
|
|
|
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
|
2006-05-07 16:12:44 +00:00
|
|
|
ALL_TARGET+= glx
|
|
|
|
PLIST_SUB+= GLX=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GLX="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MHUD}
|
2006-05-07 16:12:44 +00:00
|
|
|
DISTFILES+= joequake_wad${EXTRACT_SUFX}
|
|
|
|
PLIST_SUB+= HUD=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HUD="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MHUD_SA}
|
2006-05-07 16:12:44 +00:00
|
|
|
DISTFILES+= hipnotic_wad${EXTRACT_SUFX}
|
|
|
|
PLIST_SUB+= HUD_SA=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HUD_SA="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MHUD} || !empty(PORT_OPTIONS:MHUD_SA)
|
2006-05-07 16:12:44 +00:00
|
|
|
PLIST_SUB+= HUD_DIR=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HUD_DIR="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.for f in OPTIMIZED_CFLAGS X86_ASM
|
2012-06-12 16:35:45 +00:00
|
|
|
. if ${PORT_OPTIONS:M${f}}
|
2006-05-07 16:12:44 +00:00
|
|
|
MAKE_ENV+= USE_${f}=YES
|
|
|
|
. else
|
|
|
|
MAKE_ENV+= USE_${f}=NO
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2008-03-22 14:48:03 +00:00
|
|
|
USE_XORG= xxf86dga
|
2006-05-07 16:12:44 +00:00
|
|
|
ALL_TARGET+= x11
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2006-05-20 13:29:07 +00:00
|
|
|
${MKDIR} ${Q1DIR}/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/pak0.pak ${Q1DIR}/${PORTNAME}
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
2006-05-07 16:12:44 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/release_glx/joequake-gl.glx \
|
|
|
|
${PREFIX}/bin/joequake-glx
|
|
|
|
.endif
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MHUD} || !empty(PORT_OPTIONS:MHUD_SA)
|
2006-05-20 13:29:07 +00:00
|
|
|
${MKDIR} ${Q1DIR}/${PORTNAME}/textures/wad
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/wad/* ${Q1DIR}/${PORTNAME}/textures/wad
|
2006-05-07 16:12:44 +00:00
|
|
|
.endif
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2006-05-07 16:12:44 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/release_x11/joequake.x11 \
|
|
|
|
${PREFIX}/bin/joequake-x11
|
|
|
|
.endif
|
2012-06-12 16:35:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2006-05-07 16:12:44 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/*.txt ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD}
|
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.include <bsd.port.mk>
|