xref: /mports/devel/thrift-cpp/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PORTNAME=	thrift
2PORTVERSION=	${THRIFT_PORTVERSION} # to keep in sync with thrift
3PORTREVISION=	1
4PORTEPOCH=	1
5CATEGORIES=	devel
6MASTER_SITES=	APACHE/thrift/${PORTVERSION}
7PKGNAMESUFFIX=	-cpp
8DISTNAME=	thrift-${PORTVERSION}
9
10MAINTAINER=	ports@MidnightBSD.org
11COMMENT=	C++ interface to Thrift
12WWW=		https://thrift.apache.org/
13
14BROKEN_i386=	undefined reference to 'boost::atomics::detail::lockpool::scoped_lock::scoped_lock(void const volatile*)'
15
16LIB_DEPENDS=	libboost_thread.so:devel/boost-libs \
17		libevent.so:devel/libevent
18
19USES=			bison cmake pkgconfig compiler:c++11-lang cpe \
20			pathfix ssl
21CPE_VENDOR=		apache
22USE_LDCONFIG=		yes
23
24CMAKE_ON=		BUILD_CPP
25CMAKE_OFF=		BUILD_C_GLIB BUILD_JAVA BUILD_JAVASCRIPT BUILD_NODEJS BUILD_PYTHON BUILD_HASKELL BUILD_TESTING
26
27DISTINFO_FILE=		${.CURDIR}/../thrift/distinfo
28PLIST_SUB=		PORTVERSION="${THRIFT_PORTVERSION}"
29
30.include <bsd.port.pre.mk>
31
32.if ${CHOSEN_COMPILER_TYPE} == clang
33USE_CXXSTD=	c++11
34.endif
35
36.if ${SSL_DEFAULT} != base
37LDFLAGS+=	-L${OPENSSLLIB}
38CFLAGS+=	-I${OPENSSLINC}
39.endif
40
41post-install:
42	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
43	${LN} -sf libthrift-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthrift.so.0
44	${LN} -sf libthriftnb-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthriftnb.so.0
45	${LN} -sf libthriftz-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthriftz.so.0
46
47.include "../thrift/bsd.thrift.mk"
48.include <bsd.port.post.mk>
49

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026