summaryrefslogtreecommitdiff
path: root/devel/fbthrift/Makefile
blob: f7f640c742820cf18515045ca833e0734ad18308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PORTNAME=	fbthrift
DISTVERSIONPREFIX=	v
DISTVERSION=	2023.11.13.00
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Facebook's branch of Apache Thrift, including a new C++ server
WWW=		https://github.com/facebook/fbthrift

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	range-v3>0:devel/range-v3
LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
		libbzip2.so:misc/vxl \
		libdouble-conversion.so:devel/double-conversion \
		libevent.so:devel/libevent \
		libfizz.so:security/fizz \
		libfmt.so:devel/libfmt \
		libfolly.so:devel/folly \
		libgflags.so:devel/gflags \
		libglog.so:devel/glog \
		libicui18n.so:devel/icu \
		liblz4.so:archivers/liblz4 \
		libmvfst_state_machine.so:net/mvfst \
		libsnappy.so:archivers/snappy \
		libsodium.so:security/libsodium \
		libunwind.so:devel/libunwind \
		libwangle.so:net/wangle \
		libzstd.so:archivers/zstd

USES=		bison cmake:testing compiler:c++17-lang ssl
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	facebook

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_TESTING_ON=	enable_tests

CXXFLAGS+=	-fPIC # https://github.com/facebook/fbthrift/issues/399

post-install: # https://github.com/facebook/fbthrift/issues/393
	@${FIND} ${STAGEDIR}${PREFIX}/include -type d -empty -delete

do-test: # no 'test' target, contrary to what the documentation says, see https://github.com/facebook/fbthrift/issues/533
	@cd ${TEST_WRKSRC} && ${MAKE_CMD} test

.include <bsd.port.mk>