vcpkg/ports/alembic/portfile.cmake
chausner 13156b1cf6
[alembic] Update to 1.8.3 (#21041)
* Update alembic to 1.8.3, use imath dependency

* Update git-tree hash

* Various fixes and cleanups

* Update git-tree hash

* Various fixes

* Update git-tree hash

* Experimentally enable all platforms

* Update git-tree hash

* Various improvements

* Update git-tree hash

* Fix x64 Linux build

* Update git-tree hash

* Revert "Fix x64 Linux build"

This reverts commit 154d51fcca.

* Fix x64 Linux build using patch

* Update git-tree hash

* Make HDF5 support optional and disabled by default

* Update git-tree hash

* Fix abcconvert tool

* Use alternative method to fix DLL location, also fixes PDB inclusion

* Update git-tree hash

* Fix supported platforms

* Update git-tree hash

Co-authored-by: chausner <chausner@users.noreply.github.com>
2021-11-04 15:32:49 -07:00

55 lines
1.5 KiB
CMake

vcpkg_fail_port_install(ON_TARGET "UWP")
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_fail_port_install(ON_ARCH "x86") # see https://github.com/alembic/alembic/issues/372
endif()
vcpkg_buildpath_length_warning(37)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alembic/alembic
REF 1.8.3
SHA512 0049c72d93e66e12d704d27e7ba36cd9c718667f2ce4f7baa1bee1613ed88ba53abea98f457e14f7f2144cb353810a4108d26c7dd1a1543ec2af576272f19036
HEAD_REF master
PATCHES
fix-runtime-destination.patch
disable-warnings-as-error.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ALEMBIC_SHARED_LIBS)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
hdf5 USE_HDF5
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DALEMBIC_SHARED_LIBS=${ALEMBIC_SHARED_LIBS}
-DUSE_TESTS=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Alembic)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
set(TOOLS abcdiff abcecho abcechobounds abcls abcstitcher abctree)
if(USE_HDF5)
list(APPEND TOOLS abcconvert)
endif()
vcpkg_copy_tools(
TOOL_NAMES ${TOOLS}
AUTO_CLEAN
)
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)