Skip to content

Commit

Permalink
[ezc3d] Add new port (#14016)
Browse files Browse the repository at this point in the history
  • Loading branch information
RDCH106 committed Oct 20, 2020
1 parent 8ab8add commit 13af628
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
30 changes: 30 additions & 0 deletions ports/ezc3d/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions ports/ezc3d/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "ezc3d",
"version-string": "1.3.7",
"description": "C3D reader/writer",
"homepage": "https://github.com/pyomeca/ezc3d"
}

0 comments on commit 13af628

Please sign in to comment.