PORTNAME= thrift PORTVERSION= ${THRIFT_PORTVERSION} # to keep in sync with thrift PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= APACHE/thrift/${PORTVERSION} PKGNAMESUFFIX= -cpp DISTNAME= thrift-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= C++ interface to Thrift WWW= https://thrift.apache.org/ LIB_DEPENDS= libboost_system.so:devel/boost-libs \ libevent.so:devel/libevent USES= bison cmake pkgconfig compiler:c++11-lang cpe \ pathfix ssl CPE_VENDOR= apache USE_LDCONFIG= yes CMAKE_ON= BUILD_CPP CMAKE_OFF= BUILD_C_GLIB BUILD_JAVA BUILD_JAVASCRIPT BUILD_NODEJS BUILD_PYTHON BUILD_HASKELL BUILD_TESTING DISTINFO_FILE= ${.CURDIR}/../thrift/distinfo PLIST_SUB= PORTVERSION="${THRIFT_PORTVERSION}" .include .if ${CHOSEN_COMPILER_TYPE} == clang USE_CXXSTD= c++11 .endif .if ${SSL_DEFAULT} != base LDFLAGS+= -L${OPENSSLLIB} CFLAGS+= -I${OPENSSLINC} .endif post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so ${LN} -sf libthrift-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthrift.so.0 ${LN} -sf libthriftnb-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthriftnb.so.0 ${LN} -sf libthriftz-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthriftz.so.0 .include "../thrift/bsd.thrift.mk" .include