diff options
| author | Oleg Shparber <trollixx@gmail.com> | 2020-01-17 19:13:12 -0500 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2020-01-17 16:13:12 -0800 |
| commit | 6ee44d2260fcfac523c73d0997b1edd95311eedc (patch) | |
| tree | d4a7dadac43c850c7ba1813c449c460cff8fbc62 | |
| parent | 08c8214d68edda04cd9da8eda1b2271da00c8628 (diff) | |
| download | vcpkg-6ee44d2260fcfac523c73d0997b1edd95311eedc.tar.gz vcpkg-6ee44d2260fcfac523c73d0997b1edd95311eedc.zip | |
[libarchive] Update to 3.4.1 (#9676)
| -rw-r--r-- | ports/libarchive/CONTROL | 2 | ||||
| -rw-r--r-- | ports/libarchive/portfile.cmake | 54 |
2 files changed, 13 insertions, 43 deletions
diff --git a/ports/libarchive/CONTROL b/ports/libarchive/CONTROL index 907e50745..73760e887 100644 --- a/ports/libarchive/CONTROL +++ b/ports/libarchive/CONTROL @@ -1,5 +1,5 @@ Source: libarchive
-Version: 3.4.0-2
+Version: 3.4.1
Homepage: https://github.com/libarchive/libarchive
Description: Library for reading and writing streaming archives
Build-Depends: zlib
diff --git a/ports/libarchive/portfile.cmake b/ports/libarchive/portfile.cmake index 61d1dfd4a..fd475b199 100644 --- a/ports/libarchive/portfile.cmake +++ b/ports/libarchive/portfile.cmake @@ -1,14 +1,10 @@ -# libarchive uses winapi functions not available in WindowsStore
-if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
- message(FATAL_ERROR "Error: UWP builds are not supported.")
-endif()
+vcpkg_fail_port_install(ON_TARGET "UWP")
-include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libarchive/libarchive
- REF 614110e76d9dbb9ed3e159a71cbd75fa3b23efe3
- SHA512 8feac2c0e22e5b7c05f3be97c774ad82d39bdea4b3fa3a2b297b85f8a5a9f548c528ef63f5495afd42fb75759e03a4108f3831b27103f899f8fe4ef7e8e2d1cf
+ REF cce09646b566c61c2debff58a70da780b8457883
+ SHA512 3eef6844269ecb9c3b7c848013539529e6ef2d298b6ca6c3c939a2a2e39da98db36bd66eea8893224bc4318edc073639136fbca71b2b0bec65216562e8188749
HEAD_REF master
PATCHES
fix-buildsystem.patch
@@ -18,46 +14,20 @@ vcpkg_from_github( fix-cpu-set.patch
)
-set(BUILD_libarchive_bzip2 OFF)
-if("bzip2" IN_LIST FEATURES)
- set(BUILD_libarchive_bzip2 ON)
-endif()
-
-set(BUILD_libarchive_libxml2 OFF)
-if("libxml2" IN_LIST FEATURES)
- set(BUILD_libarchive_libxml2 ON)
-endif()
-
-set(BUILD_libarchive_lz4 OFF)
-if("lz4" IN_LIST FEATURES)
- set(BUILD_libarchive_lz4 ON)
-endif()
-
-set(BUILD_libarchive_lzma OFF)
-if("lzma" IN_LIST FEATURES)
- set(BUILD_libarchive_lzma ON)
-endif()
-
-set(BUILD_libarchive_lzo OFF)
-if("lzo" IN_LIST FEATURES)
- set(BUILD_libarchive_lzo ON)
-endif()
-
-set(BUILD_libarchive_openssl OFF)
-if("openssl" IN_LIST FEATURES)
- set(BUILD_libarchive_openssl ON)
-endif()
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ bzip2 ENABLE_BZip2
+ libxml2 ENABLE_LIBXML2
+ lz4 ENABLE_LZ4
+ lzma ENABLE_LZMA
+ lzo ENABLE_LZO
+ openssl ENABLE_OPENSSL
+)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
- -DENABLE_BZip2=${BUILD_libarchive_bzip2}
- -DENABLE_LIBXML2=${BUILD_libarchive_libxml2}
- -DENABLE_LZ4=${BUILD_libarchive_lz4}
- -DENABLE_LZMA=${BUILD_libarchive_lzma}
- -DENABLE_LZO=${BUILD_libarchive_lzo}
- -DENABLE_OPENSSL=${BUILD_libarchive_openssl}
+ ${FEATURE_OPTIONS}
-DENABLE_PCREPOSIX=OFF
-DENABLE_NETTLE=OFF
-DENABLE_EXPAT=OFF
|
