blob: 216af02c4221339ac49a22b15d96a9fa2a3f5d68 [file] [log] [blame]
Patrick Williams213cb262021-08-07 19:21:33 -05001SUMMARY = "Apache Thrift"
2DESCRIPTION = "A software framework, for scalable cross-language services development"
3HOMEPAGE = "https://thrift.apache.org/"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=c40a383cb3f747e0c7abbf1482f194f0 \
7 file://NOTICE;md5=2659b43daca219f99a2f2626ea128f73"
8
9DEPENDS = "thrift-native boost flex-native bison-native openssl zlib"
10
11SRC_URI = "https://www-eu.apache.org/dist/thrift//${PV}/${BPN}-${PV}.tar.gz \
12 file://0001-DefineInstallationPaths.cmake-Define-libdir-in-terms.patch \
Andrew Geisslerc5535c92023-01-27 16:10:19 -060013 file://0001-cmake-Use-idirafter-instead-of-isystem.patch \
Patrick Williams213cb262021-08-07 19:21:33 -050014 "
Andrew Geissler87f5cff2022-09-30 13:13:31 -050015SRC_URI[sha256sum] = "b272c1788bb165d99521a2599b31b97fa69e5931d099015d91ae107a0b0cc58f"
Patrick Williams213cb262021-08-07 19:21:33 -050016
17BBCLASSEXTEND = "native nativesdk"
18
Andrew Geissler615f2f12022-07-15 14:00:58 -050019CVE_PRODUCT = "apache:thrift"
20
Patrick Williams213cb262021-08-07 19:21:33 -050021inherit pkgconfig cmake python3native
22
23export STAGING_INCDIR
24export STAGING_LIBDIR
25export BUILD_SYS
26export HOST_SYS
27
28EXTRA_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
42PACKAGECONFIG ??= "glib libevent"
43PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0"
44PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent"
45PACKAGECONFIG[javascript] = "-DWITH_JAVASCRIPT=ON,-DWITH_JAVASCRIPT=OFF,nodejs"
46PACKAGECONFIG[nodejs] = "-DWITH_NODEJS=ON,-DWITH_NODEJS=OFF,nodejs"
47PACKAGECONFIG[python] = "-DWITH_PYTHON=ON,-DWITH_PYTHON=OFF,python"
48
49do_install:append () {
50 ln -sf thrift ${D}/${bindir}/thrift-compiler
51}
52
53LEAD_SONAME = "libthrift.so.${PV}"
54
55# thrift packages
56PACKAGE_BEFORE_PN = "${PN}-compiler lib${BPN} lib${BPN}z lib${BPN}nb lib${BPN}-c-glib"
57FILES:lib${BPN} = "${libdir}/libthrift.so.*"
58FILES:lib${BPN}z = "${libdir}/libthriftz.so.*"
59FILES:lib${BPN}nb = "${libdir}/libthriftnb.so.*"
60FILES:lib${BPN}-c-glib = "${libdir}/libthrift_c_glib.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 = ""