Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2016 18:00:27 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r426128 - head/graphics/podofo
Message-ID:  <201611141800.uAEI0R59009178@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611141800.uAEI0R59009178>