mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix build with gcc5
PR: 213996 (based on) Submitted by: Kenneth Salerno
This commit is contained in:
parent
6e9971b673
commit
3910e557b8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426128
1 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue