2020-06-12 02:13:09 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "Windows" "UWP")
|
2019-08-01 05:47:59 +08:00
|
|
|
|
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
|
2021-04-08 04:00:12 +08:00
|
|
|
set(OpenMPI_FULL_VERSION "4.1.0")
|
|
|
|
set(OpenMPI_SHORT_VERSION "4.1")
|
2019-08-01 05:47:59 +08:00
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://download.open-mpi.org/release/open-mpi/v${OpenMPI_SHORT_VERSION}/openmpi-${OpenMPI_FULL_VERSION}.tar.gz"
|
|
|
|
FILENAME "openmpi-${OpenMPI_FULL_VERSION}.tar.gz"
|
2021-04-08 04:00:12 +08:00
|
|
|
SHA512 1f8117b11c5279d34194b4f5652b0223cf1258a4ac0efd40bab78f31f203068e027235a92a87e546b1b35c5b369bc90788b109c05a7068c75533a03649410e99
|
2019-08-01 05:47:59 +08:00
|
|
|
)
|
|
|
|
|
2020-06-12 02:13:09 +08:00
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
2021-04-08 04:00:12 +08:00
|
|
|
PATCHES
|
2021-09-24 08:54:30 +08:00
|
|
|
keep_isystem.patch
|
2020-06-12 02:13:09 +08:00
|
|
|
)
|
2019-08-01 05:47:59 +08:00
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PERL)
|
|
|
|
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
|
|
|
vcpkg_add_to_path(${PERL_PATH})
|
|
|
|
|
2020-06-12 02:13:09 +08:00
|
|
|
vcpkg_configure_make(
|
2020-08-14 04:32:55 +08:00
|
|
|
COPY_SOURCE
|
2020-06-12 02:13:09 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
--with-hwloc=internal
|
|
|
|
--with-libevent=internal
|
2021-09-24 08:54:30 +08:00
|
|
|
--disable-mpi-fortran
|
2020-06-12 02:13:09 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
--enable-debug
|
|
|
|
)
|
2019-08-01 05:47:59 +08:00
|
|
|
|
2020-08-20 12:15:24 +08:00
|
|
|
vcpkg_install_make(DISABLE_PARALLEL)
|
2019-08-01 05:47:59 +08:00
|
|
|
|
2020-06-12 02:13:09 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-08-01 05:47:59 +08:00
|
|
|
|
2021-09-24 08:54:30 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|