Brad Bishop | 2f97392 | 2019-11-11 07:58:48 -0500 | [diff] [blame] | 1 | SUMMARY = "HTTP/2 C Library and tools" |
| 2 | HOMEPAGE = "https://nghttp2.org/" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=764abdf30b2eadd37ce47dcbce0ea1ec" |
| 6 | DEPENDS = "c-ares cunit jansson libev libevent libxml2 openssl zlib" |
| 7 | |
| 8 | UPSTREAM_CHECK_URI = "https://github.com/nghttp2/nghttp2/releases" |
| 9 | |
| 10 | SRC_URI = "\ |
| 11 | https://github.com/nghttp2/nghttp2/releases/download/v${PV}/nghttp2-${PV}.tar.xz \ |
| 12 | file://0001-fetch-ocsp-response-use-python3.patch \ |
| 13 | " |
Andrew Geissler | 89770b0 | 2020-06-13 10:40:47 -0500 | [diff] [blame^] | 14 | SRC_URI[md5sum] = "549db3507a7637b28ca467c7f3e9e023" |
| 15 | SRC_URI[sha256sum] = "abc25b8dc601f5b3fefe084ce50fcbdc63e3385621bee0cbfa7b57f9ec3e67c2" |
Brad Bishop | 2f97392 | 2019-11-11 07:58:48 -0500 | [diff] [blame] | 16 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | inherit cmake manpages python3native |
Brad Bishop | 2f97392 | 2019-11-11 07:58:48 -0500 | [diff] [blame] | 18 | PACKAGECONFIG[manpages] = "" |
| 19 | |
| 20 | # examples are never installed, and don't need to be built in the |
| 21 | # first place |
| 22 | EXTRA_OECMAKE = "-DENABLE_EXAMPLES=OFF -DENABLE_APP=ON" |
| 23 | |
| 24 | do_install_append() { |
| 25 | rm ${D}${bindir}/deflatehd ${D}${bindir}/inflatehd |
| 26 | } |
| 27 | |
| 28 | PACKAGES =+ "lib${PN} ${PN}-client ${PN}-proxy ${PN}-server" |
| 29 | |
| 30 | RDEPENDS_${PN} = "${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})" |
| 31 | RDEPENDS_${PN}_class-native = "" |
| 32 | RDEPENDS_${PN}-proxy = "openssl python3-core python3-io python3-shell" |
| 33 | |
| 34 | ALLOW_EMPTY_${PN} = "1" |
| 35 | FILES_${PN} = "" |
| 36 | FILES_lib${PN} = "${libdir}/*${SOLIBS}" |
| 37 | FILES_${PN}-client = "${bindir}/h2load ${bindir}/nghttp" |
| 38 | FILES_${PN}-proxy = "${bindir}/nghttpx ${datadir}/${BPN}/fetch-ocsp-response" |
| 39 | FILES_${PN}-server = "${bindir}/nghttpd" |
| 40 | |
| 41 | BBCLASSEXTEND = "native" |