Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | DESCRIPTION = "ZeroMQ looks like an embeddable networking library but acts like a concurrency framework" |
| 2 | HOMEPAGE = "http://www.zeromq.org" |
| 3 | LICENSE = "MPL-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3" |
| 5 | |
| 6 | PACKAGECONFIG ??= "libsodium" |
| 7 | PACKAGECONFIG[libsodium] = "-DWITH_LIBSODIUM=ON,-DWITH_LIBSODIUM=OFF, libsodium" |
| 8 | |
| 9 | SRC_URI = "http://github.com/zeromq/libzmq/releases/download/v${PV}/zeromq-${PV}.tar.gz \ |
| 10 | file://0001-CMakeLists-txt-Avoid-host-specific-path-to-libsodium.patch \ |
| 11 | file://run-ptest \ |
| 12 | " |
| 13 | SRC_URI[sha256sum] = "6653ef5910f17954861fe72332e68b03ca6e4d9c7160eb3a8de5a5a913bfab43" |
| 14 | |
| 15 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/libzmq/releases" |
| 16 | |
| 17 | inherit cmake ptest pkgconfig |
| 18 | |
| 19 | EXTRA_OECMAKE = "${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTS=ON', '-DBUILD_TESTS=OFF', d)} \ |
| 20 | -DCMAKE_SKIP_RPATH=ON \ |
| 21 | " |
| 22 | |
| 23 | do_install_ptest () { |
| 24 | install -d ${D}${PTEST_PATH}/tests |
| 25 | install -m 0755 ${B}/bin/test_* ${D}${PTEST_PATH}/tests |
| 26 | } |
| 27 | |
| 28 | FILES:${PN}-doc += "${datadir}/zmq/*.txt" |