Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [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" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=394465e125cffc0f133695ed43f14047 \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 7 | file://NOTICE;md5=2659b43daca219f99a2f2626ea128f73" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 8 | |
| 9 | DEPENDS = "thrift-native boost flex-native bison-native openssl" |
| 10 | |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 11 | SRC_URI = "https://www-eu.apache.org/dist/thrift//${PV}/${BPN}-${PV}.tar.gz \ |
| 12 | file://0001-DefineInstallationPaths.cmake-Define-libdir-in-terms.patch \ |
| 13 | " |
| 14 | SRC_URI[md5sum] = "38a27d391a2b03214b444cb13d5664f1" |
| 15 | SRC_URI[sha256sum] = "7ad348b88033af46ce49148097afe354d513c1fca7c607b59c33ebb6064b5179" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 16 | |
| 17 | BBCLASSEXTEND = "native nativesdk" |
| 18 | |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 19 | inherit pkgconfig cmake python3native |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 20 | |
| 21 | export STAGING_INCDIR |
| 22 | export STAGING_LIBDIR |
| 23 | export BUILD_SYS |
| 24 | export HOST_SYS |
| 25 | |
| 26 | EXTRA_OECMAKE = " \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 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 \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 38 | -DWITH_QT5=OFF \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 39 | " |
| 40 | |
Andrew Geissler | 89770b0 | 2020-06-13 10:40:47 -0500 | [diff] [blame] | 41 | PACKAGECONFIG ??= "libevent glib" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 42 | PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent" |
| 43 | PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 44 | |
| 45 | do_install_append () { |
| 46 | ln -sf thrift ${D}/${bindir}/thrift-compiler |
| 47 | } |
| 48 | |
| 49 | LEAD_SONAME = "libthrift.so.${PV}" |
| 50 | |
| 51 | # thrift packages |
| 52 | PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN} lib${BPN}z lib${BPN}nb lib${BPN}-c-glib" |
| 53 | FILES_lib${BPN} = "${libdir}/libthrift.so.*" |
| 54 | FILES_lib${BPN}z = "${libdir}/libthriftz.so.*" |
| 55 | FILES_lib${BPN}nb = "${libdir}/libthriftnb.so.*" |
| 56 | FILES_lib${BPN}-c-glib = "${libdir}/libthrift_c_glib.so.*" |
| 57 | FILES_${PN}-compiler = "${bindir}/*" |
| 58 | |
| 59 | # The thrift packages just pulls in some default dependencies but is otherwise empty |
| 60 | RRECOMMENDS_${PN} = "${PN}-compiler lib${BPN}" |
| 61 | ALLOW_EMPTY_${PN} = "1" |
| 62 | RRECOMMENDS_${PN}_class-native = "" |
| 63 | RRECOMMENDS_${PN}_class-nativesdk = "" |