Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [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=c40a383cb3f747e0c7abbf1482f194f0 \ |
| 7 | file://NOTICE;md5=2659b43daca219f99a2f2626ea128f73" |
| 8 | |
| 9 | DEPENDS = "thrift-native boost flex-native bison-native openssl zlib" |
| 10 | |
| 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 \ |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 13 | file://0001-cmake-Use-idirafter-instead-of-isystem.patch \ |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 14 | " |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 15 | SRC_URI[sha256sum] = "b272c1788bb165d99521a2599b31b97fa69e5931d099015d91ae107a0b0cc58f" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | |
| 17 | BBCLASSEXTEND = "native nativesdk" |
| 18 | |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 19 | CVE_PRODUCT = "apache:thrift" |
| 20 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | inherit pkgconfig cmake python3native |
| 22 | |
| 23 | export STAGING_INCDIR |
| 24 | export STAGING_LIBDIR |
| 25 | export BUILD_SYS |
| 26 | export HOST_SYS |
| 27 | |
| 28 | EXTRA_OECMAKE = " \ |
| 29 | -DBUILD_LIBRARIES=ON \ |
| 30 | -DBUILD_SHARED_LIBS=ON \ |
| 31 | -DBUILD_COMPILER=ON \ |
| 32 | -DBUILD_TESTING=OFF \ |
| 33 | -DBUILD_TUTORIALS=OFF \ |
| 34 | -DWITH_AS3=OFF \ |
| 35 | -DWITH_CPP=ON \ |
| 36 | -DWITH_JAVA=OFF \ |
| 37 | -DWITH_OPENSSL=ON \ |
| 38 | -DWITH_QT5=OFF \ |
| 39 | -DWITH_ZLIB=ON \ |
| 40 | " |
| 41 | |
| 42 | PACKAGECONFIG ??= "glib libevent" |
| 43 | PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0" |
| 44 | PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent" |
| 45 | PACKAGECONFIG[javascript] = "-DWITH_JAVASCRIPT=ON,-DWITH_JAVASCRIPT=OFF,nodejs" |
| 46 | PACKAGECONFIG[nodejs] = "-DWITH_NODEJS=ON,-DWITH_NODEJS=OFF,nodejs" |
| 47 | PACKAGECONFIG[python] = "-DWITH_PYTHON=ON,-DWITH_PYTHON=OFF,python" |
| 48 | |
| 49 | do_install:append () { |
| 50 | ln -sf thrift ${D}/${bindir}/thrift-compiler |
| 51 | } |
| 52 | |
| 53 | LEAD_SONAME = "libthrift.so.${PV}" |
| 54 | |
| 55 | # thrift packages |
| 56 | PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN} lib${BPN}z lib${BPN}nb lib${BPN}-c-glib" |
| 57 | FILES:lib${BPN} = "${libdir}/libthrift.so.*" |
| 58 | FILES:lib${BPN}z = "${libdir}/libthriftz.so.*" |
| 59 | FILES:lib${BPN}nb = "${libdir}/libthriftnb.so.*" |
| 60 | FILES:lib${BPN}-c-glib = "${libdir}/libthrift_c_glib.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 = "" |