[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 )
message ( FATAL_ERROR "This port is only for building openssl on Windows Desktop" )
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
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
vcpkg_find_acquire_program ( PERL )
2018-07-18 07:07:52 +08:00
2019-06-29 08:32:12 +08:00
set ( OPENSSL_VERSION 1.0.2s )
2018-07-18 07:07:52 +08:00
get_filename_component ( PERL_EXE_PATH ${ PERL } DIRECTORY )
set ( ENV{PATH} "$ENV{PATH};${PERL_EXE_PATH}" )
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
vcpkg_download_distfile ( ARCHIVE
2018-07-18 07:07:52 +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 . 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
)
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
vcpkg_extract_source_archive_ex (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
A R C H I V E $ { A R C H I V E }
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 n a b l e W i n A R M 3 2 . 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
E n a b l e W i n A R M 6 4 . p a t c h
2018-07-18 07:07:52 +08:00
)
vcpkg_find_acquire_program ( NASM )
get_filename_component ( NASM_EXE_PATH ${ NASM } DIRECTORY )
set ( ENV{PATH} "${NASM_EXE_PATH};$ENV{PATH}" )
vcpkg_find_acquire_program ( JOM )
set ( CONFIGURE_COMMAND ${ PERL } Configure
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 - s s l 2
- u t f - 8
)
if ( VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" )
set ( OPENSSL_ARCH VC-WIN32 )
set ( OPENSSL_DO "ms\\do_nasm.bat" )
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" )
set ( OPENSSL_ARCH VC-WIN64A )
set ( OPENSSL_DO "ms\\do_win64a.bat" )
2018-10-26 02:47:58 +08:00
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" )
set ( OPENSSL_ARCH VC-WIN32 )
set ( OPENSSL_DO "ms\\do_ms.bat" )
set ( CONFIGURE_COMMAND ${ CONFIGURE_COMMAND }
n o - a s m
- D _ A R M _ W I N A P I _ P A R T I T I O N _ D E S K T O P _ S D K _ A V A I L A B L E
)
2019-04-10 15:46:42 +08:00
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64" )
set ( OPENSSL_ARCH VC-WIN32 )
set ( OPENSSL_DO "ms\\do_ms.bat" )
set ( CONFIGURE_COMMAND ${ CONFIGURE_COMMAND }
n o - a s m
- D _ A R M _ W I N A P I _ P A R T I T I O N _ D E S K T O P _ S D K _ A V A I L A B L E
)
2018-07-18 07:07:52 +08:00
else ( )
message ( FATAL_ERROR "Unsupported target architecture: ${VCPKG_TARGET_ARCHITECTURE}" )
endif ( )
if ( VCPKG_LIBRARY_LINKAGE STREQUAL dynamic )
set ( OPENSSL_MAKEFILE "ms\\ntdll.mak" )
else ( )
set ( OPENSSL_MAKEFILE "ms\\nt.mak" )
endif ( )
file ( REMOVE_RECURSE ${ CURRENT_BUILDTREES_DIR } / ${ TARGET_TRIPLET } -rel ${ CURRENT_BUILDTREES_DIR } / ${ TARGET_TRIPLET } -dbg )
2018-10-04 14:09:42 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
# Copy openssl sources.
message ( STATUS "Copying openssl release source files..." )
file ( GLOB OPENSSL_SOURCE_FILES ${ SOURCE_PATH } /* )
foreach ( SOURCE_FILE ${ OPENSSL_SOURCE_FILES } )
file ( COPY ${ SOURCE_FILE } DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel" )
endforeach ( )
message ( STATUS "Copying openssl release source files... done" )
set ( SOURCE_PATH_RELEASE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel" )
2018-10-04 14:09:42 +08:00
set ( OPENSSLDIR_RELEASE ${ CURRENT_PACKAGES_DIR } )
message ( STATUS "Configure ${TARGET_TRIPLET}-rel" )
vcpkg_execute_required_process (
C O M M A N D $ { C O N F I G U R E _ C O M M A N D } $ { O P E N S S L _ A R C H } " - - p r e f i x = $ { O P E N S S L D I R _ R E L E A S E } " " - - o p e n s s l d i r = $ { O P E N S S L D I R _ R E L E A S E } " - F S
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H _ R E L E A S E }
L O G N A M E c o n f i g u r e - p e r l - $ { T A R G E T _ T R I P L E T } - $ { C M A K E _ B U I L D _ T Y P E } - r e l
)
vcpkg_execute_required_process (
C O M M A N D $ { O P E N S S L _ D O }
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H _ R E L E A S E }
L O G N A M E c o n f i g u r e - d o - $ { T A R G E T _ T R I P L E T } - $ { C M A K E _ B U I L D _ T Y P E } - r e l
)
message ( STATUS "Configure ${TARGET_TRIPLET}-rel done" )
message ( STATUS "Build ${TARGET_TRIPLET}-rel" )
# Openssl's buildsystem has a race condition which will cause JOM to fail at some point.
# This is ok; we just do as much work as we can in parallel first, then follow up with a single-threaded build.
make_directory ( ${ SOURCE_PATH_RELEASE } /inc32/openssl )
execute_process (
C O M M A N D $ { J O M } - k - j $ E N V { N U M B E R _ O F _ P R O C E S S O R S } - f $ { O P E N S S L _ M A K E F I L E }
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H _ R E L E A S E }
O U T P U T _ F I L E $ { C U R R E N T _ B U I L D T R E E S _ D I R } / b u i l d - $ { T A R G E T _ T R I P L E T } - r e l - 0 - o u t . l o g
E R R O R _ F I L E $ { C U R R E N T _ B U I L D T R E E S _ D I R } / b u i l d - $ { T A R G E T _ T R I P L E T } - r e l - 0 - e r r . l o g
)
vcpkg_execute_required_process (
C O M M A N D n m a k e - f $ { O P E N S S L _ M A K E F I L E } i n s t a l l
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H _ R E L E A S E }
L O G N A M E b u i l d - $ { T A R G E T _ T R I P L E T } - r e l - 1 )
message ( STATUS "Build ${TARGET_TRIPLET}-rel done" )
endif ( )
2018-07-18 07:07:52 +08:00
2018-10-04 14:09:42 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
# Copy openssl sources.
message ( STATUS "Copying openssl debug source files..." )
file ( GLOB OPENSSL_SOURCE_FILES ${ SOURCE_PATH } /* )
foreach ( SOURCE_FILE ${ OPENSSL_SOURCE_FILES } )
file ( COPY ${ SOURCE_FILE } DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg" )
endforeach ( )
message ( STATUS "Copying openssl debug source files... done" )
set ( SOURCE_PATH_DEBUG "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg" )
2018-10-04 14:09:42 +08:00
set ( OPENSSLDIR_DEBUG ${ CURRENT_PACKAGES_DIR } /debug )
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
message ( STATUS "Configure ${TARGET_TRIPLET}-dbg" )
2018-10-04 14:09:42 +08:00
vcpkg_execute_required_process (
C O M M A N D $ { C O N F I G U R E _ C O M M A N D } d e b u g - $ { O P E N S S L _ A R C H } " - - p r e f i x = $ { O P E N S S L D I R _ D E B U G } " " - - o p e n s s l d i r = $ { O P E N S S L D I R _ D E B U G } " - F S
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H _ D E B U G }
L O G N A M E c o n f i g u r e - p e r l - $ { T A R G E T _ T R I P L E T } - $ { C M A K E _ B U I L D _ T Y P E } - d b g
)
vcpkg_execute_required_process (
C O M M A N D $ { O P E N S S L _ D O }
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H _ D E B U G }
L O G N A M E c o n f i g u r e - d o - $ { T A R G E T _ T R I P L E T } - $ { C M A K E _ B U I L D _ T Y P E } - d b g
)
message ( STATUS "Configure ${TARGET_TRIPLET}-dbg done" )
message ( STATUS "Build ${TARGET_TRIPLET}-dbg" )
make_directory ( ${ SOURCE_PATH_DEBUG } /inc32/openssl )
execute_process (
C O M M A N D $ { J O M } - k - j $ E N V { N U M B E R _ O F _ P R O C E S S O R S } - f $ { O P E N S S L _ M A K E F I L E }
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H _ D E B U G }
O U T P U T _ F I L E $ { C U R R E N T _ B U I L D T R E E S _ D I R } / b u i l d - $ { T A R G E T _ T R I P L E T } - d b g - 0 - o u t . l o g
E R R O R _ F I L E $ { C U R R E N T _ B U I L D T R E E S _ D I R } / b u i l d - $ { T A R G E T _ T R I P L E T } - d b g - 0 - e r r . l o g
)
vcpkg_execute_required_process (
C O M M A N D n m a k e - f $ { O P E N S S L _ M A K E F I L E } i n s t a l l
W O R K I N G _ D I R E C T O R Y $ { S O U R C E _ P A T H _ D E B U G }
L O G N A M E b u i l d - $ { T A R G E T _ T R I P L E T } - d b g - 1 )
message ( STATUS "Build ${TARGET_TRIPLET}-dbg done" )
endif ( )
2018-07-18 07:07:52 +08:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
file ( REMOVE
$ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / b i n / o p e n s s l . e x e
$ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / o p e n s s l . c n f
)
file ( MAKE_DIRECTORY ${ CURRENT_PACKAGES_DIR } /tools/openssl/ )
file ( RENAME ${ CURRENT_PACKAGES_DIR } /bin/openssl.exe ${ CURRENT_PACKAGES_DIR } /tools/openssl/openssl.exe )
2019-10-09 01:25:43 +08:00
file ( RENAME ${ CURRENT_PACKAGES_DIR } /openssl.cnf ${ CURRENT_PACKAGES_DIR } /tools/openssl/openssl.cnf )
2018-07-18 07:07:52 +08:00
vcpkg_copy_tool_dependencies ( ${ CURRENT_PACKAGES_DIR } /tools/openssl )
if ( VCPKG_LIBRARY_LINKAGE STREQUAL static )
# They should be empty, only the exes deleted above were in these directories
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/bin/ )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /bin/ )
endif ( )
file ( READ "${CURRENT_PACKAGES_DIR}/include/openssl/dtls1.h" _contents )
string ( REPLACE "<winsock.h>" "<winsock2.h>" _contents "${_contents}" )
file ( WRITE "${CURRENT_PACKAGES_DIR}/include/openssl/dtls1.h" "${_contents}" )
file ( READ "${CURRENT_PACKAGES_DIR}/include/openssl/rand.h" _contents )
string ( REPLACE "# include <windows.h>" "#ifndef _WINSOCKAPI_\n#define _WINSOCKAPI_\n#endif\n# include <windows.h>" _contents "${_contents}" )
file ( WRITE "${CURRENT_PACKAGES_DIR}/include/openssl/rand.h" "${_contents}" )
vcpkg_copy_pdbs ( )
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /usage DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } )
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
file ( INSTALL ${ SOURCE_PATH } /LICENSE DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } RENAME copyright )
2018-08-31 08:07:14 +08:00
vcpkg_test_cmake ( PACKAGE_NAME OpenSSL MODULE )