summaryrefslogtreecommitdiff
path: root/homebrew/clblas
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/clblas')
-rw-r--r--homebrew/clblas/.beer32
-rw-r--r--homebrew/clblas/.make.sh-auto4
-rw-r--r--homebrew/clblas/_metadata/description1
-rw-r--r--homebrew/clblas/_metadata/homepage1
-rw-r--r--homebrew/clblas/_metadata/name1
-rw-r--r--homebrew/clblas/_metadata/version1
-rwxr-xr-xhomebrew/clblas/download.sh1
7 files changed, 41 insertions, 0 deletions
diff --git a/homebrew/clblas/.beer b/homebrew/clblas/.beer
new file mode 100644
index 000000000..4323076c1
--- /dev/null
+++ b/homebrew/clblas/.beer
@@ -0,0 +1,32 @@
+{
+ "name": "Clblas",
+ "description": "Library containing BLAS functions written in OpenCL",
+ "url": "https://github.com/clMathLibraries/clBLAS/archive/v2.12.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/clMathLibraries/clBLAS",
+ "depends": [
+ {
+ "depend": "boost",
+ "build-depend": true
+ },
+ {
+ "depend": "cmake",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"cmake\", \"src\", *std_cmake_args,",
+ "\"-DBUILD_CLIENT=OFF\",",
+ "\"-DBUILD_KTEST=OFF\",",
+ "\"-DBUILD_TEST=OFF\",",
+ "\"-DCMAKE_MACOSX_RPATH:BOOL=ON\",",
+ "\"-DSUFFIX_LIB:STRING=\"",
+ "system \"make\", \"install\"",
+ "pkgshare.install \"src/samples/example_srot.c\""
+ ],
+ "version": "2.12",
+ "file": "clblas.rb"
+} \ No newline at end of file
diff --git a/homebrew/clblas/.make.sh-auto b/homebrew/clblas/.make.sh-auto
new file mode 100644
index 000000000..401529275
--- /dev/null
+++ b/homebrew/clblas/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+cmake src -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DBUILD_CLIENT=OFF -DBUILD_KTEST=OFF -DBUILD_TEST=OFF -DCMAKE_MACOSX_RPATH:BOOL=ON -DSUFFIX_LIB:STRING=
+make DESTDIR=${PKG_DEST} install
+pkgshare.install "src/samples/example_srot.c"
diff --git a/homebrew/clblas/_metadata/description b/homebrew/clblas/_metadata/description
new file mode 100644
index 000000000..d072120c4
--- /dev/null
+++ b/homebrew/clblas/_metadata/description
@@ -0,0 +1 @@
+Library containing BLAS functions written in OpenCL
diff --git a/homebrew/clblas/_metadata/homepage b/homebrew/clblas/_metadata/homepage
new file mode 100644
index 000000000..c6f5207fe
--- /dev/null
+++ b/homebrew/clblas/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/clMathLibraries/clBLAS
diff --git a/homebrew/clblas/_metadata/name b/homebrew/clblas/_metadata/name
new file mode 100644
index 000000000..c234e5aaf
--- /dev/null
+++ b/homebrew/clblas/_metadata/name
@@ -0,0 +1 @@
+Clblas
diff --git a/homebrew/clblas/_metadata/version b/homebrew/clblas/_metadata/version
new file mode 100644
index 000000000..3e162f02e
--- /dev/null
+++ b/homebrew/clblas/_metadata/version
@@ -0,0 +1 @@
+2.12
diff --git a/homebrew/clblas/download.sh b/homebrew/clblas/download.sh
new file mode 100755
index 000000000..65647cb7a
--- /dev/null
+++ b/homebrew/clblas/download.sh
@@ -0,0 +1 @@
+wget https://github.com/clMathLibraries/clBLAS/archive/v2.12.tar.gz \ No newline at end of file