2020-11-04 14:59:02 +08:00
if ( EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h" )
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." )
endif ( )
2021-05-01 02:34:56 +08:00
set ( OPENSSL_VERSION 1.1.1k )
2020-11-04 14:59:02 +08:00
vcpkg_download_distfile ( ARCHIVE
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 " " 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 l d / 1 . 1 . 1 / 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 "
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 "
2021-05-01 02:34:56 +08:00
S H A 5 1 2 7 3 c d 0 4 2 d 4 0 5 6 5 8 5 e 5 a 9 d d 7 a b 6 8 e 7 c 7 3 1 0 a 3 a 4 c 7 8 3 e a f a 0 7 a b 0 b 5 6 0 e 7 4 6 2 b 9 2 4 e 4 3 7 6 4 3 6 a 6 d 3 8 a 1 5 5 c 6 8 7 f 6 9 4 2 a 8 8 1 c f c 0 c 1 b 9 3 9 4 a f c d e 1 d 8 c 4 6 b f 3 9 6 e 7 d 5 1 1 2 1
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" )
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" )
else ( )
include ( "${CMAKE_CURRENT_LIST_DIR}/unix/portfile.cmake" )
endif ( )
2020-12-12 09:40:21 +08:00
file ( INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" )