2017-07-06 04:04:17 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO tbeu/matio
|
2022-05-18 02:15:06 +08:00
|
|
|
REF e9e063e08ef2a27fcc22b1e526258fea5a5de329 # v1.5.23
|
|
|
|
SHA512 78b13f4796870158f5cf2b8234c0ab6dc8b449cba49608ce40c51a3f91994c33c29b8a6de1ceed94a81fc7faa798d8c3a45a275f3a3abba70a0cd7be731e1d9c
|
2017-07-06 04:04:17 +08:00
|
|
|
HEAD_REF master
|
2021-06-11 07:22:46 +08:00
|
|
|
PATCHES fix-dependencies.patch
|
2017-07-06 04:04:17 +08:00
|
|
|
)
|
|
|
|
|
2021-06-11 07:22:46 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
2017-07-06 04:04:17 +08:00
|
|
|
|
2021-06-11 07:22:46 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
hdf5 MATIO_WITH_HDF5
|
|
|
|
zlib MATIO_WITH_ZLIB
|
|
|
|
extended-sparse MATIO_EXTENDED_SPARSE
|
|
|
|
mat73 MATIO_MAT73
|
|
|
|
pic MATIO_PIC
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2022-05-18 02:15:06 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-06-11 07:22:46 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
-DMATIO_SHARED=${BUILD_SHARED}
|
|
|
|
-DMATIO_USE_CONAN=OFF
|
2017-07-06 04:04:17 +08:00
|
|
|
)
|
|
|
|
|
2021-06-11 07:22:46 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-07-06 04:04:17 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2021-06-11 07:22:46 +08:00
|
|
|
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES matdump AUTO_CLEAN)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|