2020-01-23 04:15:26 +08:00
vcpkg_fail_port_install ( MESSAGE "${PORT} is only for Windows Desktop" ON_TARGET "UWP" "Linux" "OSX" )
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" )
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
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
get_filename_component ( PERL_EXE_PATH ${ PERL } DIRECTORY )
2020-06-30 05:43:51 +08:00
vcpkg_add_to_path ( "${PERL_EXE_PATH}" )
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_download_distfile ( 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
)
[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 }
2018-07-18 07:07:52 +08:00
)
vcpkg_find_acquire_program ( NASM )
get_filename_component ( NASM_EXE_PATH ${ NASM } DIRECTORY )
2020-06-30 05:43:51 +08:00
vcpkg_add_to_path ( PREPEND "${NASM_EXE_PATH}" )
2018-07-18 07:07:52 +08:00
vcpkg_find_acquire_program ( JOM )
2020-01-14 07:43:36 +08:00
set ( OPENSSL_SHARED no-shared )
if ( VCPKG_LIBRARY_LINKAGE STREQUAL dynamic )
set ( OPENSSL_SHARED shared )
endif ( )
2018-07-18 07:07:52 +08:00
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
2020-06-30 05:43:51 +08:00
n o - t e s t s
2018-07-18 07:07:52 +08:00
- u t f - 8
2020-01-14 07:43:36 +08:00
$ { O P E N S S L _ S H A R E D }
2018-07-18 07:07:52 +08:00
)
if ( VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" )
set ( OPENSSL_ARCH VC-WIN32 )
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" )
set ( OPENSSL_ARCH VC-WIN64A )
2018-10-26 02:47:58 +08:00
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" )
2020-01-14 07:43:36 +08:00
set ( OPENSSL_ARCH VC-WIN32-ARM )
2019-04-10 15:46:42 +08:00
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64" )
2020-01-14 07:43:36 +08:00
set ( OPENSSL_ARCH VC-WIN64-ARM )
2018-07-18 07:07:52 +08:00
else ( )
message ( FATAL_ERROR "Unsupported target architecture: ${VCPKG_TARGET_ARCHITECTURE}" )
endif ( )
2020-01-14 07:43:36 +08:00
set ( OPENSSL_MAKEFILE "makefile" )
2018-07-18 07:07:52 +08:00
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 }
2020-01-23 04:15:26 +08:00
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 } - $ { V C P K G _ B U I L D _ T Y P E } - r e l
2018-10-04 14:09:42 +08:00
)
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 (
2020-04-08 15:44:01 +08:00
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 _ s w i n s t a l l _ s s l d i r s
2018-10-04 14:09:42 +08:00
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 }
2020-01-23 04:15:26 +08:00
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 } - $ { V C P K G _ B U I L D _ T Y P E } - d b g
2018-10-04 14:09:42 +08:00
)
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 (
2020-04-08 15:44:01 +08:00
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 _ s w i n s t a l l _ s s l d i r s
2018-10-04 14:09:42 +08:00
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
2020-01-14 07:43:36 +08:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /certs )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /private )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /lib/engines-1_1 )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/certs )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/lib/engines-1_1 )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/private )
2018-07-18 07:07:52 +08:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
2020-01-14 07:43:36 +08:00
2018-07-18 07:07:52 +08:00
file ( REMOVE
2020-01-14 07:43:36 +08:00
$ { C U R R E N T _ P A C K A G E S _ D I R } / c t _ l o g _ l i s t . c n f
$ { C U R R E N T _ P A C K A G E S _ D I R } / c t _ l o g _ l i s t . c n f . d i s t
$ { C U R R E N T _ P A C K A G E S _ D I R } / o p e n s s l . c n f . d i s t
2018-07-18 07:07:52 +08:00
$ { 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
2020-01-14 07:43:36 +08:00
$ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / c t _ l o g _ l i s t . c n f
$ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / c t _ l o g _ l i s t . c n f . d i s t
2018-07-18 07:07:52 +08:00
$ { 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
2020-01-14 07:43:36 +08:00
$ { 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 . d i s t
2018-07-18 07:07:52 +08:00
)
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 )