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 22:48:06 +08:00
if ( VCPKG_TARGET_IS_LINUX )
message ( WARNING
[ [ o p e n s s l c u r r e n t l y r e q u i r e s t h e f o l l o w i n g l i b r a r y f r o m t h e s y s t e m p a c k a g e m a n a g e r :
l i n u x - h e a d e r s
I t c a n b e i n s t a l l e d o n a l p i n e s y s t e m s v i a a p k a d d l i n u x - h e a d e r s . ] ]
)
endif ( )
2022-06-30 05:38:17 +08:00
set ( OPENSSL_VERSION 3.0.4 )
2022-04-07 22:48:06 +08:00
2022-06-30 05:38:17 +08:00
if ( VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP )
set ( OPENSSL_PATCHES "${CMAKE_CURRENT_LIST_DIR}/windows/flags.patch" )
endif ( )
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O o p e n s s l / o p e n s s l
R E F o p e n s s l - $ { O P E N S S L _ V E R S I O N }
S H A 5 1 2 c 5 8 b 4 3 9 a d d b f c 0 9 0 1 c b 8 d 9 9 0 3 6 4 9 4 b a c 6 0 d 2 4 a 4 3 1 1 8 1 5 b 9 b 7 a 5 5 9 f 5 d a a a 0 2 7 d 4 b 8 3 e 4 9 e 2 e b 5 2 6 f 0 5 5 2 e c 5 3 f 0 9 b e 8 9 0 8 1 a 0 8 c 2 0 b 8 b 6 f 2 0 a 2 4 6 3 0 8 1 c d b 0 7 1 d 6 f a f
P A T C H E S $ { O P E N S S L _ P A T C H E S }
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}" )