diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-12 21:42:32 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-12 21:42:32 +0000 |
commit | 9010280b855a8f663dc0899ba61ab950e6b515da (patch) | |
tree | ade0e2be591e771231576c7a69bfc8a5cf0bc252 /graphics/fyre | |
parent | 06a3e062ca8655d412fd71bf237d2cbcb5d17726 (diff) | |
download | ports-9010280b855a8f663dc0899ba61ab950e6b515da.tar.gz ports-9010280b855a8f663dc0899ba61ab950e6b515da.zip |
Notes
Diffstat (limited to 'graphics/fyre')
-rw-r--r-- | graphics/fyre/Makefile | 23 |
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 |