From 484e35260ee9287da57e571879b0192948daad31 Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 3 Feb 2014 19:40:40 +0100 Subject: [PATCH] pocl 0.9 Closes Homebrew/homebrew#26381. Signed-off-by: Mike McQuaid --- Formula/pocl.rb | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/Formula/pocl.rb b/Formula/pocl.rb index 75d1b25f96e..310c28b0a00 100644 --- a/Formula/pocl.rb +++ b/Formula/pocl.rb @@ -2,20 +2,14 @@ require 'formula' class Pocl < Formula homepage 'http://pocl.sourceforge.net' - url 'http://pocl.sourceforge.net/downloads/pocl-0.8.tar.gz' - sha1 '773f761bdca4c53654cfc0e59363e01757735c8b' + url 'http://pocl.sourceforge.net/downloads/pocl-0.9.tar.gz' + sha1 'd6e30f3120c7952dec9004db1db91a11d08c7b74' depends_on 'pkg-config' => :build depends_on 'hwloc' depends_on 'llvm' => 'with-clang' depends_on :libltdl - def patches - # fix llvm-link command in script with version found by - # configure. This should be fixed in 0.9 - DATA - end - def install ENV.j1 system "./configure", "--disable-debug", @@ -35,20 +29,6 @@ class Pocl < Formula EOS system "#{bin}/pocl-standalone -h head.h -o foo.bc foo.cl" system "\"#{Formula.factory('llvm').opt_prefix}/bin/llvm-dis\" < foo.bc | grep foo_workgroup" - system "pkg-config pocl --modversion | grep 0.8" + system "pkg-config pocl --modversion | grep #{version}" end end - -__END__ -diff --git a/scripts/pocl-standalone.in b/scripts/pocl-standalone.in -index 739fc4b..9542bf3 100644 ---- a/scripts/pocl-standalone.in -+++ b/scripts/pocl-standalone.in -@@ -106,7 +106,7 @@ pocl_lib="@abs_top_builddir@/lib/llvmopencl/.libs/llvmopencl.so" - full_target_dir="@abs_top_builddir@/lib/kernel/${target_dir}" - # END REMOVE ONCE INSTALLED - --llvm-link -o ${linked_bc} ${kernel_bc} ${full_target_dir}/kernel*.bc -+@LLVM_LINK@ -o ${linked_bc} ${kernel_bc} ${full_target_dir}/kernel*.bc - - OPT_SWITCH="-O3"