aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2018-05-23 16:21:39 -0700
committerGitHub <noreply@github.com>2018-05-23 16:21:39 -0700
commit2d3eb3eee87c579be44fc1ba1cf9ada9d445c735 (patch)
treeeec22366b4ca934d50a12aa90aeea6ef0a678e06
parent4d28458f4c90b160e7145b11edd37e101fbc1f34 (diff)
parent4772ed9965df907ea0dc29d92929b1cd4f89a0c9 (diff)
downloadvcpkg-2d3eb3eee87c579be44fc1ba1cf9ada9d445c735.tar.gz
vcpkg-2d3eb3eee87c579be44fc1ba1cf9ada9d445c735.zip
Merge pull request #3555 from DDoSolitary/master
Fix dep to lz4 for libarchive.
-rw-r--r--ports/libarchive/CONTROL2
-rw-r--r--ports/libarchive/fix-lz4.patch18
-rw-r--r--ports/libarchive/portfile.cmake3
3 files changed, 21 insertions, 2 deletions
diff --git a/ports/libarchive/CONTROL b/ports/libarchive/CONTROL
index c17693807..dfcfa66b3 100644
--- a/ports/libarchive/CONTROL
+++ b/ports/libarchive/CONTROL
@@ -1,4 +1,4 @@
Source: libarchive
-Version: 3.3.2-1
+Version: 3.3.2-2
Description: Library for reading and writing streaming archives
Build-Depends: zlib, bzip2, libxml2, lz4, liblzma, openssl
diff --git a/ports/libarchive/fix-lz4.patch b/ports/libarchive/fix-lz4.patch
new file mode 100644
index 000000000..6a3d974fc
--- /dev/null
+++ b/ports/libarchive/fix-lz4.patch
@@ -0,0 +1,18 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 73bf07b3..76a1d61d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -515,7 +515,10 @@ IF (LZ4_INCLUDE_DIR)
+ ENDIF (LZ4_INCLUDE_DIR)
+
+ FIND_PATH(LZ4_INCLUDE_DIR lz4.h)
+-FIND_LIBRARY(LZ4_LIBRARY NAMES lz4 liblz4)
++FIND_LIBRARY(LZ4_LIBRARY_DEBUG NAMES lz4d liblz4d)
++FIND_LIBRARY(LZ4_LIBRARY_RELEASE NAMES lz4 liblz4)
++INCLUDE(SelectLibraryConfigurations)
++SELECT_LIBRARY_CONFIGURATIONS(LZ4)
+ INCLUDE(FindPackageHandleStandardArgs)
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(LZ4 DEFAULT_MSG LZ4_LIBRARY LZ4_INCLUDE_DIR)
+ IF(LZ4_FOUND)
+
+ \ No newline at end of file
diff --git a/ports/libarchive/portfile.cmake b/ports/libarchive/portfile.cmake
index a5bed4143..d361b7da8 100644
--- a/ports/libarchive/portfile.cmake
+++ b/ports/libarchive/portfile.cmake
@@ -15,7 +15,8 @@ vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES
${CMAKE_CURRENT_LIST_DIR}/fix-buildsystem.patch
- ${CMAKE_CURRENT_LIST_DIR}/fix-dependencies.patch)
+ ${CMAKE_CURRENT_LIST_DIR}/fix-dependencies.patch
+ ${CMAKE_CURRENT_LIST_DIR}/fix-lz4.patch)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}