2019-08-17 04:08:35 +08:00
|
|
|
|
2020-06-24 03:58:50 +08:00
|
|
|
if (TRIPLET_SYSTEM_ARCH MATCHES "arm")
|
2019-08-17 04:08:35 +08:00
|
|
|
message(FATAL_ERROR "ARM is currently not supported.")
|
|
|
|
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
|
|
|
|
message(FATAL_ERROR "Error: UWP builds are currently not supported.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO imageworks/Field3D
|
2020-06-24 03:58:50 +08:00
|
|
|
REF v1.7.3
|
|
|
|
SHA512 de3f10ff120420925de67064b2169f2a30c9180e308acc9090d70567b45be5423f4b1f7eb32bb376c887cea1364803cf7b2db66c2bc49f8a39a1037bbf0e5f39
|
2019-08-17 04:08:35 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-build_error.patch
|
2020-06-24 03:58:50 +08:00
|
|
|
hdf5.api.patch # Switches the HDF5 default API for this port to 1.10
|
2019-08-17 04:08:35 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-06-24 03:58:50 +08:00
|
|
|
OPTIONS
|
|
|
|
"-DINSTALL_DOCS:BOOL=OFF"
|
2019-08-17 04:08:35 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-06-24 03:58:50 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/README" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|