blob: 75584498a6bc4a14d2f053f8dd8df37d3b9d1ef7 [file] [log] [blame]
Brad Bishop34ae6002019-04-08 15:21:03 -04001DESCRIPTION = "High-level C binding for 0MQ"
2HOMEPAGE = "http://czmq.zeromq.org/"
3LICENSE = "MPL-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
5DEPENDS = "zeromq"
6
7SRC_URI = "https://github.com/zeromq/czmq/releases/download/v${PV}/czmq-${PV}.tar.gz"
8
Andrew Geisslereef63862021-01-29 15:58:13 -06009SRC_URI[md5sum] = "471e9ec120fc66a2fe2aae14359e3cfa"
10SRC_URI[sha256sum] = "5d720a204c2a58645d6f7643af15d563a712dad98c9d32c1ed913377daa6ac39"
Brad Bishop34ae6002019-04-08 15:21:03 -040011
Andrew Geissler82c905d2020-04-13 13:39:40 -050012UPSTREAM_CHECK_URI = "https://github.com/zeromq/${BPN}/releases"
13
Andrew Geissler69721092021-07-23 12:57:00 -040014inherit cmake pkgconfig
Brad Bishop34ae6002019-04-08 15:21:03 -040015
16PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-staticdev ${PN} ${PN}-dbg"
17
18FILES_${PN} = "${bindir}/*"
19FILES_lib${BPN} = "${libdir}/*.so.*"
20FILES_lib${BPN}-dev = "${libdir}/*.so ${libdir}/pkgconfig ${includedir} ${datadir}/cmake"
21FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
22
23RDEPENDS_lib${BPN}-dev = "zeromq-dev"
24
25PACKAGECONFIG ??= "lz4 uuid curl ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
Andrew Geissler69721092021-07-23 12:57:00 -040026PACKAGECONFIG[curl] = "-DCZMQ_WITH_LIBCURL=ON,-DCZMQ_WITH_LIBCURL=OFF,curl"
27PACKAGECONFIG[httpd] = "-DCZMQ_WITH_LIBMICROHTTPD=ON,-DCZMQ_WITH_LIBMICROHTTPD=OFF,libmicrohttpd"
28PACKAGECONFIG[lz4] = "-DCZMQ_WITH_LZ4=ON,-DCZMQ_WITH_LZ4=OFF,lz4"
29PACKAGECONFIG[nss] = "-DCZMQ_WITH_NSS=ON,-DCZMQ_WITH_NSS=OFF,nss"
30PACKAGECONFIG[systemd] = "-DCZMQ_WITH_SYSTEMD=ON,-DCZMQ_WITH_SYSTEMD=OFF,systemd"
31PACKAGECONFIG[uuid] = "-DCZMQ_WITH_UUID=ON,-DCZMQ_WITH_UUID=OFF,util-linux"
Brad Bishop34ae6002019-04-08 15:21:03 -040032
33BBCLASSEXTEND = "nativesdk"
34
Andrew Geissler32b11992021-03-31 13:37:05 -050035do_install_append() {
36 mkdir -p ${D}/${includedir}/${BPN}
37 mv ${D}/${includedir}/sha1.h ${D}/${includedir}/${BPN}/.
38}