summaryrefslogtreecommitdiff
path: root/homebrew/ispc
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/ispc')
-rw-r--r--homebrew/ispc/.beer44
-rw-r--r--homebrew/ispc/.make.sh-auto7
-rw-r--r--homebrew/ispc/_metadata/description1
-rw-r--r--homebrew/ispc/_metadata/homepage1
-rw-r--r--homebrew/ispc/_metadata/name1
-rw-r--r--homebrew/ispc/_metadata/version1
-rwxr-xr-xhomebrew/ispc/download.sh1
7 files changed, 56 insertions, 0 deletions
diff --git a/homebrew/ispc/.beer b/homebrew/ispc/.beer
new file mode 100644
index 000000000..bea667dcc
--- /dev/null
+++ b/homebrew/ispc/.beer
@@ -0,0 +1,44 @@
+{
+ "name": "Ispc",
+ "description": "Compiler for SIMD programming on the CPU",
+ "url": "https://github.com/ispc/ispc/archive/v1.10.0.tar.gz",
+ "mirror": null,
+ "homepage": "https://ispc.github.io",
+ "depends": [
+ {
+ "depend": "bison",
+ "build-depend": true
+ },
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "flex",
+ "build-depend": true
+ },
+ {
+ "depend": "llvm@4",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "inreplace \"cmake/GenerateBuiltins.cmake\", \"${CLANG_EXECUTABLE}\",",
+ "\"${CLANG_EXECUTABLE} -I#{MacOS.sdk_path}/usr/include\"",
+ "args = std_cmake_args + %W[",
+ "-DISPC_INCLUDE_EXAMPLES=OFF",
+ "-DISPC_INCLUDE_TESTS=OFF",
+ "-DISPC_INCLUDE_UTILS=OFF",
+ "-DLLVM_TOOLS_BINARY_DIR='#{Formula[\"llvm@4\"]}'",
+ "]",
+ "mkdir \"build\" do",
+ "system \"cmake\", *args, \"..\"",
+ "system \"make\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "1.10.0",
+ "file": "ispc.rb"
+} \ No newline at end of file
diff --git a/homebrew/ispc/.make.sh-auto b/homebrew/ispc/.make.sh-auto
new file mode 100644
index 000000000..0baa55c12
--- /dev/null
+++ b/homebrew/ispc/.make.sh-auto
@@ -0,0 +1,7 @@
+pkg:setup
+inreplace "cmake/GenerateBuiltins.cmake", "${CLANG_EXECUTABLE}", "${CLANG_EXECUTABLE} -I#{MacOS.sdk_path}/usr/include"
+args = std_cmake_args + %W[-DISPC_INCLUDE_EXAMPLES=OFF -DISPC_INCLUDE_TESTS=OFF -DISPC_INCLUDE_UTILS=OFF -DLLVM_TOOLS_BINARY_DIR='#{Formula["llvm@4"]}' ]
+mkdir "build" && cd build
+cmake *args ..
+make
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/ispc/_metadata/description b/homebrew/ispc/_metadata/description
new file mode 100644
index 000000000..eabcb3a01
--- /dev/null
+++ b/homebrew/ispc/_metadata/description
@@ -0,0 +1 @@
+Compiler for SIMD programming on the CPU
diff --git a/homebrew/ispc/_metadata/homepage b/homebrew/ispc/_metadata/homepage
new file mode 100644
index 000000000..2850b854d
--- /dev/null
+++ b/homebrew/ispc/_metadata/homepage
@@ -0,0 +1 @@
+https://ispc.github.io
diff --git a/homebrew/ispc/_metadata/name b/homebrew/ispc/_metadata/name
new file mode 100644
index 000000000..2b4c60194
--- /dev/null
+++ b/homebrew/ispc/_metadata/name
@@ -0,0 +1 @@
+Ispc
diff --git a/homebrew/ispc/_metadata/version b/homebrew/ispc/_metadata/version
new file mode 100644
index 000000000..81c871de4
--- /dev/null
+++ b/homebrew/ispc/_metadata/version
@@ -0,0 +1 @@
+1.10.0
diff --git a/homebrew/ispc/download.sh b/homebrew/ispc/download.sh
new file mode 100755
index 000000000..d67715c55
--- /dev/null
+++ b/homebrew/ispc/download.sh
@@ -0,0 +1 @@
+wget https://github.com/ispc/ispc/archive/v1.10.0.tar.gz \ No newline at end of file