aboutsummaryrefslogtreecommitdiff
path: root/games/quakeforge/Makefile
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2003-08-08 13:23:08 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2003-08-08 13:23:08 +0000
commit4e00dbebbe8675f4356208e10188f1f5611e5969 (patch)
tree0e18be756d6d85ac6ce2584ee59fd6118faf90b2 /games/quakeforge/Makefile
parent40f439aa7fe45b0cd9c2e42c4310ca277178f30c (diff)
downloadports-4e00dbebbe8675f4356208e10188f1f5611e5969.tar.gz
ports-4e00dbebbe8675f4356208e10188f1f5611e5969.zip
Update to 0.5.4.
Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=86577
Diffstat (limited to 'games/quakeforge/Makefile')
-rw-r--r--games/quakeforge/Makefile26
1 files changed, 19 insertions, 7 deletions
diff --git a/games/quakeforge/Makefile b/games/quakeforge/Makefile
index 229c0049bc9c..ed4d18564a6d 100644
--- a/games/quakeforge/Makefile
+++ b/games/quakeforge/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= QuakeForge
-PORTVERSION= 0.5.2
-PORTREVISION= 1
+PORTVERSION= 0.5.4
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:qf/} \
ftp://ftp.idsoftware.com/idstuff/quakeworld/unix/:qw
@@ -41,12 +40,21 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--with-global-cfg=${PREFIX}/etc/quakeforge.conf \
- --with-sharepath=${PREFIX}/share/quakeforge
+ --with-sharepath=${PREFIX}/share/quakeforge \
+ --disable-optimize
CONFIGURE_TARGET=
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
+.if defined(WITH_OPTIMIZED_CFLAGS) && !defined(WITHOUT_OPTIMIZED_CFLAGS)
+CFLAGS+= -O3 -funroll-loops -fomit-frame-pointer -fno-common \
+ -fexpensive-optimizations -fstrict-aliasing
+.if ${ARCH} != "alpha"
+CFLAGS+= -ffast-math
+.endif
+.endif
+
.if exists(${LOCALBASE}/lib/libSDL-1.1.so.5)
WITH_SDL= yes
.endif
@@ -147,6 +155,12 @@ pre-everything::
.if !defined(NO_SKINS)
@${ECHO_MSG} "Define NO_SKINS to stop from installing skins"
.endif
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+ @${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to opimize for speed"
+.endif
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+ @${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to opimize for speed"
+.endif
.if !defined(WITH_SVGALIB)
@${ECHO_MSG} "Define WITH_SVGALIB to use svgalib"
.endif
@@ -170,9 +184,7 @@ pre-everything::
.endif
post-patch:
-.if (${ARCH} == "alpha")
- @${REINPLACE_CMD} -e 's/-ffast-math//' ${WRKSRC}/configure
-.endif
+ @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
do-install:
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
@@ -203,6 +215,6 @@ do-install:
.endif
post-install:
- @${SED} -e 's#$${PREFIX}#${PREFIX}#g' ${PKGMESSAGE}
+ @${SED} -e 's#$${PREFIX}#${PREFIX}#g' ${PKGMESSAGE}
.include <bsd.port.post.mk>