Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ezc3d] Add new port #14016

Merged
merged 16 commits into from
Oct 20, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ports/ezc3d/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Source: ezc3d
Version: 1.3.7
Port-Version: 0
Homepage: https://github.com/pyomeca/ezc3d
Description: C3D reader/writer
NancyLi1013 marked this conversation as resolved.
Show resolved Hide resolved
Build-Depends:
RDCH106 marked this conversation as resolved.
Show resolved Hide resolved
39 changes: 39 additions & 0 deletions ports/ezc3d/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
set(EZC3D_SHARED OFF)
else()
set(EZC3D_SHARED ON)
endif()
RDCH106 marked this conversation as resolved.
Show resolved Hide resolved


RDCH106 marked this conversation as resolved.
Show resolved Hide resolved
RDCH106 marked this conversation as resolved.
Show resolved Hide resolved
vcpkg_from_github(ARCHIVE
OUT_SOURCE_PATH SOURCE_PATH
REPO pyomeca/ezc3d
REF Release_1.3.7
SHA512 5beb0909a4ddc56f5965b5f2edcfd2c8d68d473b172778ebe21bc134e1b4931cac1e6529676866d4238b41041658041a72ccd44879b9685d85f857a4e0df23ec
HEAD_REF dev
PATCHES
RDCH106 marked this conversation as resolved.
Show resolved Hide resolved
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja
OPTIONS
-DBUILD_SHARED_LIBS=${EZC3D_SHARED}
RDCH106 marked this conversation as resolved.
Show resolved Hide resolved
-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()