diff options
| author | Tom Schoonjans | 2015-04-08 10:02:44 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-08 13:57:57 +0100 |
| commit | d0bae5d29712ac7eef6993355c7a07e5a47e7d76 (patch) | |
| tree | 2627c519d0e1908b019197fe9f0064a8edab2526 /Library | |
| parent | fbca2c31423e11ba946718d6260ad9e3f2bb9264 (diff) | |
| download | homebrew-d0bae5d29712ac7eef6993355c7a07e5a47e7d76.tar.bz2 | |
libiomp 20150227
The previous version of the formula refused to build on my up to data
Yosemite system due to cflags intended for Intel compilers being passed
to clang. I gave the cmake build that is also included in the package a
try and that one worked without problems.
Closes #38452.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libiomp.rb | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/Library/Formula/libiomp.rb b/Library/Formula/libiomp.rb index d11871d76..f446d1c7b 100644 --- a/Library/Formula/libiomp.rb +++ b/Library/Formula/libiomp.rb @@ -1,9 +1,10 @@ -require "formula" - class Libiomp < Formula homepage "https://www.openmprtl.org/download" - url "https://www.openmprtl.org/sites/default/files/libomp_20140926_oss.tgz" - sha1 "488ff3874eb5c971523534cb3c987bfb5ce3addb" + url "https://www.openmprtl.org/sites/default/files/libomp_20150227_oss.tgz" + sha256 "a1d30fad0160400db325d270b632961d086026d2944520d67c6afc0e69ac93bf" + + depends_on :arch => :intel + depends_on "cmake" => :build bottle do cellar :any @@ -12,8 +13,6 @@ class Libiomp < Formula sha1 "26a2f4d2d6427c1d114fdc774a71bdd06926cc13" => :mountain_lion end - depends_on :arch => :intel - fails_with :gcc do cause "libiomp can only be built with clang." end @@ -29,14 +28,12 @@ class Libiomp < Formula end def install - # fix makefile for yosemite: - inreplace "src/makefile.mk" do |s| - s.gsub! "`sw_vers -productVersion` > 10.6", "`sw_vers -productVersion` == '10.10' || `sw_vers -productVersion`> 10.6" - end - intel_arch = MacOS.prefer_64_bit? ? "mac_32e" : "mac_32" - - system "make", "compiler=clang" + args = std_cmake_args + args << (MacOS.prefer_64_bit? ? "-Darch=32e" : "-Darch=32") + args << "-DCMAKE_BUILD_TYPE=Release" + system "cmake", ".", *args + system "make", "all", "common" (include/"libiomp").install Dir["exports/common/include/*"] lib.install "exports/#{intel_arch}/lib.thin/libiomp5.dylib" |
