2020-08-02 12:22:54 +08:00
if ( NOT VCPKG_TARGET_IS_MINGW )
vcpkg_fail_port_install ( MESSAGE "${PORT} is only for openssl on Unix-like systems" ON_TARGET "UWP" "Windows" )
endif ( )
2018-07-18 07:07:52 +08:00
[many ports] improvements for linux/wsl (#6730)
* [many ports] improve compatibility with WSL and mixed case filesystems
* [treehopper] express dependency on libusb, which was not working on non-win32 platforms and is still broken there
* [libharu] add compatibility with non-win32 platforms
* [geogram] fix openblas on linux
[clapack] better integration with linux environment
[visit-struct] put cmake config file in the expected folder
[geogram] remove trailing underscore to enable compatibility with OpenBLAS
* [openblas] playing with underscore, without success
* [openblas/lapack] fix library integration
* [clapack] improve target handling in cmake module
* [openblas] promote self-generated config to default cmake module, otherwise internal ones thinks wrongly that openblas can also solve lapack libs
* [clapack,openblas] improve libraries integration
* [many ports] fix cmake unnecessary target paths, wrong config paths, empty default dependencies, unnecessary [core] tags
* [suitesparse] improve integration with new lapack/openblas mechanism
* [suitesparse] add no underscore postfix also for linux
* [ceres] fix integration with newer openblas/lapack configs
* [aws-c-event-stream] fix regression
* [systemc] fix regression
* [libwebp,geogram] trigger rebuild
* [libwebp,pthread4w] fix regressions
* [glbinding] fix cmake module installation
* [globjects] disentangle unnecessary dependency from qt5
* [jasper] remove broken and unnecessary patches
* [libwebp] fix regression
* [many ports] avoid using BUILD_SHARED_LIBS which is uninitialized in port files
* [clapack] correctly find dlls
* [clapack] use a generic blas as dependency
* [fizz,g2o] restore expected version
* fix mistake
* [many ports] remove WIN32, APPLE and UNIX (again, they keep creeping in) from ports since they are broken and usually break non-win32 ports
* [libressl,openssl] do not try to build one if the other is already installed
* [itk] update ref and patch to avoid regression
* [libressl,openssl] implement full strategy to fix CI
* [libwebp] disable components that are broken on macOS
* [ogre] enable macOS build
* [freeimage,jxrlib,ogre,openexr,protobuf] port patches from #5169
* [ogre] add missing install command
* [ffmpeg] enable wrapper for cmake module
* [ffmpeg] add avresample module finder
* [ffmpeg] improve module detection and exported symbols
* [ffmpeg] add variables to cache
* [thrift] remove unnecessary build option
* [allegro5] fix shared/static inversion
* [protobuf] cleanup
* [libressl] cleanup
* [moos-core] cleanup
* commented features must not be separated from other features, otherwise vcpkg complains
* [itk] fix regression
* [shogun,itk] fix regressions
* [ogre] fix regression
* [opusfile] add compatibility with non-win32
* [itk] fix regression
* [sndfile,libsndfile] remove duplicate, redirect sndfile to libsndfile
* add missing dependencies
* [ismrmrd] fix regression
* [ffmpeg] trigger rebuild
* [clapack,openblas,libogg] fix regressions on macOS
* [libtins] fix regression
* force rebuild windows regressions, unable to reproduce locally
* [mosquitto] enable non-win32 builds
* [json-dto] force rebuild, unable to reproduce regression locally
* [many ports] uniform naming and path length requests
* fix regression
* fix regression
* [ffmpeg] fixes for downstream projects
* clean up - thanks to reviewers
* trigger rebuild of regressions on macOS
* trigger rebuild of regressions on macOS - part2
* Add core back
* Use VCPKG_CONCURRENCY
* Add core back to suitesparse
* Add core back to curl
* Add core back to magnum
* Add core back to magnum
* Add core back to magnum
* Add core back to cgal
2019-06-21 10:11:54 +08:00
if ( EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h" )
2020-08-19 07:49:57 +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." )
[many ports] improvements for linux/wsl (#6730)
* [many ports] improve compatibility with WSL and mixed case filesystems
* [treehopper] express dependency on libusb, which was not working on non-win32 platforms and is still broken there
* [libharu] add compatibility with non-win32 platforms
* [geogram] fix openblas on linux
[clapack] better integration with linux environment
[visit-struct] put cmake config file in the expected folder
[geogram] remove trailing underscore to enable compatibility with OpenBLAS
* [openblas] playing with underscore, without success
* [openblas/lapack] fix library integration
* [clapack] improve target handling in cmake module
* [openblas] promote self-generated config to default cmake module, otherwise internal ones thinks wrongly that openblas can also solve lapack libs
* [clapack,openblas] improve libraries integration
* [many ports] fix cmake unnecessary target paths, wrong config paths, empty default dependencies, unnecessary [core] tags
* [suitesparse] improve integration with new lapack/openblas mechanism
* [suitesparse] add no underscore postfix also for linux
* [ceres] fix integration with newer openblas/lapack configs
* [aws-c-event-stream] fix regression
* [systemc] fix regression
* [libwebp,geogram] trigger rebuild
* [libwebp,pthread4w] fix regressions
* [glbinding] fix cmake module installation
* [globjects] disentangle unnecessary dependency from qt5
* [jasper] remove broken and unnecessary patches
* [libwebp] fix regression
* [many ports] avoid using BUILD_SHARED_LIBS which is uninitialized in port files
* [clapack] correctly find dlls
* [clapack] use a generic blas as dependency
* [fizz,g2o] restore expected version
* fix mistake
* [many ports] remove WIN32, APPLE and UNIX (again, they keep creeping in) from ports since they are broken and usually break non-win32 ports
* [libressl,openssl] do not try to build one if the other is already installed
* [itk] update ref and patch to avoid regression
* [libressl,openssl] implement full strategy to fix CI
* [libwebp] disable components that are broken on macOS
* [ogre] enable macOS build
* [freeimage,jxrlib,ogre,openexr,protobuf] port patches from #5169
* [ogre] add missing install command
* [ffmpeg] enable wrapper for cmake module
* [ffmpeg] add avresample module finder
* [ffmpeg] improve module detection and exported symbols
* [ffmpeg] add variables to cache
* [thrift] remove unnecessary build option
* [allegro5] fix shared/static inversion
* [protobuf] cleanup
* [libressl] cleanup
* [moos-core] cleanup
* commented features must not be separated from other features, otherwise vcpkg complains
* [itk] fix regression
* [shogun,itk] fix regressions
* [ogre] fix regression
* [opusfile] add compatibility with non-win32
* [itk] fix regression
* [sndfile,libsndfile] remove duplicate, redirect sndfile to libsndfile
* add missing dependencies
* [ismrmrd] fix regression
* [ffmpeg] trigger rebuild
* [clapack,openblas,libogg] fix regressions on macOS
* [libtins] fix regression
* force rebuild windows regressions, unable to reproduce locally
* [mosquitto] enable non-win32 builds
* [json-dto] force rebuild, unable to reproduce regression locally
* [many ports] uniform naming and path length requests
* fix regression
* fix regression
* [ffmpeg] fixes for downstream projects
* clean up - thanks to reviewers
* trigger rebuild of regressions on macOS
* trigger rebuild of regressions on macOS - part2
* Add core back
* Use VCPKG_CONCURRENCY
* Add core back to suitesparse
* Add core back to curl
* Add core back to magnum
* Add core back to magnum
* Add core back to magnum
* Add core back to cgal
2019-06-21 10:11:54 +08:00
endif ( )
2018-07-18 07:07:52 +08:00
vcpkg_find_acquire_program ( PERL )
2020-06-30 05:43:51 +08:00
set ( OPENSSL_VERSION 1.1.1g )
2019-06-29 08:32:12 +08:00
2018-07-18 07:07:52 +08:00
vcpkg_download_distfile ( OPENSSL_SOURCE_ARCHIVE
2020-01-14 07:43:36 +08:00
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 "
2018-07-18 07:07:52 +08:00
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 "
2020-06-30 05:43:51 +08:00
S H A 5 1 2 0 1 e 3 d 0 b 1 b c e e e d 8 f b 0 6 6 f 5 4 2 e f 5 4 8 0 8 6 2 0 0 1 5 5 6 e 0 f 6 1 2 e 0 1 7 4 4 2 3 3 0 b b d 7 e 5 f a e e 2 2 8 b 2 d e 3 5 1 3 d 7 f c 3 4 7 4 4 6 b 7 f 2 1 7 e 2 7 d e 1 0 0 3 d c 9 d 7 2 1 4 d 5 8 3 3 b 9 7 5 9 3 f 3 e c 2 5 a b
2018-07-18 07:07:52 +08:00
)
2018-10-26 02:44:43 +08:00
vcpkg_extract_source_archive_ex (
O U T _ S O U R C E _ P A T H M A S T E R _ C O P Y _ S O U R C E _ P A T H
A R C H I V E $ { O P E N S S L _ S O U R C E _ A R C H I V E }
R E F $ { O P E N S S L _ V E R S I O N }
2018-07-18 07:07:52 +08:00
)
if ( CMAKE_HOST_WIN32 )
2020-06-11 16:13:48 +08:00
vcpkg_acquire_msys ( MSYS_ROOT PACKAGES make perl )
2018-07-18 07:07:52 +08:00
set ( BASH ${ MSYS_ROOT } /usr/bin/bash.exe )
set ( MAKE ${ MSYS_ROOT } /usr/bin/make.exe )
2020-06-11 16:13:48 +08:00
set ( PERL ${ MSYS_ROOT } /usr/bin/perl.exe )
2018-07-18 07:07:52 +08:00
else ( )
find_program ( MAKE make )
if ( NOT MAKE )
message ( FATAL_ERROR "Could not find make. Please install it through your package manager." )
endif ( )
endif ( )
vcpkg_configure_cmake (
S O U R C E _ P A T H $ { C M A K E _ C U R R E N T _ L I S T _ D I R }
P R E F E R _ N I N J A
O P T I O N S
- D S O U R C E _ P A T H = $ { M A S T E R _ C O P Y _ S O U R C E _ P A T H }
- D P E R L = $ { P E R L }
- D M A K E = $ { M A K E }
O P T I O N S _ R E L E A S E
- D I N S T A L L _ H E A D E R S = O N
)
vcpkg_install_cmake ( )
file ( GLOB HEADERS ${ CURRENT_BUILDTREES_DIR } / ${ TARGET_TRIPLET } -rel/*/include/openssl/*.h )
set ( RESOLVED_HEADERS )
foreach ( HEADER ${ HEADERS } )
get_filename_component ( X "${HEADER}" REALPATH )
list ( APPEND RESOLVED_HEADERS "${X}" )
endforeach ( )
file ( INSTALL ${ RESOLVED_HEADERS } DESTINATION ${ CURRENT_PACKAGES_DIR } /include/openssl )
2020-06-30 05:43:51 +08:00
file ( INSTALL ${ MASTER_COPY_SOURCE_PATH } /LICENSE DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } RENAME copyright )
2018-07-18 07:07:52 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /vcpkg-cmake-wrapper.cmake DESTINATION ${ CURRENT_PACKAGES_DIR } /share/openssl )
endif ( )