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 = " \ |
| 27 | -DENABLE_PRECOMPILED_HEADERS=OFF \ |
| 28 | -DBUILD_LIBRARIES=ON \ |
| 29 | -DBUILD_COMPILER=ON \ |
| 30 | -DBUILD_TESTING=OFF \ |
| 31 | -DBUILD_EXAMPLES=OFF \ |
| 32 | -DBUILD_TUTORIALS=OFF \ |
| 33 | -DWITH_CPP=ON \ |
| 34 | -DWITH_JAVA=OFF \ |
| 35 | -DWITH_PYTHON=OFF \ |
| 36 | -DWITH_STATIC_LIB=ON \ |
| 37 | -DWITH_SHARED_LIB=ON \ |
| 38 | -DWITH_OPENSSL=ON \ |
| 39 | -DWITH_QT4=OFF \ |
| 40 | -DWITH_QT5=OFF \ |
| 41 | -DWITH_BOOST_FUNCTIONAL=OFF \ |
| 42 | " |
| 43 | |
| 44 | PACKAGECONFIG ??= "libevent glib boost-smart-ptr" |
| 45 | PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent" |
| 46 | PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0" |
| 47 | PACKAGECONFIG[boost-smart-ptr] = "-DWITH_BOOST_SMART_PTR=ON,-DWITH_BOOST_SMART_PTR=OFF,boost" |
| 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 = "" |