mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 04:43:02 +08:00
[ezc3d] Add new port (#14016)
This commit is contained in:
parent
8ab8add312
commit
13af628b03
30
ports/ezc3d/portfile.cmake
Normal file
30
ports/ezc3d/portfile.cmake
Normal 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
6
ports/ezc3d/vcpkg.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "ezc3d",
|
||||
"version-string": "1.3.7",
|
||||
"description": "C3D reader/writer",
|
||||
"homepage": "https://github.com/pyomeca/ezc3d"
|
||||
}
|
Loading…
Reference in New Issue
Block a user