early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/libzippp/fix-find-lzma.patch
vendored
Executable file
13
externals/vcpkg/ports/libzippp/fix-find-lzma.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/cmake/FindLIBZIP.cmake b/cmake/FindLIBZIP.cmake
|
||||
index c51c09a..a32bb13 100644
|
||||
--- a/cmake/FindLIBZIP.cmake
|
||||
+++ b/cmake/FindLIBZIP.cmake
|
||||
@@ -50,7 +50,7 @@ if (LIBZIP_FOUND)
|
||||
set_property(TARGET libzip::zip APPEND PROPERTY INTERFACE_LINK_LIBRARIES Nettle::Nettle)
|
||||
endif()
|
||||
if(_have_extra_libs MATCHES "-llzma")
|
||||
- find_package(LibLZMA::LibLZMA REQUIRED)
|
||||
+ find_package(LibLZMA REQUIRED)
|
||||
set_property(TARGET libzip::zip APPEND PROPERTY INTERFACE_LINK_LIBRARIES LibLZMA::LibLZMA)
|
||||
endif()
|
||||
if(_have_extra_libs MATCHES "-lz")
|
||||
36
externals/vcpkg/ports/libzippp/portfile.cmake
vendored
Executable file
36
externals/vcpkg/ports/libzippp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,36 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ctabin/libzippp
|
||||
REF 4248d7bf200e00b637cbd394c2b2369891de4e30 #v5.1-1.8.0 with CXX std version c++11
|
||||
SHA512 171010da61ab4893648ceef80009925e7b79294008de220fe132c42843cb939e454812c0e70de29dfb0318e6bf11c7924a31da52f7703c523ab95c68ba61051a
|
||||
HEAD_REF master
|
||||
PATCHES fix-find-lzma.patch
|
||||
)
|
||||
|
||||
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)
|
||||
29
externals/vcpkg/ports/libzippp/vcpkg.json
vendored
Executable file
29
externals/vcpkg/ports/libzippp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "libzippp",
|
||||
"version": "5.1-1.8.0",
|
||||
"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",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user