svn commit: r426128 - head/graphics/podofo
Pawel Pekala
pawel at FreeBSD.org
Mon Nov 14 18:00:29 UTC 2016
Author: pawel
Date: Mon Nov 14 18:00:27 2016
New Revision: 426128
URL: https://svnweb.freebsd.org/changeset/ports/426128
Log:
Fix build with gcc5
PR: 213996 (based on)
Submitted by: Kenneth Salerno
Modified:
head/graphics/podofo/Makefile
Modified: head/graphics/podofo/Makefile
==============================================================================
--- head/graphics/podofo/Makefile Mon Nov 14 17:59:46 2016 (r426127)
+++ head/graphics/podofo/Makefile Mon Nov 14 18:00:27 2016 (r426128)
@@ -17,7 +17,7 @@ LIB_DEPENDS= libidn.so:dns/libidn \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig
-USES= cmake dos2unix ssl
+USES= cmake compiler dos2unix ssl
CMAKE_ARGS= -DPODOFO_BUILD_SHARED:BOOL=TRUE \
-DPODOFO_BUILD_STATIC:BOOL=FALSE \
-DOPENSSL_INCLUDE_DIR:PATH="${OPENSSLINC}" \
@@ -43,4 +43,10 @@ PNG_LIB_DEPENDS= libpng.so:graphics/png
TIFF_CMAKE_ON= -DWANT_TIFF:BOOL=TRUE
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} >= 50
+CXXFLAGS+= -std=gnu++11 -D_GLIBCXX_USE_C99=1
+.endif
+
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list