diff --git a/devel/ucommon/Makefile b/devel/ucommon/Makefile index b86b69db4292..35a55dc8593d 100644 --- a/devel/ucommon/Makefile +++ b/devel/ucommon/Makefile @@ -1,29 +1,33 @@ PORTNAME= ucommon PORTVERSION= 7.0.0 PORTREVISION= 6 CATEGORIES= devel MASTER_SITES= GNU/commoncpp MAINTAINER= ports@FreeBSD.org COMMENT= Very lightweight C++ design pattern library WWW= https://www.gnu.org/software/commoncpp/ LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING.LESSER USES= compiler:c++11-lib cmake pathfix pkgconfig ssl CMAKE_ARGS= -DBUILD_TESTING:BOOL=ON \ -DCMAKE_INSTALL_BINDIR:STRING=bin/${PORTNAME} USE_LDCONFIG= yes TEST_TARGET= test .include .if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 USE_CXXSTD= c++11 .endif +.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*} +CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" +.endif + post-install: ${INSTALL_DATA} ${BUILD_WRKSRC}/ucommon-config.h ${STAGEDIR}${PREFIX}/include/ucommon .include