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 ( )
2023-03-01 03:20:45 +08:00
if ( VCPKG_TARGET_IS_EMSCRIPTEN )
vcpkg_check_linkage ( ONLY_STATIC_LIBRARY )
2022-04-07 22:48:06 +08:00
endif ( )
2024-09-11 04:45:18 +08:00
vcpkg_download_distfile ( PATCH_FIX_BUILD_WITH_OLD_PERL
U R L S h t t p s : / / g i t h u b . c o m / o p e n s s l / o p e n s s l / c o m m i t / 2 1 0 d c 9 a 5 0 d f d 9 9 c a a 1 c f 7 c 3 d 2 f a 4 2 8 5 0 1 2 4 b 1 b b c . p a t c h ? f u l l _ i n d e x = 1
S H A 5 1 2 6 2 f 6 9 f 0 e 2 6 6 4 d c 3 b 6 a 3 0 9 0 a 3 b 2 e 1 4 2 d 5 0 b 1 4 4 6 7 f 0 e 8 6 2 7 8 4 d 9 e 3 0 6 a 5 0 3 d 4 c 3 4 e 7 7 c d 5 4 6 d 3 a 0 4 d c f 1 b 0 5 9 e 8 3 0 0 6 4 6 b 8 b a 5 1 6 8 5 7 9 a 0 f 2 a 3 3 c f a 9 c f f c b f d 4 f 3 0 9 e 7
F I L E N A M E o p e n s s l - o p e n s s l - 2 1 0 d c 9 a 5 0 d f d 9 9 c a a 1 c f 7 c 3 d 2 f a 4 2 8 5 0 1 2 4 b 1 b b c . p a t c h
)
2022-06-30 05:38:17 +08:00
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
2022-11-12 06:12:15 +08:00
R E F " o p e n s s l - $ { V E R S I O N } "
2024-09-09 02:50:08 +08:00
S H A 5 1 2 c 6 c 1 5 2 f a 3 e b 0 6 c 8 d c d 4 d e 9 f c c f d 4 2 1 6 5 b a 9 8 7 1 5 c c 5 6 0 4 5 4 9 3 0 7 0 9 5 5 4 b c b 0 6 0 d b 5 a 8 4 6 5 b 7 0 e e 1 d 5 3 e 6 d f 6 d d c 8 5 5 0 7 f 6 6 d a 7 4 5 b 1 f 2 e 2 f a e 9 6 0 5 d 8 0 8 e a 8 6 1 d 8 f 5 7 d
2022-11-12 06:12:15 +08:00
P A T C H E S
2024-04-16 02:18:29 +08:00
c m a k e - c o n f i g . p a t c h
2024-03-21 02:29:20 +08:00
c o m m a n d - l i n e - l e n g t h . p a t c h
2023-03-01 03:20:45 +08:00
s c r i p t - p r e f i x . p a t c h
2024-06-29 05:51:23 +08:00
a s m - a r m c a p . p a t c h
2022-11-12 06:12:15 +08:00
w i n d o w s / i n s t a l l - l a y o u t . p a t c h
w i n d o w s / i n s t a l l - p d b s . p a t c h
2023-03-15 05:11:06 +08:00
u n i x / a n d r o i d - c c . p a t c h
2023-03-01 03:20:45 +08:00
u n i x / m o v e - o p e n s s l d i r . p a t c h
u n i x / n o - e m p t y - d i r s . p a t c h
u n i x / n o - s t a t i c - l i b s - f o r - s h a r e d . p a t c h
2024-09-11 04:45:18 +08:00
" $ { P A T C H _ F I X _ B U I L D _ W I T H _ O L D _ P E R L } "
2023-03-01 03:20:45 +08:00
)
vcpkg_list ( SET CONFIGURE_OPTIONS
e n a b l e - s t a t i c - e n g i n e
e n a b l e - c a p i e n g
n o - t e s t s
2023-12-20 08:31:02 +08:00
n o - d o c s
2020-11-04 14:59:02 +08:00
)
2023-04-22 06:02:05 +08:00
set ( INSTALL_FIPS "" )
if ( "fips" IN_LIST FEATURES )
vcpkg_list ( APPEND INSTALL_FIPS install_fips )
vcpkg_list ( APPEND CONFIGURE_OPTIONS enable-fips )
endif ( )
2023-03-01 03:20:45 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" )
vcpkg_list ( APPEND CONFIGURE_OPTIONS shared )
else ( )
vcpkg_list ( APPEND CONFIGURE_OPTIONS no-shared no-module )
endif ( )
2023-03-15 05:11:06 +08:00
if ( NOT "tools" IN_LIST FEATURES )
vcpkg_list ( APPEND CONFIGURE_OPTIONS no-apps )
endif ( )
2023-12-22 03:17:20 +08:00
if ( "weak-ssl-ciphers" IN_LIST FEATURES )
vcpkg_list ( APPEND CONFIGURE_OPTIONS enable-weak-ssl-ciphers )
endif ( )
if ( "ssl3" IN_LIST FEATURES )
vcpkg_list ( APPEND CONFIGURE_OPTIONS enable-ssl3 )
vcpkg_list ( APPEND CONFIGURE_OPTIONS enable-ssl3-method )
endif ( )
2023-03-01 03:20:45 +08:00
if ( DEFINED OPENSSL_USE_NOPINSHARED )
vcpkg_list ( APPEND CONFIGURE_OPTIONS no-pinshared )
endif ( )
if ( OPENSSL_NO_AUTOLOAD_CONFIG )
vcpkg_list ( APPEND CONFIGURE_OPTIONS no-autoload-config )
endif ( )
2020-11-04 14:59:02 +08:00
2022-11-12 06:12:15 +08:00
if ( 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 ( )
2020-12-12 09:40:21 +08:00
file ( INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" )
2024-05-14 03:50:35 +08:00
if ( NOT "${VERSION}" MATCHES [[^([0-9]+ ) \ . ( [ 0 - 9 ] + ) \ . ( [ 0 - 9 ] + ) $ ] ] )
message ( FATAL_ERROR "Version regex did not match." )
endif ( )
set ( OPENSSL_VERSION_MAJOR "${CMAKE_MATCH_1}" )
set ( OPENSSL_VERSION_MINOR "${CMAKE_MATCH_2}" )
set ( OPENSSL_VERSION_FIX "${CMAKE_MATCH_3}" )
configure_file ( "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY )
2023-08-04 21:55:10 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/LICENSE.txt" )