aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/apr-util/CONTROL2
-rw-r--r--ports/apr-util/apr.patch13
-rw-r--r--ports/apr-util/portfile.cmake4
3 files changed, 17 insertions, 2 deletions
diff --git a/ports/apr-util/CONTROL b/ports/apr-util/CONTROL
index 1ff406efd..80ca3d94d 100644
--- a/ports/apr-util/CONTROL
+++ b/ports/apr-util/CONTROL
@@ -1,4 +1,4 @@
Source: apr-util
-Version: 1.6.0-2
+Version: 1.6.0-3
Description: Apache Portable Runtime (APR) project mission is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementation
Build-Depends: expat, apr, openssl
diff --git a/ports/apr-util/apr.patch b/ports/apr-util/apr.patch
new file mode 100644
index 000000000..5a61cb9f9
--- /dev/null
+++ b/ports/apr-util/apr.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 69e45541..19b86129 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -35,7 +35,7 @@ IF(NOT EXISTS "${APR_INCLUDE_DIR}/apr.h")
+ MESSAGE(FATAL_ERROR "APR include directory ${APR_INCLUDE_DIR} is not correct.")
+ ENDIF()
+ FOREACH(onelib ${APR_LIBRARIES})
+- IF(NOT EXISTS ${onelib})
++ IF(${onelib} MATCHES "NOTFOUND")
+ MESSAGE(FATAL_ERROR "APR library ${onelib} was not found.")
+ ENDIF()
+ ENDFOREACH()
diff --git a/ports/apr-util/portfile.cmake b/ports/apr-util/portfile.cmake
index 6ac311d76..0b1c28351 100644
--- a/ports/apr-util/portfile.cmake
+++ b/ports/apr-util/portfile.cmake
@@ -10,7 +10,9 @@ vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
- PATCHES "${CMAKE_CURRENT_LIST_DIR}/use-vcpkg-expat.patch"
+ PATCHES
+ use-vcpkg-expat.patch
+ apr.patch
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)