blob: 1c69951bf98ef517d4c3a538b9327b856ca2dc95 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "Apache Thrift"
2DESCRIPTION = "A software framework, for scalable cross-language services development"
3HOMEPAGE = "https://thrift.apache.org/"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=394465e125cffc0f133695ed43f14047 \
7 file://NOTICE;md5=42748ae4646b45fbfa5182807321fb6c"
8
9DEPENDS = "thrift-native boost flex-native bison-native openssl"
10
11SRC_URI = "https://www-eu.apache.org/dist/thrift//${PV}/${BPN}-${PV}.tar.gz"
12
13SRC_URI[md5sum] = "3deebbb4d1ca77dd9c9e009a1ea02183"
14SRC_URI[sha256sum] = "c336099532b765a6815173f62df0ed897528a9d551837d627c1f87fadad90428"
15
16BBCLASSEXTEND = "native nativesdk"
17
18inherit pkgconfig cmake pythonnative
19
20export STAGING_INCDIR
21export STAGING_LIBDIR
22export BUILD_SYS
23export HOST_SYS
24
25EXTRA_OECMAKE = " \
26 -DENABLE_PRECOMPILED_HEADERS=OFF \
27 -DBUILD_LIBRARIES=ON \
28 -DBUILD_COMPILER=ON \
29 -DBUILD_TESTING=OFF \
30 -DBUILD_EXAMPLES=OFF \
31 -DBUILD_TUTORIALS=OFF \
32 -DWITH_CPP=ON \
33 -DWITH_JAVA=OFF \
34 -DWITH_PYTHON=OFF \
35 -DWITH_STATIC_LIB=ON \
36 -DWITH_SHARED_LIB=ON \
37 -DWITH_OPENSSL=ON \
38 -DWITH_QT4=OFF \
39 -DWITH_QT5=OFF \
40 -DWITH_BOOST_FUNCTIONAL=OFF \
41"
42
43PACKAGECONFIG ??= "libevent glib boost-smart-ptr"
44PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent"
45PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0"
46PACKAGECONFIG[boost-smart-ptr] = "-DWITH_BOOST_SMART_PTR=ON,-DWITH_BOOST_SMART_PTR=OFF,boost"
47
48do_install_append () {
49 ln -sf thrift ${D}/${bindir}/thrift-compiler
50}
51
52LEAD_SONAME = "libthrift.so.${PV}"
53
54# thrift packages
55PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN} lib${BPN}z lib${BPN}nb lib${BPN}-c-glib"
56FILES_lib${BPN} = "${libdir}/libthrift.so.*"
57FILES_lib${BPN}z = "${libdir}/libthriftz.so.*"
58FILES_lib${BPN}nb = "${libdir}/libthriftnb.so.*"
59FILES_lib${BPN}-c-glib = "${libdir}/libthrift_c_glib.so.*"
60FILES_${PN}-compiler = "${bindir}/*"
61
62# The thrift packages just pulls in some default dependencies but is otherwise empty
63RRECOMMENDS_${PN} = "${PN}-compiler lib${BPN}"
64ALLOW_EMPTY_${PN} = "1"
65RRECOMMENDS_${PN}_class-native = ""
66RRECOMMENDS_${PN}_class-nativesdk = ""