2022-04-07 02:04:46 +08:00
if ( EXISTS "${CURRENT_INSTALLED_DIR}/share/libressl/copyright"
O R E X I S T S " $ { C U R R E N T _ I N S T A L L E D _ D I R } / s h a r e / b o r i n g s s l / c o p y r i g h t " )
2022-01-08 02:22:37 +08:00
message ( FATAL_ERROR "Can't build openssl if libressl/boringssl is installed. Please remove libressl/boringssl, and try install openssl again if you need it." )
2020-11-04 14:59:02 +08:00
endif ( )
2022-04-07 02:04:46 +08:00
set ( OPENSSL_VERSION 3.0.2 )
2022-01-08 02:22:37 +08:00
vcpkg_download_distfile (
A R C H I V E
2022-04-07 02:04:46 +08:00
U R L S " h t t p s : / / w w w . o p e n s s l . o r g / s o u r c e / o p e n s s l - $ { O P E N S S L _ V E R S I O N } . t a r . g z "
2020-11-04 14:59:02 +08:00
F I L E N A M E " o p e n s s l - $ { O P E N S S L _ V E R S I O N } . t a r . g z "
2022-04-07 02:04:46 +08:00
S H A 5 1 2 f 9 8 6 8 5 0 d 5 b e 9 0 8 b 4 d 6 b 5 f d 7 0 9 1 b c 4 6 5 2 d 7 3 7 8 c 9 b c c e b f b c 5 b e c d 7 7 5 3 8 4 3 c 0 4 c 1 e b 6 1 a 1 7 4 9 c 4 3 2 1 3 9 d 2 6 3 d f a c 3 3 d f 0 b 1 f 6 c 7 7 3 6 6 4 b 4 8 5 c a d 4 7 5 4 2 2 6 6 8 2 3 a 4 e b 0 3
2020-11-04 14:59:02 +08:00
)
vcpkg_find_acquire_program ( PERL )
get_filename_component ( PERL_EXE_PATH ${ PERL } DIRECTORY )
vcpkg_add_to_path ( "${PERL_EXE_PATH}" )
if ( VCPKG_TARGET_IS_UWP )
include ( "${CMAKE_CURRENT_LIST_DIR}/uwp/portfile.cmake" )
2021-10-27 13:48:21 +08:00
include ( "${CMAKE_CURRENT_LIST_DIR}/install-pc-files.cmake" )
2020-11-10 07:21:03 +08:00
elseif ( VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW )
2020-11-04 14:59:02 +08:00
include ( "${CMAKE_CURRENT_LIST_DIR}/windows/portfile.cmake" )
2021-10-27 13:48:21 +08:00
include ( "${CMAKE_CURRENT_LIST_DIR}/install-pc-files.cmake" )
2020-11-04 14:59:02 +08:00
else ( )
include ( "${CMAKE_CURRENT_LIST_DIR}/unix/portfile.cmake" )
endif ( )
2021-07-23 13:11:45 +08:00
configure_file ( "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY )
2020-12-12 09:40:21 +08:00
file ( INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" )