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