aboutsummaryrefslogtreecommitdiff
path: root/ports/apr
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-06-26 02:11:17 +0800
committerGitHub <noreply@github.com>2020-06-25 11:11:17 -0700
commit1f0db1f06a77be25ddc9185cca23230d2e60aecb (patch)
treeb434b8cdd6ee237b1f5d05bae42b94725a169214 /ports/apr
parent70ab27fcad50241d72e0fe235ec4012f0ce7551e (diff)
downloadvcpkg-1f0db1f06a77be25ddc9185cca23230d2e60aecb.tar.gz
vcpkg-1f0db1f06a77be25ddc9185cca23230d2e60aecb.zip
[vcpkg baseline] Fix baseline errors (#12067)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports/apr')
-rw-r--r--ports/apr/CONTROL2
-rw-r--r--ports/apr/portfile.cmake7
2 files changed, 8 insertions, 1 deletions
diff --git a/ports/apr/CONTROL b/ports/apr/CONTROL
index 9786e3d9f..607f6c4d4 100644
--- a/ports/apr/CONTROL
+++ b/ports/apr/CONTROL
@@ -1,5 +1,5 @@
Source: apr
-Version: 1.7.0
+Version: 1.7.0-1
Homepage: https://apr.apache.org/
Description: The Apache Portable Runtime (APR) is a C library that forms a system portability layer that covers many operating systems.
Supports: !uwp
diff --git a/ports/apr/portfile.cmake b/ports/apr/portfile.cmake
index ede0eb9fc..b3ede1a1d 100644
--- a/ports/apr/portfile.cmake
+++ b/ports/apr/portfile.cmake
@@ -76,6 +76,13 @@ else()
vcpkg_install_make()
+ vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/apr-1.pc
+ "-lapr-\${APR_MAJOR_VERSION}" "-lapr-1"
+ )
+ vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/lib/pkgconfig/apr-1.pc
+ "-lapr-\${APR_MAJOR_VERSION}" "-lapr-1"
+ )
+ vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread rt dl)
endif()
# Handle copyright