aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/xtensor-blas
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/xtensor-blas
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/xtensor-blas')
-rw-r--r--vcpkg/ports/xtensor-blas/portfile.cmake33
-rw-r--r--vcpkg/ports/xtensor-blas/vcpkg.json17
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/xtensor-blas/portfile.cmake b/vcpkg/ports/xtensor-blas/portfile.cmake
new file mode 100644
index 0000000..51ec492
--- /dev/null
+++ b/vcpkg/ports/xtensor-blas/portfile.cmake
@@ -0,0 +1,33 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO xtensor-stack/xtensor-blas
+ REF "${VERSION}"
+ SHA512 d20d97e655de7e54415e174cfa8f99fe95f755af46e00160fa3c613b079003c113fbf137ec88991443cab30dac1ff1b28675183ade348221d00955f0fad31188
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ DISABLE_PARALLEL_CONFIGURE
+ OPTIONS_RELEASE -DCXXBLAS_DEBUG=OFF
+ OPTIONS_DEBUG -DCXXBLAS_DEBUG=ON
+ OPTIONS
+ -DXTENSOR_USE_FLENS_BLAS=OFF
+ -DBUILD_TESTS=OFF
+ -DBUILD_BENCHMARK=OFF
+ -DDOWNLOAD_GTEST=OFF
+ -DDOWNLOAD_GBENCHMARK=OFF
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE "${CURRENT_PACKAGES_DIR}/include/xtensor-blas/xblas_config_cling.hpp")
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/xflens/cxxblas/netlib")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/xtensor-blas/vcpkg.json b/vcpkg/ports/xtensor-blas/vcpkg.json
new file mode 100644
index 0000000..544d452
--- /dev/null
+++ b/vcpkg/ports/xtensor-blas/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "xtensor-blas",
+ "version": "0.22.0",
+ "description": "BLAS extension to xtensor",
+ "homepage": "https://github.com/xtensor-stack/xtensor-blas",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "xtensor"
+ ]
+}