blob: 92bcb21bf1dc7cf531324d9babd29c8d2bcfc13f [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 \
Brad Bishope42b3e32020-01-15 22:08:42 -05007 file://NOTICE;md5=2659b43daca219f99a2f2626ea128f73"
Brad Bishopc342db32019-05-15 21:57:59 -04008
9DEPENDS = "thrift-native boost flex-native bison-native openssl"
10
Brad Bishope42b3e32020-01-15 22:08:42 -050011SRC_URI = "https://www-eu.apache.org/dist/thrift//${PV}/${BPN}-${PV}.tar.gz \
12 file://0001-DefineInstallationPaths.cmake-Define-libdir-in-terms.patch \
13 "
14SRC_URI[md5sum] = "38a27d391a2b03214b444cb13d5664f1"
15SRC_URI[sha256sum] = "7ad348b88033af46ce49148097afe354d513c1fca7c607b59c33ebb6064b5179"
Brad Bishopc342db32019-05-15 21:57:59 -040016
17BBCLASSEXTEND = "native nativesdk"
18
Brad Bishope42b3e32020-01-15 22:08:42 -050019inherit pkgconfig cmake python3native
Brad Bishopc342db32019-05-15 21:57:59 -040020
21export STAGING_INCDIR
22export STAGING_LIBDIR
23export BUILD_SYS
24export HOST_SYS
25
26EXTRA_OECMAKE = " \
27 -DENABLE_PRECOMPILED_HEADERS=OFF \
28 -DBUILD_LIBRARIES=ON \
29 -DBUILD_COMPILER=ON \
30 -DBUILD_TESTING=OFF \
31 -DBUILD_EXAMPLES=OFF \
32 -DBUILD_TUTORIALS=OFF \
33 -DWITH_CPP=ON \
34 -DWITH_JAVA=OFF \
35 -DWITH_PYTHON=OFF \
36 -DWITH_STATIC_LIB=ON \
37 -DWITH_SHARED_LIB=ON \
38 -DWITH_OPENSSL=ON \
39 -DWITH_QT4=OFF \
40 -DWITH_QT5=OFF \
41 -DWITH_BOOST_FUNCTIONAL=OFF \
42"
43
44PACKAGECONFIG ??= "libevent glib boost-smart-ptr"
45PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent"
46PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0"
47PACKAGECONFIG[boost-smart-ptr] = "-DWITH_BOOST_SMART_PTR=ON,-DWITH_BOOST_SMART_PTR=OFF,boost"
48
49do_install_append () {
50 ln -sf thrift ${D}/${bindir}/thrift-compiler
51}
52
53LEAD_SONAME = "libthrift.so.${PV}"
54
55# thrift packages
56PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN} lib${BPN}z lib${BPN}nb lib${BPN}-c-glib"
57FILES_lib${BPN} = "${libdir}/libthrift.so.*"
58FILES_lib${BPN}z = "${libdir}/libthriftz.so.*"
59FILES_lib${BPN}nb = "${libdir}/libthriftnb.so.*"
60FILES_lib${BPN}-c-glib = "${libdir}/libthrift_c_glib.so.*"
61FILES_${PN}-compiler = "${bindir}/*"
62
63# The thrift packages just pulls in some default dependencies but is otherwise empty
64RRECOMMENDS_${PN} = "${PN}-compiler lib${BPN}"
65ALLOW_EMPTY_${PN} = "1"
66RRECOMMENDS_${PN}_class-native = ""
67RRECOMMENDS_${PN}_class-nativesdk = ""