From 12335518ab39608d58370c85ff9f5384ad2aa5f7 Mon Sep 17 00:00:00 2001 From: MCApollo <34170230+MCApollo@users.noreply.github.com> Date: Sat, 20 Apr 2019 20:49:46 -0500 Subject: Ported in the homebrew-marauder for a hacky update/import system. TODO: Maybe add a license & fix up messy code. --- homebrew/ispc/.beer | 44 +++++++++++++++++++++++++++++++++++++ homebrew/ispc/.make.sh-auto | 7 ++++++ homebrew/ispc/_metadata/description | 1 + homebrew/ispc/_metadata/homepage | 1 + homebrew/ispc/_metadata/name | 1 + homebrew/ispc/_metadata/version | 1 + homebrew/ispc/download.sh | 1 + 7 files changed, 56 insertions(+) create mode 100644 homebrew/ispc/.beer create mode 100644 homebrew/ispc/.make.sh-auto create mode 100644 homebrew/ispc/_metadata/description create mode 100644 homebrew/ispc/_metadata/homepage create mode 100644 homebrew/ispc/_metadata/name create mode 100644 homebrew/ispc/_metadata/version create mode 100755 homebrew/ispc/download.sh (limited to 'homebrew/ispc') 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 -- cgit v1.2.3