aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libinterpolate
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/libinterpolate
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libinterpolate')
-rw-r--r--vcpkg/ports/libinterpolate/portfile.cmake25
-rw-r--r--vcpkg/ports/libinterpolate/usage4
-rw-r--r--vcpkg/ports/libinterpolate/vcpkg.json27
3 files changed, 56 insertions, 0 deletions
diff --git a/vcpkg/ports/libinterpolate/portfile.cmake b/vcpkg/ports/libinterpolate/portfile.cmake
new file mode 100644
index 0000000..561bb9e
--- /dev/null
+++ b/vcpkg/ports/libinterpolate/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO CD3/libInterpolate
+ REF ${VERSION}
+ SHA512 25abb4df8ea0648cd9cdd309f2491a9fc2cdbc5af3cc786fec39302680835bb1f29281628dd89323f353d377d9702d9b9f894c85c5cb0aa7cbae5590d05d3e27
+ HEAD_REF master
+)
+
+set(VCPKG_BUILD_TYPE release) # header-only port
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTS=OFF
+ -DlibInterpolate_VERSION=${VERSION}
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libInterpolate)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
diff --git a/vcpkg/ports/libinterpolate/usage b/vcpkg/ports/libinterpolate/usage
new file mode 100644
index 0000000..6e0bd4c
--- /dev/null
+++ b/vcpkg/ports/libinterpolate/usage
@@ -0,0 +1,4 @@
+libinterpolate provides CMake targets:
+
+ find_package(libInterpolate CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE libInterpolate::Interpolate)
diff --git a/vcpkg/ports/libinterpolate/vcpkg.json b/vcpkg/ports/libinterpolate/vcpkg.json
new file mode 100644
index 0000000..ee0cbd9
--- /dev/null
+++ b/vcpkg/ports/libinterpolate/vcpkg.json
@@ -0,0 +1,27 @@
+{
+ "name": "libinterpolate",
+ "version": "2.7.2",
+ "description": "Header-only C++ interpolation library.",
+ "homepage": "https://github.com/CD3/libInterpolate",
+ "license": "MIT",
+ "dependencies": [
+ "boost-geometry",
+ "boost-headers",
+ "boost-lexical-cast",
+ "boost-mpl",
+ "boost-program-options",
+ "boost-range",
+ "boost-tokenizer",
+ "boost-type-erasure",
+ "boost-type-traits",
+ "eigen3",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}