git: 56907a7c42b6 - main - www/restinio: Fix detection of llhttp's shared library
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Feb 2026 00:22:34 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=56907a7c42b6b46f6a723b9e2e17a3a95ce9d482
commit 56907a7c42b6b46f6a723b9e2e17a3a95ce9d482
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2026-02-22 23:08:44 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2026-02-23 00:22:11 +0000
www/restinio: Fix detection of llhttp's shared library
Upstream refers to it as llhttp_shared not llhttp_dynamic
Reference:
https://github.com/nodejs/llhttp/blob/release/v9.3.0/CMakeLists.txt#L96
Approved by: blanket (just fix it)
---
www/restinio/files/patch-restinio_CMakeLists.txt | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/www/restinio/files/patch-restinio_CMakeLists.txt b/www/restinio/files/patch-restinio_CMakeLists.txt
new file mode 100644
index 000000000000..d51fa501e9ce
--- /dev/null
+++ b/www/restinio/files/patch-restinio_CMakeLists.txt
@@ -0,0 +1,15 @@
+--- restinio/CMakeLists.txt.orig 2026-02-22 22:12:55 UTC
++++ restinio/CMakeLists.txt
+@@ -102,9 +102,9 @@ elseif (TARGET llhttp::llhttp_static)
+ elseif (TARGET llhttp::llhttp_static)
+ target_link_libraries(${RESTINIO_LIBRARY_NAME} INTERFACE llhttp::llhttp_static)
+ message(STATUS "${RESTINIO_LIBRARY_NAME} target will depend on 'llhttp::llhttp_static' target")
+-elseif (TARGET llhttp::llhttp_dynamic)
+- target_link_libraries(${RESTINIO_LIBRARY_NAME} INTERFACE llhttp::llhttp_dynamic)
+- message(STATUS "${RESTINIO_LIBRARY_NAME} target will depend on 'llhttp::llhttp_dynamic' target")
++elseif (TARGET llhttp::llhttp_shared)
++ target_link_libraries(${RESTINIO_LIBRARY_NAME} INTERFACE llhttp::llhttp_shared)
++ message(STATUS "${RESTINIO_LIBRARY_NAME} target will depend on 'llhttp::llhttp_shared' target")
+ else ()
+ message(FATAL_ERROR
+ "Unable to identify how to depend on llhttp. "