Brad Bishop | 34ae600 | 2019-04-08 15:21:03 -0400 | [diff] [blame] | 1 | DESCRIPTION = "High-level C binding for 0MQ" |
| 2 | HOMEPAGE = "http://czmq.zeromq.org/" |
| 3 | LICENSE = "MPL-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3" |
| 5 | DEPENDS = "zeromq" |
| 6 | |
| 7 | SRC_URI = "https://github.com/zeromq/czmq/releases/download/v${PV}/czmq-${PV}.tar.gz" |
| 8 | |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 9 | SRC_URI[md5sum] = "471e9ec120fc66a2fe2aae14359e3cfa" |
| 10 | SRC_URI[sha256sum] = "5d720a204c2a58645d6f7643af15d563a712dad98c9d32c1ed913377daa6ac39" |
Brad Bishop | 34ae600 | 2019-04-08 15:21:03 -0400 | [diff] [blame] | 11 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | UPSTREAM_CHECK_URI = "https://github.com/zeromq/${BPN}/releases" |
| 13 | |
Brad Bishop | 34ae600 | 2019-04-08 15:21:03 -0400 | [diff] [blame] | 14 | inherit cmake |
| 15 | |
| 16 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-staticdev ${PN} ${PN}-dbg" |
| 17 | |
| 18 | FILES_${PN} = "${bindir}/*" |
| 19 | FILES_lib${BPN} = "${libdir}/*.so.*" |
| 20 | FILES_lib${BPN}-dev = "${libdir}/*.so ${libdir}/pkgconfig ${includedir} ${datadir}/cmake" |
| 21 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" |
| 22 | |
| 23 | RDEPENDS_lib${BPN}-dev = "zeromq-dev" |
| 24 | |
| 25 | PACKAGECONFIG ??= "lz4 uuid curl ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 26 | PACKAGECONFIG[lz4] = ",-DCMAKE_DISABLE_FIND_PACKAGE_lz4=TRUE,lz4" |
| 27 | PACKAGECONFIG[uuid] = ",-DCMAKE_DISABLE_FIND_PACKAGE_uuid=TRUE,util-linux" |
| 28 | PACKAGECONFIG[curl] = ",-DCMAKE_DISABLE_FIND_PACKAGE_libcurl=TRUE,curl" |
| 29 | PACKAGECONFIG[systemd] = ",-DCMAKE_DISABLE_FIND_PACKAGE_systemd=TRUE,systemd" |
| 30 | |
| 31 | BBCLASSEXTEND = "nativesdk" |
| 32 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame^] | 33 | do_install_append() { |
| 34 | mkdir -p ${D}/${includedir}/${BPN} |
| 35 | mv ${D}/${includedir}/sha1.h ${D}/${includedir}/${BPN}/. |
| 36 | } |