Skip to content

Commit

Permalink
[openssl] install pkgconfig file (#15191)
Browse files Browse the repository at this point in the history
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
  • Loading branch information
Perlmint and JackBoosY authored Jan 8, 2021
1 parent 1a4c54f commit ddeef79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ports/openssl/CONTROL
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 7 additions & 1 deletion ports/openssl/unix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -207,4 +208,9 @@ install(
install(
FILES ${INSTALL_BINS}
DESTINATION bin
)
)
install(
FILES ${INSTALL_PKG_CONFIGS}
DESTINATION lib/pkgconfig
)

1 change: 1 addition & 0 deletions ports/openssl/unix/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ddeef79

Please sign in to comment.