2020-07-28 08:43:23 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "UWP")
|
2019-08-17 04:08:35 +08:00
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-08-17 04:08:35 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO imageworks/Field3D
|
2020-07-28 08:43:23 +08:00
|
|
|
REF 0cf75ad982917e0919f59e5cb3d483517d06d7da
|
|
|
|
SHA512 e6f137013dd7b64b51b2ec3cc3ed8f4dbfadb85858946f08393653d78136cf8f93ae124716db11358e325c5e64ba04802afd4b89ca36ad65a14dd3db17f3072c
|
2019-08-17 04:08:35 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2020-07-28 08:43:23 +08:00
|
|
|
0001_fix_build_errors.patch
|
|
|
|
0002_improve_win_compatibility.patch
|
|
|
|
0003_hdf5_api.patch # Switches the HDF5 default API for this port to 1.10
|
2019-08-17 04:08:35 +08:00
|
|
|
)
|
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
file(REMOVE ${SOURCE_PATH}/cmake/FindILMBase.cmake)
|
|
|
|
|
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)
|
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|