1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00
freebsd-ports/games/quetoo/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

117 lines
3.0 KiB
Makefile

PORTNAME= quetoo
PORTVERSION= 0.6.1
PORTREVISION= 10
CATEGORIES= games
MASTER_SITES= http://tastyspleen.net/~jdolan/ \
http://freebsd.nsu.ru/distfiles/
MAINTAINER= danfe@FreeBSD.org
COMMENT= Fast, stable, compatible, and secure Quake II client
LICENSE= GPLv2
USES= dos2unix gl sdl tar:bzip2
USE_GL= glut
USE_SDL= sdl
DOS2UNIX_FILES= src/vanctf/g_local.h
GNU_CONFIGURE= yes
CONFIGURE_ENV= OPENGL_CFLAGS="-I${LOCALBASE}/include" \
OPENGL_LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
LIBDIR= ${PREFIX}/lib/${PORTNAME}
PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}"
OPTIONS_DEFINE= GAME CTF VANCTF QMASS MYSQL DOCS
# Main and CTF game.so files are not built/installed by default since
# they're available via `quake2-data' and `quake2-ctf' ports.
OPTIONS_DEFAULT= VANCTF QMASS
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
MYSQL_DESC= Enable frag logging with MySQL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGAME}
PLIST_SUB+= GAME=""
Q2GAMES+= baseq2
.else
PLIST_SUB+= GAME="@comment "
.endif
.if ${PORT_OPTIONS:MCTF}
PLIST_SUB+= CTF=""
Q2GAMES+= ctf
.else
PLIST_SUB+= CTF="@comment "
.endif
.if ${PORT_OPTIONS:MQMASS}
PLIST_SUB+= QMASS=""
Q2GAMES+= qmass
.else
PLIST_SUB+= QMASS="@comment "
.endif
.if ${PORT_OPTIONS:MVANCTF}
PLIST_SUB+= VANCTF=""
Q2GAMES+= vanctf
.else
PLIST_SUB+= VANCTF="@comment "
.endif
.if ${PORT_OPTIONS:MMYSQL}
USES+= mysql
CONFIGURE_ARGS+= --with-mysql
CONFIGURE_ENV+= MYSQL_LIBS="-L${LOCALBASE}/lib/mysql -lmysqlclient" \
MYSQL_CFLAGS="-I${LOCALBASE}/include"
.else
CONFIGURE_ARGS+= --without-mysql
.endif
CONFIGURE_ARGS+= --with-games='${Q2GAMES}'
post-patch: .SILENT
${REINPLACE_CMD} -E 's,^(eval PKGDATADIR=).*$$,\1"${Q2DIR}", ; \
19752s,sdl-config,${SDL_CONFIG}, ; \
s,^(GAME_MODULES=")baseq2",\1", ; \
s,-Werror,,' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's,-ldl,,' ${WRKSRC}/src/Makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/quetoo ${STAGEDIR}${PREFIX}/bin
.for g in ${Q2GAMES}
@${MKDIR} ${STAGEDIR}${LIBDIR}/${g}
${INSTALL_PROGRAM} ${WRKSRC}/src/${g}/.libs/game.so \
${STAGEDIR}${LIBDIR}/${g}
.endfor
.if ${PORT_OPTIONS:MQMASS}
@${MKDIR} ${STAGEDIR}${DATADIR}/qmass/sound
${INSTALL_DATA} ${WRKSRC}/data/qmass/sound/*.wav \
${STAGEDIR}${DATADIR}/qmass/sound
.endif
.if ${PORT_OPTIONS:MVANCTF}
@${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
.endif
.if ${PORT_OPTIONS:MQMASS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/qmass
${INSTALL_DATA} ${WRKSRC}/src/qmass/README ${STAGEDIR}${DOCSDIR}/qmass
.endif
.if ${PORT_OPTIONS:MVANCTF}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/vanctf
${INSTALL_DATA} ${WRKSRC}/src/vanctf/*E* ${STAGEDIR}${DOCSDIR}/vanctf
.endif
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.mk>