Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | SUMMARY = "Apache Thrift" |
| 2 | DESCRIPTION = "A software framework, for scalable cross-language services development" |
| 3 | HOMEPAGE = "https://thrift.apache.org/" |
| 4 | |
| 5 | LICENSE = "Apache-2.0" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e4ed21f679b2aafef26eac82ab0c2cbf \ |
| 7 | file://NOTICE;md5=115f49498b66b494b0472658f2bfe80b" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 8 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | DEPENDS = "thrift-native boost flex-native bison-native openssl" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 10 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | SRC_URI = "http://mirror.switch.ch/mirror/apache/dist/thrift/${PV}/${BPN}-${PV}.tar.gz \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 12 | 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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 15 | 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 Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 18 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 19 | |
| 20 | SRC_URI[md5sum] = "88d667a8ae870d5adeca8cb7d6795442" |
| 21 | SRC_URI[sha256sum] = "b0740a070ac09adde04d43e852ce4c320564a292f26521c46b78e0641564969e" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 22 | |
| 23 | BBCLASSEXTEND = "native nativesdk" |
| 24 | |
| 25 | inherit pkgconfig cmake pythonnative |
| 26 | |
| 27 | export STAGING_INCDIR |
| 28 | export STAGING_LIBDIR |
| 29 | export BUILD_SYS |
| 30 | export HOST_SYS |
| 31 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 32 | EXTRA_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 47 | PACKAGECONFIG ??= "libevent glib python" |
| 48 | PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent," |
| 49 | PACKAGECONFIG[python] = "-DWITH_PYTHON=ON,-DWITH_PYTHON=OFF,python," |
| 50 | PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0 ," |
| 51 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 52 | do_install_append () { |
| 53 | ln -sf thrift ${D}/${bindir}/thrift-compiler |
| 54 | } |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 55 | |
| 56 | LEAD_SONAME = "libthrift.so.${PV}" |
| 57 | |
| 58 | # thrift packages |
| 59 | PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN}" |
| 60 | FILES_lib${BPN} = "${libdir}/*.so.*" |
| 61 | FILES_${PN}-compiler = "${bindir}/*" |
| 62 | |
| 63 | # The thrift packages just pulls in some default dependencies but is otherwise empty |
| 64 | RRECOMMENDS_${PN} = "${PN}-compiler lib${BPN}" |
| 65 | ALLOW_EMPTY_${PN} = "1" |
| 66 | RRECOMMENDS_${PN}_class-native = "" |
| 67 | RRECOMMENDS_${PN}_class-nativesdk = "" |