diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2006-04-10 13:45:07 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2006-04-10 13:45:07 +0000 |
commit | 4967c6a1dda404a2d62ef152f4d83f196ac35e9d (patch) | |
tree | 4339cb6af319a2134ea9281766e686b15a406cdb /games/quetoo/Makefile | |
parent | 4bb3818c1c99cc17c70766cb20327db04dd408ad (diff) | |
download | ports-4967c6a1dda404a2d62ef152f4d83f196ac35e9d.tar.gz ports-4967c6a1dda404a2d62ef152f4d83f196ac35e9d.zip |
Notes
Diffstat (limited to 'games/quetoo/Makefile')
-rw-r--r-- | games/quetoo/Makefile | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/games/quetoo/Makefile b/games/quetoo/Makefile new file mode 100644 index 000000000000..1dcc93ea0cef --- /dev/null +++ b/games/quetoo/Makefile @@ -0,0 +1,84 @@ +# New ports collection makefile for: Quetoo +# Date created: 10 Apr 2006 +# Whom: Alexey Dokuchaev <danfe@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= quetoo +PORTVERSION= 0.3.3 +CATEGORIES= games +MASTER_SITES= http://jdolan.dyndns.org/jaydolan/files/ + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Fast, stable, compatible, and secure Quake II engine + +USE_BZIP2= yes +USE_SDL= sdl +USE_GL= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \ + ${PTHREAD_CFLAGS}" LDFLAGS="-L${LOCALBASE}/lib \ + -L${X11BASE}/lib ${PTHREAD_LIBS}" \ + OPENGL_CFLAGS="-I${X11BASE}/include" \ + OPENGL_LIBS="-L${X11BASE}/lib" \ + MYSQL_LIBS="-L${LOCALBASE}/lib/mysql -lmysqlclient" \ + MYSQL_CFLAGS="-I${LOCALBASE}/include" + +LIBDIR= ${PREFIX}/lib/${PORTNAME} +PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}" + +OPTIONS= QMASS "Build QMass deathmatch mod" on \ + MYSQL "Enable MySQL frag logging" off \ + OPTIMIZED_CFLAGS "Enable extra optimization options" off + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_QMASS) +Q2GAMES= baseq2 ctf qmass +CONFIGURE_ARGS+= --enable-qmass +PLIST_SUB+= QMASS="" +.else +Q2GAMES= baseq2 ctf +PLIST_SUB+= QMASS="@comment " +.endif + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +CONFIGURE_ARGS+= --with-mysql +.endif + +.if !defined(WITH_OPTIMIZED_CFLAGS) +CONFIGURE_ARGS+= --disable-opt --disable-sse +.endif + +post-extract: .SILENT + ${REINPLACE_CMD} -E 's,^(eval PKGDATADIR=).*$$,\1"${Q2DIR}",; \ + s,-ldl,,; s, -lGL,,' ${WRKSRC}/configure +.if !defined(WITH_MYSQL) + ${REINPLACE_CMD} '22266,22268d' ${WRKSRC}/configure +.else + ${REINPLACE_CMD} 's,src$$,& @MYSQL_CFLAGS@,' \ + ${WRKSRC}/src/qmass/Makefile.in +.endif + ${REINPLACE_CMD} 's,alsa,sdl,' ${WRKSRC}/src/snd_dma.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/quetoo ${PREFIX}/bin/quetoo + @${MKDIR} ${LIBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/*.so ${LIBDIR} +.for g in ${Q2GAMES} + @${MKDIR} ${LIBDIR}/${g} + ${INSTALL_PROGRAM} ${WRKSRC}/src/${g}/.libs/game.so ${LIBDIR}/${g} +.endfor +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +. if !defined(WITHOUT_QMASS) + ${INSTALL_DATA} ${WRKSRC}/src/qmass/README ${DOCSDIR}/qmass-README +. endif +.endif + +.include "${.CURDIR}/../quake2-data/Makefile.include" + +.include <bsd.port.post.mk> |