diff --git a/ports/llhttp/fix-usage.patch b/ports/llhttp/fix-usage.patch new file mode 100644 index 0000000000..79a8c4a2d0 --- /dev/null +++ b/ports/llhttp/fix-usage.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 65484a7..a6c02c2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -75,6 +75,10 @@ function(config_library target) + FILE llhttp-config.cmake + NAMESPACE llhttp:: + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/llhttp) ++ target_include_directories(${target} ++ PRIVATE include ${CMAKE_CURRENT_BINARY_DIR} ++ INTERFACE $ ++) + endfunction(config_library target) + + if(BUILD_SHARED_LIBS) diff --git a/ports/llhttp/portfile.cmake b/ports/llhttp/portfile.cmake index 03ce69a113..637796700d 100644 --- a/ports/llhttp/portfile.cmake +++ b/ports/llhttp/portfile.cmake @@ -1,8 +1,12 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO nodejs/llhttp REF refs/tags/release/v8.1.0 SHA512 3b79555f734a6a200a790f04f10be6d3ce5bd999c027a43c0900bb408e7d64be38fe4bbe9f15e57e389f07ba26b8089fc6ba5eef3b497742484f0719e92e9722 + PATCHES + fix-usage.patch ) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LLHTTP_BUILD_STATIC) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LLHTTP_BUILD_SHARED) diff --git a/ports/llhttp/vcpkg.json b/ports/llhttp/vcpkg.json index e97f3cc111..2299039a72 100644 --- a/ports/llhttp/vcpkg.json +++ b/ports/llhttp/vcpkg.json @@ -1,7 +1,7 @@ { "name": "llhttp", "version": "8.1.0", - "port-version": 1, + "port-version": 2, "description": "Port of http_parser to llparse.", "homepage": "https://github.com/nodejs/llhttp", "license": "MIT", diff --git a/versions/baseline.json b/versions/baseline.json index 4b1a449e88..196b0f98af 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5022,7 +5022,7 @@ }, "llhttp": { "baseline": "8.1.0", - "port-version": 1 + "port-version": 2 }, "llvm": { "baseline": "15.0.7", diff --git a/versions/l-/llhttp.json b/versions/l-/llhttp.json index 0b7b6dc5d8..251c075ce7 100644 --- a/versions/l-/llhttp.json +++ b/versions/l-/llhttp.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "02d4bf2e1a15712c39a825aa81791f032b06fd10", + "version": "8.1.0", + "port-version": 2 + }, { "git-tree": "655fdc5f25da19400df907e4d82fc0b148f02e9d", "version": "8.1.0",