diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libzippp | |
Diffstat (limited to 'vcpkg/ports/libzippp')
| -rw-r--r-- | vcpkg/ports/libzippp/portfile.cmake | 35 | ||||
| -rw-r--r-- | vcpkg/ports/libzippp/vcpkg.json | 30 |
2 files changed, 65 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) diff --git a/vcpkg/ports/libzippp/vcpkg.json b/vcpkg/ports/libzippp/vcpkg.json new file mode 100644 index 0000000..84cc33d --- /dev/null +++ b/vcpkg/ports/libzippp/vcpkg.json @@ -0,0 +1,30 @@ +{ + "name": "libzippp", + "version": "7.1-1.10.1", + "description": "Simple basic C++ wrapper around the libzip library. It is meant to be a portable and easy-to-use library for ZIP handling", + "homepage": "https://github.com/ctabin/libzippp", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "libzip", + "default-features": false, + "features": [ + "bzip2" + ] + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ], + "features": { + "encryption": { + "description": "Support encryption" + } + } +} |