aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tinyspline
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tinyspline
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tinyspline')
-rw-r--r--vcpkg/ports/tinyspline/portfile.cmake30
-rw-r--r--vcpkg/ports/tinyspline/vcpkg.json17
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/tinyspline/portfile.cmake b/vcpkg/ports/tinyspline/portfile.cmake
new file mode 100644
index 0000000..6a1068d
--- /dev/null
+++ b/vcpkg/ports/tinyspline/portfile.cmake
@@ -0,0 +1,30 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO msteinbeck/tinyspline
+ REF "v${VERSION}"
+ SHA512 e81d95e9fa7ec33b70d541695ab18b8e9c2a92e7c66877aa9957526e2ac144558b47409e1a1b721f7702a8462a22f360d1ec96b0023db108da13f8c37b8c0c20
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DTINYSPLINE_BUILD_EXAMPLES=OFF
+ -DTINYSPLINE_BUILD_TESTS=OFF
+ -DTINYSPLINE_BUILD_DOCS=OFF
+ -DTINYSPLINE_WARNINGS_AS_ERRORS=OFF
+ -DTINYSPLINE_INSTALL_LIBRARY_DIR=lib
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tinyspline DO_NOT_DELETE_PARENT_CONFIG_PATH)
+vcpkg_cmake_config_fixup(PACKAGE_NAME tinysplinecxx CONFIG_PATH lib/cmake/tinysplinecxx)
+vcpkg_fixup_pkgconfig()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/tinyspline/vcpkg.json b/vcpkg/ports/tinyspline/vcpkg.json
new file mode 100644
index 0000000..52c9a0e
--- /dev/null
+++ b/vcpkg/ports/tinyspline/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "tinyspline",
+ "version": "0.6.0",
+ "description": "Library for NURBS, B-Splines, and Bézier curves, allowing you to handle splines with ease",
+ "homepage": "https://github.com/msteinbeck/tinyspline",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}