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 \ |
| 7 | file://NOTICE;md5=42748ae4646b45fbfa5182807321fb6c" |
| 8 | |
| 9 | DEPENDS = "thrift-native boost flex-native bison-native openssl" |
| 10 | |
| 11 | SRC_URI = "https://www-eu.apache.org/dist/thrift//${PV}/${BPN}-${PV}.tar.gz" |
| 12 | |
| 13 | SRC_URI[md5sum] = "3deebbb4d1ca77dd9c9e009a1ea02183" |
| 14 | SRC_URI[sha256sum] = "c336099532b765a6815173f62df0ed897528a9d551837d627c1f87fadad90428" |
| 15 | |
| 16 | BBCLASSEXTEND = "native nativesdk" |
| 17 | |
| 18 | inherit pkgconfig cmake pythonnative |
| 19 | |
| 20 | export STAGING_INCDIR |
| 21 | export STAGING_LIBDIR |
| 22 | export BUILD_SYS |
| 23 | export HOST_SYS |
| 24 | |
| 25 | EXTRA_OECMAKE = " \ |
| 26 | -DENABLE_PRECOMPILED_HEADERS=OFF \ |
| 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 \ |
| 38 | -DWITH_QT4=OFF \ |
| 39 | -DWITH_QT5=OFF \ |
| 40 | -DWITH_BOOST_FUNCTIONAL=OFF \ |
| 41 | " |
| 42 | |
| 43 | PACKAGECONFIG ??= "libevent glib boost-smart-ptr" |
| 44 | PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent" |
| 45 | PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0" |
| 46 | PACKAGECONFIG[boost-smart-ptr] = "-DWITH_BOOST_SMART_PTR=ON,-DWITH_BOOST_SMART_PTR=OFF,boost" |
| 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 = "" |