aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/fyre
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-13 05:42:32 +0800
committerbapt <bapt@FreeBSD.org>2012-06-13 05:42:32 +0800
commitf5eba1acd02cb57a7650fe6c33b912240f6ab8ab (patch)
tree785d921da1883d2c1df77c5add82a844e2ae090b /graphics/fyre
parenteb2a7f0a6ba691b8505dc2684f14abff26a76009 (diff)
downloadfreebsd-ports-gnome-f5eba1acd02cb57a7650fe6c33b912240f6ab8ab.tar.gz
freebsd-ports-gnome-f5eba1acd02cb57a7650fe6c33b912240f6ab8ab.tar.zst
freebsd-ports-gnome-f5eba1acd02cb57a7650fe6c33b912240f6ab8ab.zip
Conver to new options framework
Diffstat (limited to 'graphics/fyre')
-rw-r--r--graphics/fyre/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/graphics/fyre/Makefile b/graphics/fyre/Makefile
index da44f6834684..d3c5cdb4a011 100644
--- a/graphics/fyre/Makefile
+++ b/graphics/fyre/Makefile
@@ -14,9 +14,10 @@ MASTER_SITES= http://releases.navi.cx/fyre/
MAINTAINER= ports@FreeBSD.org
COMMENT= Chaos map rendering system with GTK+-2 interface
-OPTIONS= OPT_CFLAGS "Enable additional optimizations (x86 only)" off \
- OPENEXR "Enable OpenEXR suport" on \
- GNET "Enable GNet support" on
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPENEXR GNET DOCS
+OPTIONS_DEFAULT= OPENEXR GNET
+OPENEXR_DESC= Enable OpenEXR suport
+GNET_DESC= Enable GNet support
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
@@ -30,27 +31,27 @@ MAKE_JOBS_SAFE= yes
.include <bsd.port.pre.mk>
-.if ${ARCH} == "i386" && defined(WITH_OPT_CFLAGS)
+.if ${ARCH} == "i386" && !empty(PORT_OPTIONS:MOPT_CFLAGS)
CFLAGS+= -march=native -O3 -ffast-math -fomit-frame-pointer
.endif
-.if defined(WITHOUT_OPENEXR)
-CONFIGURE_ARGS+=--disable-openexr
-.else
+.if ${PORT_OPTIONS:MOPENEXR}
LIB_DEPENDS+= IlmImf.6:${PORTSDIR}/graphics/OpenEXR
+.else
+CONFIGURE_ARGS+=--disable-openexr
.endif
-.if defined(WITHOUT_GNET)
-CONFIGURE_ARGS+=--disable-gnet
-.else
+.if ${PORT_OPTIONS:MGNET}
LIB_DEPENDS+= gnet-2.0.0:${PORTSDIR}/net/gnet2
+.else
+CONFIGURE_ARGS+=--disable-gnet
.endif
post-patch:
@${REINPLACE_CMD} -e '/-O3/s|^|#|g' ${WRKSRC}/configure
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif