aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-03-13 13:36:23 +0800
committervs <vs@FreeBSD.org>2004-03-13 13:36:23 +0800
commit0ba666fd3d361174452707284d745d0ff4d2402f (patch)
tree6ae920d7f57f8e87a65a82c64452701e931f59e4 /games
parente585b5ba1a88b664956550914136e25bbdf68794 (diff)
downloadfreebsd-ports-gnome-0ba666fd3d361174452707284d745d0ff4d2402f.tar.gz
freebsd-ports-gnome-0ba666fd3d361174452707284d745d0ff4d2402f.tar.zst
freebsd-ports-gnome-0ba666fd3d361174452707284d745d0ff4d2402f.zip
- Unbreak on alpha (avoid -ffast-math)
- Bumped PORTREVISION, check if you want WITH_OPTIMIZED_CFLAGS on recompilation PR: ports/63866 (with addition of pre-everything:) Submitted by: maintainer/bento Approved by: linimon (mentor)
Diffstat (limited to 'games')
-rw-r--r--games/heroes/Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/games/heroes/Makefile b/games/heroes/Makefile
index 004a565695e9..a675fbdfa74f 100644
--- a/games/heroes/Makefile
+++ b/games/heroes/Makefile
@@ -7,7 +7,7 @@
PORTNAME= heroes
PORTVERSION= 0.21
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -43,16 +43,24 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --with-sdl_mixer=${LOCALBASE} --without-gii --without-ggi
+.if defined(WITH_OPTIMIZED_CFLAGS)
+CONFIGURE_ARGS+=--enable-optimizations
+.else
+CONFIGURE_ARGS+=--disable-optimizations
+.endif
+
MAN6= heroes.6 heroeslvl.6
INFO= heroes
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib -lsmpeg ${PTHREAD_LIBS}
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
-BROKEN= "Does not compile on alpha >=5.x"
+pre-everything::
+.ifndef(WITH_OPTIMIZED_CFLAGS)
+ @${ECHO_MSG} '>>>'
+ @${ECHO_MSG} '>>> You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS'
+ @${ECHO_MSG} ">>> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
+ @${ECHO_MSG} '>>>'
.endif
post-patch:
@@ -72,4 +80,4 @@ post-install:
${MKDIR} ${DATADIR}/mod
${INSTALL_DATA} ${MUSICSRC}/*.xm ${MUSICSRC}/sound.conf ${DATADIR}/mod
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>