2003-01-31 10:55:59 +01:00
|
|
|
# New ports collection makefile for: quake2
|
|
|
|
# Date created: 20.01.2003
|
|
|
|
# Whom: Ulrich Spoerlein <q@uni.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= quake2forge
|
2004-08-11 21:09:02 +02:00
|
|
|
PORTVERSION= 0.3
|
2008-03-13 15:28:35 +01:00
|
|
|
PORTREVISION= 6
|
2003-01-31 10:55:59 +01:00
|
|
|
CATEGORIES= games
|
2006-07-29 00:50:14 +02:00
|
|
|
MASTER_SITES= http://www.galgenberg.net/distfiles/
|
2003-01-31 10:55:59 +01:00
|
|
|
DISTNAME= quake2-${PORTVERSION}
|
|
|
|
|
2006-04-09 15:08:16 +02:00
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
2003-03-28 11:23:20 +01:00
|
|
|
COMMENT= First Person Shooter with many addons available
|
2003-01-31 10:55:59 +01:00
|
|
|
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:262 libtool:15
|
2006-04-12 23:56:09 +02:00
|
|
|
USE_BZIP2= yes
|
2003-01-31 10:55:59 +01:00
|
|
|
|
2007-02-04 19:03:31 +01:00
|
|
|
CONFIGURE_ARGS= --program-transform-name='s/^quake2$$/${PORTNAME}/' \
|
|
|
|
--disable-warn
|
2003-01-31 10:55:59 +01:00
|
|
|
|
2006-07-29 00:50:14 +02:00
|
|
|
OPTIONS= AO "Build libao sound module" off \
|
|
|
|
CTF "Build the CTF (Capture The Flag) modification" off \
|
|
|
|
GAME "Build a main game .so file" off \
|
|
|
|
GL "Build OpenGL renderer" on \
|
|
|
|
SDL "Build SDL renderers" off \
|
|
|
|
SVGA "Build SVGA renderer" off \
|
|
|
|
X11 "Build X11 renderer" on
|
2003-01-31 10:55:59 +01:00
|
|
|
|
2005-11-22 06:15:42 +01:00
|
|
|
LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
2003-01-31 10:55:59 +01:00
|
|
|
|
2005-11-22 06:15:42 +01:00
|
|
|
.include "${.CURDIR}/../quake2-data/Makefile.include"
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2004-08-11 21:09:02 +02:00
|
|
|
|
2008-03-30 00:09:35 +01:00
|
|
|
.if defined(WITH_GL) || defined(WITH_X11)
|
|
|
|
USE_XORG= xxf86dga
|
|
|
|
.endif
|
|
|
|
|
2006-04-12 23:56:09 +02:00
|
|
|
.if defined(WITH_AO)
|
2004-08-11 21:09:02 +02:00
|
|
|
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao
|
|
|
|
CONFIGURE_ARGS+=--with-ao=${LOCALBASE}
|
2005-10-28 17:06:34 +02:00
|
|
|
PLIST_SUB+= AO=""
|
2004-08-11 21:09:02 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-ao
|
2005-10-28 17:06:34 +02:00
|
|
|
PLIST_SUB+= AO="@comment "
|
2004-08-11 21:09:02 +02:00
|
|
|
.endif
|
|
|
|
|
2006-07-29 00:50:14 +02:00
|
|
|
.if defined(WITH_CTF)
|
|
|
|
PLIST_SUB+= CTF=""
|
|
|
|
.else
|
|
|
|
Q2F_BADMODS+= ctf
|
|
|
|
PLIST_SUB+= CTF="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GAME)
|
|
|
|
PLIST_SUB+= GAME=""
|
|
|
|
.else
|
|
|
|
Q2F_BADMODS+= baseq2
|
|
|
|
PLIST_SUB+= GAME="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GL)
|
2005-11-22 06:15:42 +01:00
|
|
|
USE_GL= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS+=--with-opengl=${LOCALBASE}
|
2005-10-28 17:06:34 +02:00
|
|
|
PLIST_SUB+= GL=""
|
2003-01-31 10:55:59 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-opengl=no
|
2005-10-28 17:06:34 +02:00
|
|
|
PLIST_SUB+= GL="@comment "
|
2003-01-31 10:55:59 +01:00
|
|
|
.endif
|
|
|
|
|
2006-04-12 23:56:09 +02:00
|
|
|
.if defined(WITH_SDL)
|
2005-11-22 06:15:42 +01:00
|
|
|
USE_SDL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-sdl=${LOCALBASE}
|
2005-10-28 17:06:34 +02:00
|
|
|
PLIST_SUB+= SDL=""
|
2003-01-31 10:55:59 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sdl --disable-sdltest
|
2005-10-28 17:06:34 +02:00
|
|
|
PLIST_SUB+= SDL="@comment "
|
2003-01-31 10:55:59 +01:00
|
|
|
.endif
|
|
|
|
|
2006-07-29 00:50:14 +02:00
|
|
|
.if defined(WITH_GL) && defined(WITH_SDL)
|
2005-11-22 06:15:42 +01:00
|
|
|
PLIST_SUB+= SDLGL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SDLGL="@comment "
|
2003-01-31 10:55:59 +01:00
|
|
|
.endif
|
2005-11-22 06:15:42 +01:00
|
|
|
|
2006-04-12 23:56:09 +02:00
|
|
|
.if defined(WITH_SVGA)
|
2005-11-22 06:15:42 +01:00
|
|
|
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
CONFIGURE_ARGS+=--with-svgalib=${LOCALBASE}
|
|
|
|
PLIST_SUB+= SVGA=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-svgalib=no
|
|
|
|
PLIST_SUB+= SVGA="@comment "
|
2003-01-31 10:55:59 +01:00
|
|
|
.endif
|
2005-11-22 06:15:42 +01:00
|
|
|
|
2006-07-29 00:50:14 +02:00
|
|
|
.if defined(WITH_X11)
|
2005-11-22 06:15:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-x
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-x
|
|
|
|
PLIST_SUB+= X11="@comment "
|
2005-10-28 17:06:34 +02:00
|
|
|
.endif
|
2005-11-22 06:15:42 +01:00
|
|
|
|
2004-08-11 21:09:02 +02:00
|
|
|
post-patch:
|
2005-11-22 06:15:42 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -name Makefile.in -print0 | \
|
|
|
|
${XARGS} -0 ${REINPLACE_CMD} -e \
|
|
|
|
's|\($$(libdir)/\)@PACKAGE@|\1${PORTNAME}|'
|
|
|
|
@${REINPLACE_CMD} -e 's|\($$libdir/\)$$PACKAGE|\1${PORTNAME}|' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}.in
|
2006-07-29 00:50:14 +02:00
|
|
|
.for f in ${Q2F_BADMODS}
|
|
|
|
@${REINPLACE_CMD} -i "" -e 's/${f}//' ${WRKSRC}/src/Makefile.in
|
2005-11-22 06:15:42 +01:00
|
|
|
.endfor
|
2003-01-31 10:55:59 +01:00
|
|
|
|
|
|
|
post-install:
|
2005-11-22 06:15:42 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-07-29 00:50:14 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2005-11-22 06:15:42 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/README.* ${WRKSRC}/docs/*.txt ${DOCSDIR}
|
2006-07-29 00:50:14 +02:00
|
|
|
.if defined(WITH_CTF)
|
|
|
|
${MKDIR} ${DOCSDIR}/ctf
|
|
|
|
.for f in *.html *.gif *.jpg
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/ctf/${f} ${DOCSDIR}/ctf
|
|
|
|
.endfor
|
|
|
|
.endif
|
2005-11-22 06:15:42 +01:00
|
|
|
.endif
|
|
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
2003-01-31 10:55:59 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|