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 \ |
| 13 | " |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 14 | SRC_URI[sha256sum] = "b272c1788bb165d99521a2599b31b97fa69e5931d099015d91ae107a0b0cc58f" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 15 | |
| 16 | BBCLASSEXTEND = "native nativesdk" |
| 17 | |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 18 | CVE_PRODUCT = "apache:thrift" |
| 19 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | inherit pkgconfig cmake python3native |
| 21 | |
| 22 | export STAGING_INCDIR |
| 23 | export STAGING_LIBDIR |
| 24 | export BUILD_SYS |
| 25 | export HOST_SYS |
| 26 | |
| 27 | EXTRA_OECMAKE = " \ |
| 28 | -DBUILD_LIBRARIES=ON \ |
| 29 | -DBUILD_SHARED_LIBS=ON \ |
| 30 | -DBUILD_COMPILER=ON \ |
| 31 | -DBUILD_TESTING=OFF \ |
| 32 | -DBUILD_TUTORIALS=OFF \ |
| 33 | -DWITH_AS3=OFF \ |
| 34 | -DWITH_CPP=ON \ |
| 35 | -DWITH_JAVA=OFF \ |
| 36 | -DWITH_OPENSSL=ON \ |
| 37 | -DWITH_QT5=OFF \ |
| 38 | -DWITH_ZLIB=ON \ |
| 39 | " |
| 40 | |
| 41 | PACKAGECONFIG ??= "glib libevent" |
| 42 | PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0" |
| 43 | PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent" |
| 44 | PACKAGECONFIG[javascript] = "-DWITH_JAVASCRIPT=ON,-DWITH_JAVASCRIPT=OFF,nodejs" |
| 45 | PACKAGECONFIG[nodejs] = "-DWITH_NODEJS=ON,-DWITH_NODEJS=OFF,nodejs" |
| 46 | PACKAGECONFIG[python] = "-DWITH_PYTHON=ON,-DWITH_PYTHON=OFF,python" |
| 47 | |
| 48 | do_install:append () { |
| 49 | ln -sf thrift ${D}/${bindir}/thrift-compiler |
| 50 | } |
| 51 | |
| 52 | LEAD_SONAME = "libthrift.so.${PV}" |
| 53 | |
| 54 | # thrift packages |
| 55 | PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN} lib${BPN}z lib${BPN}nb lib${BPN}-c-glib" |
| 56 | FILES:lib${BPN} = "${libdir}/libthrift.so.*" |
| 57 | FILES:lib${BPN}z = "${libdir}/libthriftz.so.*" |
| 58 | FILES:lib${BPN}nb = "${libdir}/libthriftnb.so.*" |
| 59 | FILES:lib${BPN}-c-glib = "${libdir}/libthrift_c_glib.so.*" |
| 60 | FILES:${PN}-compiler = "${bindir}/*" |
| 61 | |
| 62 | # The thrift packages just pulls in some default dependencies but is otherwise empty |
| 63 | RRECOMMENDS:${PN} = "${PN}-compiler lib${BPN}" |
| 64 | ALLOW_EMPTY:${PN} = "1" |
| 65 | RRECOMMENDS:${PN}:class-native = "" |
| 66 | RRECOMMENDS:${PN}:class-nativesdk = "" |