aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/oatpp-zlib
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/oatpp-zlib
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/oatpp-zlib')
-rw-r--r--vcpkg/ports/oatpp-zlib/fix-usage.patch13
-rw-r--r--vcpkg/ports/oatpp-zlib/missing-find_dependency.patch14
-rw-r--r--vcpkg/ports/oatpp-zlib/portfile.cmake27
-rw-r--r--vcpkg/ports/oatpp-zlib/vcpkg.json20
4 files changed, 74 insertions, 0 deletions
diff --git a/vcpkg/ports/oatpp-zlib/fix-usage.patch b/vcpkg/ports/oatpp-zlib/fix-usage.patch
new file mode 100644
index 0000000..c08afc7
--- /dev/null
+++ b/vcpkg/ports/oatpp-zlib/fix-usage.patch
@@ -0,0 +1,13 @@
+diff --git a/cmake/module-utils.cmake b/cmake/module-utils.cmake
+index 8f1d35a..cade49d 100644
+--- a/cmake/module-utils.cmake
++++ b/cmake/module-utils.cmake
+@@ -5,7 +5,7 @@ macro(target_link_oatpp target)
+ message("target_link_oatpp(${target}) to installed oatpp lib")
+
+ target_link_libraries(${target}
+- PRIVATE oatpp::oatpp
++ PUBLIC oatpp::oatpp
+ PRIVATE oatpp::oatpp-test
+ )
+
diff --git a/vcpkg/ports/oatpp-zlib/missing-find_dependency.patch b/vcpkg/ports/oatpp-zlib/missing-find_dependency.patch
new file mode 100644
index 0000000..f1bdeae
--- /dev/null
+++ b/vcpkg/ports/oatpp-zlib/missing-find_dependency.patch
@@ -0,0 +1,14 @@
+diff --git a/cmake/module-config.cmake.in b/cmake/module-config.cmake.in
+index 5cc12b0..71f8f10 100644
+--- a/cmake/module-config.cmake.in
++++ b/cmake/module-config.cmake.in
+@@ -1,5 +1,9 @@
+ @PACKAGE_INIT@
+
++include(CMakeFindDependencyMacro)
++find_dependency(oatpp)
++find_dependency(ZLIB)
++
+ if(NOT TARGET oatpp::@OATPP_MODULE_NAME@)
+ include("${CMAKE_CURRENT_LIST_DIR}/@OATPP_MODULE_NAME@Targets.cmake")
+ endif()
diff --git a/vcpkg/ports/oatpp-zlib/portfile.cmake b/vcpkg/ports/oatpp-zlib/portfile.cmake
new file mode 100644
index 0000000..69e0106
--- /dev/null
+++ b/vcpkg/ports/oatpp-zlib/portfile.cmake
@@ -0,0 +1,27 @@
+set(OATPP_VERSION "1.3.0")
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO oatpp/oatpp-zlib
+ REF ${OATPP_VERSION}
+ SHA512 574f0440cbb2cd2bc14ad89e33538a1a300ad23ecc941629b74aa8ccb9aeae5158b1b57e2f1af09d7a6b9b97430a5685354677002dab2261120afa9c6ea74381
+ HEAD_REF master
+ PATCHES
+ missing-find_dependency.patch
+ fix-usage.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-zlib CONFIG_PATH lib/cmake/oatpp-zlib-${OATPP_VERSION})
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/oatpp-zlib/vcpkg.json b/vcpkg/ports/oatpp-zlib/vcpkg.json
new file mode 100644
index 0000000..d1b17cb
--- /dev/null
+++ b/vcpkg/ports/oatpp-zlib/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "oatpp-zlib",
+ "version": "1.3.0",
+ "port-version": 2,
+ "description": "Oat++ functionality for automatically compressing/decompressing content with deflate and gzip.",
+ "homepage": "https://github.com/oatpp/oatpp-zlib",
+ "license": "Apache-2.0",
+ "dependencies": [
+ "oatpp",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "zlib"
+ ]
+}