blob: 7ab74026bb3edd19864cc3210e4b9cf17d328267 [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001SUMMARY = "Apache Thrift"
2DESCRIPTION = "A software framework, for scalable cross-language services development"
3HOMEPAGE = "https://thrift.apache.org/"
4
5LICENSE = "Apache-2.0"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05006LIC_FILES_CHKSUM = "file://LICENSE;md5=e4ed21f679b2aafef26eac82ab0c2cbf \
7 file://NOTICE;md5=115f49498b66b494b0472658f2bfe80b"
Patrick Williamsddad1a12017-02-23 20:36:32 -06008
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009DEPENDS = "thrift-native boost flex-native bison-native openssl"
Patrick Williamsddad1a12017-02-23 20:36:32 -060010
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011SRC_URI = "http://mirror.switch.ch/mirror/apache/dist/thrift/${PV}/${BPN}-${PV}.tar.gz \
Patrick Williamsddad1a12017-02-23 20:36:32 -060012 file://0001-Forcibly-disable-check-for-Qt5.patch \
13 file://0001-THRIFT-3828-In-cmake-avoid-use-of-both-quoted-paths-.patch \
14 file://0002-THRIFT-3831-in-test-cpp-explicitly-use-signed-char.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015 file://0004-THRIFT-3207-enable-build-with-OpenSSL-1.1.0-series.patch \
16 file://0005-THRIFT-3878-Compile-error-in-TSSLSocket.cpp-with-new.patch \
17 file://0006-THRIFT-3736-C++-library-build-fails-if-OpenSSL-does-.patch \
Patrick Williamsddad1a12017-02-23 20:36:32 -060018"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019
20SRC_URI[md5sum] = "88d667a8ae870d5adeca8cb7d6795442"
21SRC_URI[sha256sum] = "b0740a070ac09adde04d43e852ce4c320564a292f26521c46b78e0641564969e"
Patrick Williamsddad1a12017-02-23 20:36:32 -060022
23BBCLASSEXTEND = "native nativesdk"
24
25inherit pkgconfig cmake pythonnative
26
27export STAGING_INCDIR
28export STAGING_LIBDIR
29export BUILD_SYS
30export HOST_SYS
31
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032EXTRA_OECMAKE = " \
33 -DBUILD_LIBRARIES=ON \
34 -DBUILD_COMPILER=ON \
35 -DBUILD_TESTING=OFF \
36 -DBUILD_EXAMPLES=OFF \
37 -DBUILD_TUTORIALS=OFF \
38 -DWITH_CPP=ON \
39 -DWITH_JAVA=OFF \
40 -DWITH_STATIC_LIB=ON \
41 -DWITH_SHARED_LIB=ON \
42 -DWITH_OPENSSL=ON \
43 -DWITH_QT4=OFF \
44 -DWITH_QT5=OFF \
45"
46
Brad Bishop6e60e8b2018-02-01 10:27:11 -050047PACKAGECONFIG ??= "libevent glib python"
48PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent,"
49PACKAGECONFIG[python] = "-DWITH_PYTHON=ON,-DWITH_PYTHON=OFF,python,"
50PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0 ,"
51
Patrick Williamsddad1a12017-02-23 20:36:32 -060052do_install_append () {
53 ln -sf thrift ${D}/${bindir}/thrift-compiler
54}
Brad Bishop6e60e8b2018-02-01 10:27:11 -050055
56LEAD_SONAME = "libthrift.so.${PV}"
57
58# thrift packages
59PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN}"
60FILES_lib${BPN} = "${libdir}/*.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 = ""