aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libzippp/portfile.cmake
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/libzippp/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libzippp/portfile.cmake')
-rw-r--r--vcpkg/ports/libzippp/portfile.cmake35
1 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/libzippp/portfile.cmake b/vcpkg/ports/libzippp/portfile.cmake
new file mode 100644
index 0000000..de3f0da
--- /dev/null
+++ b/vcpkg/ports/libzippp/portfile.cmake
@@ -0,0 +1,35 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ctabin/libzippp
+ REF 7e65f6cd173da8f20393d331ceb697482b206edf #v7.1-1.10.1 with CXX std version c++11
+ SHA512 0076e39f6c1375d61e70dedc5132c48a8191534f2e6aeb042fe0f80c2aa068112e709446b29f84e513bf40ad532816c07155c2bc8ff86114e9c2f45b3f514fc0
+ HEAD_REF master
+)
+
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ encryption LIBZIPPP_ENABLE_ENCRYPTION)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DLIBZIPPP_BUILD_TESTS=OFF
+ OPTIONS_DEBUG
+ -DLIBZIPPP_INSTALL_HEADERS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_cmake_config_fixup(CONFIG_PATH "cmake/libzippp")
+else()
+ vcpkg_cmake_config_fixup(CONFIG_PATH "share/libzippp")
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)