[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
include ( vcpkg_common_functions )
2018-07-18 07:07:52 +08:00
if ( VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME )
message ( FATAL_ERROR "This port is only for openssl on Unix-like systems" )
endif ( )
[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" )
message ( WARNING "Can't build openssl if libressl is installed. Please remove libressl, and try install openssl again if you need it. Build will continue but there might be problems since libressl is only a subset of openssl" )
set ( VCPKG_POLICY_EMPTY_PACKAGE enabled )
return ( )
endif ( )
2018-07-18 07:07:52 +08:00
vcpkg_find_acquire_program ( PERL )
2019-06-29 08:32:12 +08:00
set ( OPENSSL_VERSION 1.0.2s )
2018-07-18 07:07:52 +08:00
vcpkg_download_distfile ( OPENSSL_SOURCE_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 . 0 . 2 / 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 "
2019-06-11 16:57:10 +08:00
S H A 5 1 2 9 f 7 4 5 4 5 2 c 4 f 7 7 7 d f 6 9 4 1 5 8 e 9 5 0 0 3 c d e 7 8 a 2 c f 8 1 9 9 b c 4 8 1 a 5 6 3 e c 3 6 6 4 4 6 6 4 c 3 c 1 4 1 5 a 7 7 4 7 7 9 b 9 7 9 1 d d 1 8 f 2 a e b 5 7 f a 1 7 2 1 c b 5 2 b 3 d b 1 2 d 0 2 5 9 5 5 e 9 7 0 0 7 1 d 5 b 6 6 d 2 a
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 }
P A T C H E S
C o n f i g u r e I n c l u d e Q u o t e s F i x . p a t c h
S T R I N G I F Y P a t c h . p a t c h
E m b e d S y m b o l s I n S t a t i c L i b s Z 7 . p a t c h
2018-07-18 07:07:52 +08:00
)
if ( CMAKE_HOST_WIN32 )
vcpkg_acquire_msys ( MSYS_ROOT PACKAGES make )
set ( BASH ${ MSYS_ROOT } /usr/bin/bash.exe )
set ( MAKE ${ MSYS_ROOT } /usr/bin/make.exe )
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 )
file ( INSTALL ${ MASTER_COPY_SOURCE_PATH } /LICENSE DESTINATION ${ CURRENT_PACKAGES_DIR } /share/openssl-unix RENAME copyright )
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /vcpkg-cmake-wrapper.cmake DESTINATION ${ CURRENT_PACKAGES_DIR } /share/openssl )
endif ( )
2018-08-31 08:07:14 +08:00
vcpkg_test_cmake ( PACKAGE_NAME OpenSSL MODULE )