[ezc3d] Add new port (#14016)

This commit is contained in:
Rubén de Celis Hernández 2020-10-20 21:22:08 +02:00 committed by GitHub
parent 8ab8add312
commit 13af628b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,30 @@
vcpkg_from_github(ARCHIVE
OUT_SOURCE_PATH SOURCE_PATH
REPO pyomeca/ezc3d
REF Release_1.3.7
SHA512 5beb0909a4ddc56f5965b5f2edcfd2c8d68d473b172778ebe21bc134e1b4931cac1e6529676866d4238b41041658041a72ccd44879b9685d85f857a4e0df23ec
HEAD_REF dev
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_EXAMPLE=OFF
)
vcpkg_install_cmake()
if (VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/ezc3d/cmake")
else()
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake")
endif()
# # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
# # Remove duplicated include directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()

6
ports/ezc3d/vcpkg.json Normal file
View File

@ -0,0 +1,6 @@
{
"name": "ezc3d",
"version-string": "1.3.7",
"description": "C3D reader/writer",
"homepage": "https://github.com/pyomeca/ezc3d"
}