-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[openssl] Fix exported config #20831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| function(install_pc_file name pc_data) | ||
| if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") | ||
| configure_file("${CMAKE_CURRENT_LIST_DIR}/openssl.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${name}.pc" @ONLY) | ||
| endif() | ||
| if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") | ||
| configure_file("${CMAKE_CURRENT_LIST_DIR}/openssl.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${name}.pc" @ONLY) | ||
| endif() | ||
| endfunction() | ||
|
|
||
| install_pc_file(openssl [[ | ||
| Name: OpenSSL | ||
| Description: Secure Sockets Layer and cryptography libraries and tools | ||
| Requires: libssl libcrypto | ||
| ]]) | ||
|
|
||
| install_pc_file(libssl [[ | ||
| Name: OpenSSL-libssl | ||
| Description: Secure Sockets Layer and cryptography libraries | ||
| Libs: -L"${libdir}" -llibssl | ||
| Requires: libcrypto | ||
| Cflags: -I"${includedir}" | ||
| ]]) | ||
|
|
||
| install_pc_file(libcrypto [[ | ||
| Name: OpenSSL-libcrypto | ||
| Description: OpenSSL cryptography library | ||
| Libs: -L"${libdir}" -llibcrypto | ||
| Libs.private: -lcrypt32 -lws2_32 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't MinGW need these too?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mingw already gets pc files, as it is using the unix branch of the port. But my change for windows is based on consuming ports. |
||
| Cflags: -I"${includedir}" | ||
| ]]) | ||
|
|
||
| vcpkg_fixup_pkgconfig() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| prefix=${pcfiledir}/../.. | ||
| exec_prefix=${prefix} | ||
| libdir=${exec_prefix}/lib | ||
| includedir=${prefix}/include | ||
| Version: @OPENSSL_VERSION@ | ||
| @pc_data@ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "name": "openssl", | ||
| "version-string": "1.1.1l", | ||
| "port-version": 2, | ||
| "port-version": 3, | ||
| "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.", | ||
| "homepage": "https://www.openssl.org" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.