aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sebsjames-maths
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/sebsjames-maths
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/sebsjames-maths')
-rw-r--r--vcpkg/ports/sebsjames-maths/portfile.cmake24
-rw-r--r--vcpkg/ports/sebsjames-maths/vcpkg.json17
2 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/sebsjames-maths/portfile.cmake b/vcpkg/ports/sebsjames-maths/portfile.cmake
new file mode 100644
index 0000000..6d66014
--- /dev/null
+++ b/vcpkg/ports/sebsjames-maths/portfile.cmake
@@ -0,0 +1,24 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO sebsjames/maths
+ REF "${VERSION}"
+ SHA512 bd1f44f2cb3cf14458a4c35052840cc19cd6a03058936853eedbd209fdb10012e74b2b51e7fc7a46e3e76861baf27e946a7e1e5feff545f81b255d9d4af4303e
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/maths)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/sebsjames-maths/vcpkg.json b/vcpkg/ports/sebsjames-maths/vcpkg.json
new file mode 100644
index 0000000..b14c6ac
--- /dev/null
+++ b/vcpkg/ports/sebsjames-maths/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "sebsjames-maths",
+ "version": "1.0",
+ "description": "C++20 code for scalar, vector and complex maths.",
+ "homepage": "https://github.com/sebsjames/maths",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}