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-01-11 16:08:05 +08:00
set ( OPENSSL_VERSION 1.1.1i )
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-01-11 16:08:05 +08:00
S H A 5 1 2 f e 1 2 e 0 a b 9 e 1 6 8 8 f 2 4 d d 8 6 2 a c 6 3 3 d 0 a b 7 0 3 b 4 9 9 c 0 f 3 4 b 5 3 c 3 5 6 0 a a 0 d 3 8 7 9 d 8 1 d 6 4 7 a a 0 6 7 8 e d 5 1 7 d d a 5 e f b 2 7 1 1 f 6 6 9 f c b 1 a 1 e 0 e 2 4 f 6 e a c 2 e f c 2 c f 4 e a e 6 b 6 2 0 1 4 d 8
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}" )