diff options
Diffstat (limited to 'vcpkg/ports/alembic')
| -rw-r--r-- | vcpkg/ports/alembic/portfile.cmake | 47 | ||||
| -rw-r--r-- | vcpkg/ports/alembic/vcpkg.json | 26 |
2 files changed, 73 insertions, 0 deletions
diff --git a/vcpkg/ports/alembic/portfile.cmake b/vcpkg/ports/alembic/portfile.cmake new file mode 100644 index 0000000..f01c40b --- /dev/null +++ b/vcpkg/ports/alembic/portfile.cmake @@ -0,0 +1,47 @@ +vcpkg_buildpath_length_warning(37) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO alembic/alembic + REF "${VERSION}" + SHA512 02b7bf5782e83efb08a8653f130b02565fa997e857dbd8d0523e1b218ff58d929fbf9690db0980e8101a31f01a67341b6000af8794538890ef7d759fe0289e2f + HEAD_REF master +) + +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} + -DALEMBIC_DEBUG_WARNINGS_AS_ERRORS=OFF +) + +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}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/vcpkg/ports/alembic/vcpkg.json b/vcpkg/ports/alembic/vcpkg.json new file mode 100644 index 0000000..e44c388 --- /dev/null +++ b/vcpkg/ports/alembic/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "alembic", + "version": "1.8.8", + "description": "Alembic is an open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications.", + "homepage": "https://alembic.io/", + "supports": "!(windows & x86) & !uwp", + "dependencies": [ + "imath", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "hdf5": { + "description": "Build with HDF5 support", + "dependencies": [ + "hdf5" + ] + } + } +} |