blob: e3880b357a68ab85460c77b64db642249049252b [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 = " \
Brad Bishopc342db32019-05-15 21:57:59 -040027 -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 \
Brad Bishopc342db32019-05-15 21:57:59 -040038 -DWITH_QT5=OFF \
Brad Bishopc342db32019-05-15 21:57:59 -040039"
40
Andrew Geissler89770b02020-06-13 10:40:47 -050041PACKAGECONFIG ??= "libevent glib"
Brad Bishopc342db32019-05-15 21:57:59 -040042PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent"
43PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0"
Brad Bishopc342db32019-05-15 21:57:59 -040044
45do_install_append () {
46 ln -sf thrift ${D}/${bindir}/thrift-compiler
47}
48
49LEAD_SONAME = "libthrift.so.${PV}"
50
51# thrift packages
52PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN} lib${BPN}z lib${BPN}nb lib${BPN}-c-glib"
53FILES_lib${BPN} = "${libdir}/libthrift.so.*"
54FILES_lib${BPN}z = "${libdir}/libthriftz.so.*"
55FILES_lib${BPN}nb = "${libdir}/libthriftnb.so.*"
56FILES_lib${BPN}-c-glib = "${libdir}/libthrift_c_glib.so.*"
57FILES_${PN}-compiler = "${bindir}/*"
58
59# The thrift packages just pulls in some default dependencies but is otherwise empty
60RRECOMMENDS_${PN} = "${PN}-compiler lib${BPN}"
61ALLOW_EMPTY_${PN} = "1"
62RRECOMMENDS_${PN}_class-native = ""
63RRECOMMENDS_${PN}_class-nativesdk = ""