aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGyusun Yeom <omniavinco@gmail.com>2021-01-09 04:48:55 +0900
committerGitHub <noreply@github.com>2021-01-08 11:48:55 -0800
commitddeef79a7df0365ac8fcfeca3821bc61d7ff76f2 (patch)
treee5ebc812cd8439ef93180f0cfd2381543b234253
parent1a4c54f1f16a5f290fb55297b2ee5f59fe416928 (diff)
downloadvcpkg-ddeef79a7df0365ac8fcfeca3821bc61d7ff76f2.tar.gz
vcpkg-ddeef79a7df0365ac8fcfeca3821bc61d7ff76f2.zip
[openssl] install pkgconfig file (#15191)
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
-rw-r--r--ports/openssl/CONTROL2
-rw-r--r--ports/openssl/unix/CMakeLists.txt8
-rw-r--r--ports/openssl/unix/portfile.cmake1
3 files changed, 9 insertions, 2 deletions
diff --git a/ports/openssl/CONTROL b/ports/openssl/CONTROL
index bda3d35af..ae561f567 100644
--- a/ports/openssl/CONTROL
+++ b/ports/openssl/CONTROL
@@ -1,5 +1,5 @@
Source: openssl
Version: 1.1.1h
-Port-Version: 4
+Port-Version: 5
Homepage: https://www.openssl.org
Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.
diff --git a/ports/openssl/unix/CMakeLists.txt b/ports/openssl/unix/CMakeLists.txt
index 977017f8d..356044a34 100644
--- a/ports/openssl/unix/CMakeLists.txt
+++ b/ports/openssl/unix/CMakeLists.txt
@@ -119,6 +119,7 @@ endif()
foreach(lib ssl crypto)
foreach(ext ${LIB_EXTS})
list(APPEND INSTALL_LIBS "${BUILDDIR}/lib${lib}.${ext}")
+ list(APPEND INSTALL_PKG_CONFIGS "${BUILDDIR}/lib${lib}.pc")
endforeach()
foreach(ext ${BIN_EXTS})
# This might be wrong for targets which don't follow this naming scheme, but I'm not aware of any
@@ -207,4 +208,9 @@ install(
install(
FILES ${INSTALL_BINS}
DESTINATION bin
-) \ No newline at end of file
+)
+install(
+ FILES ${INSTALL_PKG_CONFIGS}
+ DESTINATION lib/pkgconfig
+)
+
diff --git a/ports/openssl/unix/portfile.cmake b/ports/openssl/unix/portfile.cmake
index 00f503f95..350cf4041 100644
--- a/ports/openssl/unix/portfile.cmake
+++ b/ports/openssl/unix/portfile.cmake
@@ -31,6 +31,7 @@ vcpkg_configure_cmake(
)
vcpkg_install_cmake()
+vcpkg_fixup_pkgconfig()
file(GLOB HEADERS ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*/include/openssl/*.h)
set(RESOLVED_HEADERS)