aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/linalg/CONTROL3
-rw-r--r--ports/linalg/portfile.cmake12
2 files changed, 15 insertions, 0 deletions
diff --git a/ports/linalg/CONTROL b/ports/linalg/CONTROL
new file mode 100644
index 000000000..eb2afe6f3
--- /dev/null
+++ b/ports/linalg/CONTROL
@@ -0,0 +1,3 @@
+Source: linalg
+Version: 2.1
+Description: linalg.h is a single header public domain linear algebra library for C++11
diff --git a/ports/linalg/portfile.cmake b/ports/linalg/portfile.cmake
new file mode 100644
index 000000000..4f2777755
--- /dev/null
+++ b/ports/linalg/portfile.cmake
@@ -0,0 +1,12 @@
+#header-only library
+include(vcpkg_common_functions)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO sgorsten/linalg
+ REF v2.1
+ SHA512 48d8248ea1bca3d4fe35d038690f496cd0c8c9469d76eca684668ce6fef5df0eb9556f9b49e4da90e2c2e8ef475791877aa815c3f9437c097fbfc303134d02d7
+ HEAD_REF master
+)
+
+configure_file(${SOURCE_PATH}/UNLICENSE ${CURRENT_PACKAGES_DIR}/share/linalg/copyright COPYONLY)
+configure_file(${SOURCE_PATH}/linalg.h ${CURRENT_PACKAGES_DIR}/include/linalg.h COPYONLY) \ No newline at end of file