summaryrefslogtreecommitdiff
path: root/homebrew/openblas
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/openblas
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/openblas')
-rw-r--r--homebrew/openblas/.beer26
-rw-r--r--homebrew/openblas/.make.sh-auto7
-rw-r--r--homebrew/openblas/_metadata/description1
-rw-r--r--homebrew/openblas/_metadata/homepage1
-rw-r--r--homebrew/openblas/_metadata/name1
-rw-r--r--homebrew/openblas/_metadata/version1
-rwxr-xr-xhomebrew/openblas/download.sh1
7 files changed, 38 insertions, 0 deletions
diff --git a/homebrew/openblas/.beer b/homebrew/openblas/.beer
new file mode 100644
index 000000000..b62556f4d
--- /dev/null
+++ b/homebrew/openblas/.beer
@@ -0,0 +1,26 @@
+{
+ "name": "Openblas",
+ "description": "Optimized BLAS library",
+ "url": "https://github.com/xianyi/OpenBLAS/archive/v0.3.5.tar.gz",
+ "mirror": null,
+ "homepage": "https://www.openblas.net/",
+ "depends": [
+ {
+ "depend": "gcc",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "ENV[\"DYNAMIC_ARCH\"] = \"1\"",
+ "ENV[\"USE_OPENMP\"] = \"1\"",
+ "system \"make\", \"CC=#{ENV.cc}\", \"FC=gfortran\", \"libs\", \"netlib\", \"shared\"",
+ "system \"make\", \"PREFIX=#{prefix}\", \"install\"",
+ "lib.install_symlink \"libopenblas.dylib\" => \"libblas.dylib\"",
+ "lib.install_symlink \"libopenblas.dylib\" => \"liblapack.dylib\""
+ ],
+ "version": "0.3.5",
+ "file": "openblas.rb"
+} \ No newline at end of file
diff --git a/homebrew/openblas/.make.sh-auto b/homebrew/openblas/.make.sh-auto
new file mode 100644
index 000000000..2359e1d08
--- /dev/null
+++ b/homebrew/openblas/.make.sh-auto
@@ -0,0 +1,7 @@
+pkg:setup
+ENV["DYNAMIC_ARCH"] = "1"
+ENV["USE_OPENMP"] = "1"
+make CC=${PKG_TARG}-clang FC=gfortran libs netlib shared
+make PREFIX=${PKG_TAPF} DESTDIR=${PKG_DEST} install
+lib.install_symlink "libopenblas.dylib" => "libblas.dylib"
+lib.install_symlink "libopenblas.dylib" => "liblapack.dylib"
diff --git a/homebrew/openblas/_metadata/description b/homebrew/openblas/_metadata/description
new file mode 100644
index 000000000..d9eaef8d0
--- /dev/null
+++ b/homebrew/openblas/_metadata/description
@@ -0,0 +1 @@
+Optimized BLAS library
diff --git a/homebrew/openblas/_metadata/homepage b/homebrew/openblas/_metadata/homepage
new file mode 100644
index 000000000..e65e9d92d
--- /dev/null
+++ b/homebrew/openblas/_metadata/homepage
@@ -0,0 +1 @@
+https://www.openblas.net/
diff --git a/homebrew/openblas/_metadata/name b/homebrew/openblas/_metadata/name
new file mode 100644
index 000000000..a7fa747fb
--- /dev/null
+++ b/homebrew/openblas/_metadata/name
@@ -0,0 +1 @@
+Openblas
diff --git a/homebrew/openblas/_metadata/version b/homebrew/openblas/_metadata/version
new file mode 100644
index 000000000..c2c0004f0
--- /dev/null
+++ b/homebrew/openblas/_metadata/version
@@ -0,0 +1 @@
+0.3.5
diff --git a/homebrew/openblas/download.sh b/homebrew/openblas/download.sh
new file mode 100755
index 000000000..c08381199
--- /dev/null
+++ b/homebrew/openblas/download.sh
@@ -0,0 +1 @@
+wget https://github.com/xianyi/OpenBLAS/archive/v0.3.5.tar.gz \ No newline at end of file