[libinterpolate] Add new port (#44608)

Co-authored-by: Jan Aleksandrov <jan.aleksandrov@valhalla-turrets.com>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Jonliu <13720414433@163.com>
This commit is contained in:
Jan Aleksandrov 2025-03-27 17:37:10 +01:00 committed by GitHub
parent e2387bd9c4
commit 977db88a84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO CD3/libInterpolate
REF ${VERSION}
SHA512 6d53e1fb3af3067ddd13e491563e8da5af9756efba5a2def486f014c23969633ca73cf43dd2f93047716ebb6565f5e9911b6ab85abef2db3b9faefc26ab3aa59
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")

View File

@ -0,0 +1,4 @@
libinterpolate provides CMake targets:
find_package(libInterpolate CONFIG REQUIRED)
target_link_libraries(main PRIVATE libInterpolate::Interpolate)

View File

@ -0,0 +1,27 @@
{
"name": "libinterpolate",
"version": "2.7.1",
"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
}
]
}

View File

@ -4768,6 +4768,10 @@
"baseline": "2023-05-13",
"port-version": 0
},
"libinterpolate": {
"baseline": "2.7.1",
"port-version": 0
},
"libirecovery": {
"baseline": "2023-05-13",
"port-version": 2

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "19a1aae3d8ceed34a7e04604ee4fdf00faf0040e",
"version": "2.7.1",
"port-version": 0
}
]
}