aboutsummaryrefslogtreecommitdiff
path: root/graphics/enblend
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2014-03-13 18:59:49 +0000
committerMatthias Andree <mandree@FreeBSD.org>2014-03-13 18:59:49 +0000
commit579374ec3b5345bdeadbe6da0c4c09caa635a139 (patch)
tree5809ef7dcbbf8a30993b9f6b9c55da04d9748c7e /graphics/enblend
parentdb20fda152d137f1c24b090747f2cf399eefd2e5 (diff)
downloadports-579374ec3b5345bdeadbe6da0c4c09caa635a139.tar.gz
ports-579374ec3b5345bdeadbe6da0c4c09caa635a139.zip
Fix build on FreeBSD 10+, and do not force USE_GCC there (which causes vigra linker issues).
If the default compiler is gcc, however, we still request the ports default gcc.
Notes
Notes: svn path=/head/; revision=348117
Diffstat (limited to 'graphics/enblend')
-rw-r--r--graphics/enblend/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/graphics/enblend/Makefile b/graphics/enblend/Makefile
index d78e765d2302..b32a9a96e93f 100644
--- a/graphics/enblend/Makefile
+++ b/graphics/enblend/Makefile
@@ -23,14 +23,11 @@ LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
RUN_DEPENDS= OpenEXR>=1.0:${PORTSDIR}/graphics/OpenEXR
USE_AUTOTOOLS= automake:env autoconf:env
-USES= gmake
+USES= gmake compiler:features
# We need a newer version of makeinfo for this.
# Remove this line when we remove texinfo from the base system.
CONFIGURE_ARGS= MAKEINFO="${LOCALBASE}/bin/makeinfo"
-# GCC 4.2 has some problems, see
-# http://groups.google.com/group/hugin-ptx/browse_thread/thread/725b1581c9889e37/50abe3387d61541a#50abe3387d61541a
-USE_GCC= yes
USE_GL= glew glut
GNU_CONFIGURE= yes
CONFIGURE_ENV+= "LIBS=-lboost_system"
@@ -38,10 +35,21 @@ CONFIGURE_ARGS+= --with-boost-filesystem
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == gcc
+# GCC 4.2 has some problems, see
+# http://groups.google.com/group/hugin-ptx/browse_thread/thread/725b1581c9889e37/50abe3387d61541a#50abe3387d61541a
+# Clang, on 10.0-RELEASE is fine.
+USE_GCC= yes
+.else
+CXXFLAGS+= -Wno-c++11-extensions
+.endif
+
INFO= enfuse enblend
PLIST_FILES= bin/enblend bin/enfuse man/man1/enblend.1.gz man/man1/enfuse.1.gz
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/*.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>