2013-03-17 16:10:24 +01:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2006-04-10 15:45:07 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= quetoo
|
2007-03-02 11:09:27 +01:00
|
|
|
PORTVERSION= 0.6.1
|
The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:
NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE
This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.
This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.
Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.
Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.
Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.
Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics
Thanks to: all testers, bdrewery and the FreeBSD x11@ team
exp-run by: bdrewery [1]
PR: ports/187602 [1]
Approved by: portmgr (bdrewery), core (jhb)
2014-04-16 20:28:47 +02:00
|
|
|
PORTREVISION= 6
|
2006-04-10 15:45:07 +02:00
|
|
|
CATEGORIES= games
|
2013-03-17 16:10:24 +01:00
|
|
|
MASTER_SITES= http://tastyspleen.net/~jdolan/ \
|
2006-07-06 12:07:26 +02:00
|
|
|
http://freebsd.nsu.ru/distfiles/
|
2006-04-10 15:45:07 +02:00
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2006-04-10 17:09:30 +02:00
|
|
|
COMMENT= Fast, stable, compatible, and secure Quake II client
|
2006-04-10 15:45:07 +02:00
|
|
|
|
2013-09-05 09:22:47 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-04-10 15:45:07 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_SDL= sdl
|
- 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
|
|
|
USE_GL= glut
|
2014-01-17 19:01:54 +01:00
|
|
|
USES= dos2unix
|
|
|
|
DOS2UNIX_FILES= src/vanctf/g_local.h
|
2007-09-07 12:13:01 +02:00
|
|
|
|
2006-04-10 15:45:07 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= OPENGL_CFLAGS="-I${LOCALBASE}/include" \
|
2008-07-23 23:06:53 +02:00
|
|
|
OPENGL_LIBS="-L${LOCALBASE}/lib"
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2007-03-02 11:09:27 +01:00
|
|
|
|
2006-04-10 15:45:07 +02:00
|
|
|
LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
2007-03-02 11:09:27 +01:00
|
|
|
PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}"
|
2006-04-10 15:45:07 +02:00
|
|
|
|
2013-03-17 16:10:24 +01:00
|
|
|
OPTIONS_DEFINE= GAME CTF VANCTF QMASS MYSQL DOCS
|
2007-03-02 11:09:27 +01:00
|
|
|
# Main and CTF game.so files are not built/installed by default since
|
|
|
|
# they're available via `quake2-data' and `quake2-ctf' ports.
|
2013-03-17 16:10:24 +01:00
|
|
|
OPTIONS_DEFAULT= VANCTF QMASS
|
2006-04-10 15:45:07 +02:00
|
|
|
|
2013-09-05 09:22:47 +02:00
|
|
|
GAME_DESC= Build main game (default mod)
|
|
|
|
CTF_DESC= Build Capture The Flag mod
|
|
|
|
VANCTF_DESC= Build Vanilla CTF mod
|
|
|
|
QMASS_DESC= Build QMass deathmatch mod
|
2013-03-17 16:10:24 +01:00
|
|
|
MYSQL_DESC= Enable frag logging with MySQL
|
2006-04-10 15:45:07 +02:00
|
|
|
|
2013-03-17 16:10:24 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGAME}
|
2006-08-14 22:46:20 +02:00
|
|
|
PLIST_SUB+= GAME=""
|
|
|
|
Q2GAMES+= baseq2
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GAME="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-17 16:10:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MCTF}
|
2006-08-14 22:46:20 +02:00
|
|
|
PLIST_SUB+= CTF=""
|
|
|
|
Q2GAMES+= ctf
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CTF="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-17 16:10:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MQMASS}
|
2006-04-10 15:45:07 +02:00
|
|
|
PLIST_SUB+= QMASS=""
|
2006-08-14 22:46:20 +02:00
|
|
|
Q2GAMES+= qmass
|
2006-04-10 15:45:07 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= QMASS="@comment "
|
2007-03-02 11:09:27 +01:00
|
|
|
.endif
|
|
|
|
|
2013-03-17 16:10:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MVANCTF}
|
2007-03-02 11:09:27 +01:00
|
|
|
PLIST_SUB+= VANCTF=""
|
|
|
|
Q2GAMES+= vanctf
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= VANCTF="@comment "
|
2006-04-10 15:45:07 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-17 16:10:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2006-04-10 15:45:07 +02:00
|
|
|
USE_MYSQL= yes
|
2007-03-02 11:09:27 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
2006-04-12 13:23:50 +02:00
|
|
|
CONFIGURE_ENV+= MYSQL_LIBS="-L${LOCALBASE}/lib/mysql -lmysqlclient" \
|
|
|
|
MYSQL_CFLAGS="-I${LOCALBASE}/include"
|
2006-06-06 11:00:16 +02:00
|
|
|
.else
|
2007-03-02 11:09:27 +01:00
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
2006-04-10 15:45:07 +02:00
|
|
|
.endif
|
|
|
|
|
2007-03-02 11:09:27 +01:00
|
|
|
CONFIGURE_ARGS+= --with-games='${Q2GAMES}'
|
2006-04-10 15:45:07 +02:00
|
|
|
|
2010-06-03 09:53:21 +02:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64
|
|
|
|
.endif
|
|
|
|
|
2008-07-23 23:06:53 +02:00
|
|
|
post-patch: .SILENT
|
2007-03-02 11:09:27 +01:00
|
|
|
${REINPLACE_CMD} -E 's,^(eval PKGDATADIR=).*$$,\1"${Q2DIR}", ; \
|
2008-07-23 23:06:53 +02:00
|
|
|
19752s,sdl-config,${SDL_CONFIG}, ; \
|
2007-03-02 11:09:27 +01:00
|
|
|
s,^(GAME_MODULES=")baseq2",\1",' ${WRKSRC}/configure
|
2006-07-06 12:02:05 +02:00
|
|
|
${REINPLACE_CMD} -e 's,-ldl,,' ${WRKSRC}/src/Makefile.in
|
2006-04-10 15:45:07 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-01-17 19:01:54 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/quetoo ${STAGEDIR}${PREFIX}/bin
|
2006-04-10 15:45:07 +02:00
|
|
|
.for g in ${Q2GAMES}
|
2014-01-17 19:01:54 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${LIBDIR}/${g}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${g}/.libs/game.so \
|
|
|
|
${STAGEDIR}${LIBDIR}/${g}
|
2006-04-10 15:45:07 +02:00
|
|
|
.endfor
|
2013-03-17 16:10:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MQMASS}
|
2014-01-17 19:01:54 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/qmass/sound
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/qmass/sound/*.wav \
|
|
|
|
${STAGEDIR}${DATADIR}/qmass/sound
|
|
|
|
.endif
|
2013-03-17 16:10:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MVANCTF}
|
2014-01-17 19:01:54 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/vanctf/maps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/vanctf/maps/*.ent \
|
|
|
|
${STAGEDIR}${DATADIR}/vanctf/maps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/vanctf/maps.lst \
|
|
|
|
${STAGEDIR}${DATADIR}/vanctf
|
2007-03-02 11:09:27 +01:00
|
|
|
.endif
|
2014-01-17 19:01:54 +01:00
|
|
|
.if ${PORT_OPTIONS:MQMASS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/qmass
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/qmass/README ${STAGEDIR}${DOCSDIR}/qmass
|
2007-03-02 11:09:27 +01:00
|
|
|
.endif
|
2014-01-17 19:01:54 +01:00
|
|
|
.if ${PORT_OPTIONS:MVANCTF}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/vanctf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/vanctf/*E* ${STAGEDIR}${DOCSDIR}/vanctf
|
2006-04-10 15:45:07 +02:00
|
|
|
.endif
|
2014-01-17 19:01:54 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
2006-04-10 15:45:07 +02:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../quake2-data/Makefile.include"
|
2013-03-17 16:10:24 +01:00
|
|
|
.include <bsd.port.mk>
|