[mathter] new port (#39463)

Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com>
This commit is contained in:
Péter Kardos 2024-06-29 08:10:58 +02:00 committed by GitHub
parent 9e611ba347
commit afa12e7292
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,26 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO petiaccja/Mathter
REF "v${VERSION}"
SHA512 bae3460110d993996f9a5afa229b51168b30bc1ad7960c8e09fd1d74dee0b9501b2828a1127c09a6d0b9d5460d34cbf784a307257bf5c97248168547cc823974
HEAD_REF master
)
set(VCPKG_BUILD_TYPE release) # header-only port
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DMATHTER_BUILD_TESTS:BOOL=OFF
-DMATHTER_BUILD_BENCHMARKS:BOOL=OFF
-DMATHTER_VERSION:STRING=${VERSION}
-DMATHTER_CMAKE_INSTALL_DIR:STRING=share/${PORT}
-DMATHTER_ENABLE_SIMD:BOOL=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENCE.md")
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

4
ports/mathter/usage Normal file
View File

@ -0,0 +1,4 @@
mathter provides CMake targets:
find_package(Mathter CONFIG REQUIRED)
target_link_libraries(TestMathter PRIVATE Mathter::Mathter)

21
ports/mathter/vcpkg.json Normal file
View File

@ -0,0 +1,21 @@
{
"name": "mathter",
"version": "1.1.2",
"description": "A flexible and fast matrix, transform, and geometry library.",
"homepage": "https://github.com/petiaccja/Mathter",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "xsimd",
"version>=": "11.1.0"
}
]
}

View File

@ -5664,6 +5664,10 @@
"baseline": "8.0.1",
"port-version": 7
},
"mathter": {
"baseline": "1.1.2",
"port-version": 0
},
"matio": {
"baseline": "1.5.26",
"port-version": 0

9
versions/m-/mathter.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "5e1449528fdbe7f9021358d70623a42ca229fdce",
"version": "1.1.2",
"port-version": 0
}
]
}