diff --git a/meta-networking/recipes-connectivity/restinio/restinio_0.6.19.bb b/meta-networking/recipes-connectivity/restinio/restinio_0.6.19.bb deleted file mode 100644 index 22dd4ada13..0000000000 --- a/meta-networking/recipes-connectivity/restinio/restinio_0.6.19.bb +++ /dev/null @@ -1,29 +0,0 @@ -SUMMARY = "Header-only C++14 library that gives you an embedded HTTP server" -DESCRIPTION = "Cross-platform, efficient, customizable, and robust \ - asynchronous HTTP/WebSocket server C++14 library with the \ - right balance between performance and ease of use" -HOMEPAGE = "https://stiffstream.com/en/products/restinio.html" -SECTION = "libs" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://../LICENSE;md5=bfe2747443b7875eaaaa94b55b611f49" -DEPENDS = "asio fmt http-parser" - -SRC_URI = "https://github.com/Stiffstream/restinio/releases/download/v.${PV}/${BP}.tar.bz2" -SRC_URI[sha256sum] = "7f21eebeb966e170d6ab54e9b198ac927d439090121739e037c0fa3bb367b240" - -S = "${UNPACKDIR}/${BP}/dev" - -inherit cmake - -EXTRA_OECMAKE += "\ - -DRESTINIO_TEST=OFF \ - -DRESTINIO_SAMPLE=OFF \ - -DRESTINIO_BENCH=OFF \ - -DRESTINIO_FIND_DEPS=ON \ - -DRESTINIO_ALLOW_SOBJECTIZER=OFF \ - -DRESTINIO_USE_EXTERNAL_HTTP_PARSER=ON \ - " - -# Header-only library -RDEPENDS:${PN}-dev = "" -RRECOMMENDS:${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})" diff --git a/meta-networking/recipes-connectivity/restinio/restinio_0.7.9.1.bb b/meta-networking/recipes-connectivity/restinio/restinio_0.7.9.1.bb new file mode 100644 index 0000000000..193e9de81a --- /dev/null +++ b/meta-networking/recipes-connectivity/restinio/restinio_0.7.9.1.bb @@ -0,0 +1,40 @@ +SUMMARY = "Header-only C++14 library that gives you an embedded HTTP server" +DESCRIPTION = "Cross-platform, efficient, customizable, and robust \ + asynchronous HTTP/WebSocket server C++14 library with the \ + right balance between performance and ease of use" +HOMEPAGE = "https://stiffstream.com/en/products/restinio.html" +SECTION = "libs" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://../LICENSE;md5=d9ef67870895758240c3889695ad2558" +DEPENDS = "asio fmt llhttp expected-lite" + +SRC_URI = "https://github.com/Stiffstream/restinio/releases/download/v${PV}/${BP}.tar.bz2" +SRC_URI[sha256sum] = "4a0429e2ea4ece200228226f0c628ecf9ac111cb6a6b12ad857de84c0576bf80" + +S = "${UNPACKDIR}/${BP}/dev" + +inherit cmake + +# restinio 0.7.x no longer bundles its third-party dependencies in the +# release tarball (unlike 0.6.x). fmt and expected-lite are resolved via +# find_package() against externally-provided packages. llhttp's upstream +# CMakeLists.txt only exports an "llhttp::llhttp_shared" imported target +# (llhttp::llhttp is merely a build-tree ALIAS, never installed/exported), +# which restinio's dev/restinio/CMakeLists.txt does not recognize as a +# valid find_package() target name, so llhttp is consumed in "system" +# mode instead (plain -lllhttp against the sysroot). The optional +# sobjectizer integration is disabled since we don't need it. +EXTRA_OECMAKE += "\ + -DRESTINIO_TEST=OFF \ + -DRESTINIO_SAMPLE=OFF \ + -DRESTINIO_BENCHMARK=OFF \ + -DRESTINIO_WITH_SOBJECTIZER=OFF \ + -DRESTINIO_DEP_STANDALONE_ASIO=find \ + -DRESTINIO_DEP_LLHTTP=system \ + -DRESTINIO_DEP_FMT=find \ + -DRESTINIO_DEP_EXPECTED_LITE=find \ + " + +# Header-only library +RDEPENDS:${PN}-dev = "" +RRECOMMENDS:${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"