aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/john.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/john.rb')
-rw-r--r--Library/Formula/john.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/john.rb b/Library/Formula/john.rb
index b32654241..27f184810 100644
--- a/Library/Formula/john.rb
+++ b/Library/Formula/john.rb
@@ -26,9 +26,16 @@ class John < Formula
def install
ENV.deparallelize
arch = Hardware.is_64_bit? ? '64' : 'sse2'
+ arch += '-opencl' if build.include? 'jumbo'
cd 'src' do
- system "make", "clean", "macosx-x86-#{arch}", "CC=#{ENV.cc}"
+ inreplace 'Makefile' do |s|
+ s.change_make_var! "CC", ENV.cc
+ if build.include?('jumbo') && MacOS.version != :leopard && ENV.compiler != :clang
+ s.change_make_var! "OMPFLAGS", "-fopenmp -msse2 -D_FORTIFY_SOURCE=0"
+ end
+ end
+ system "make", "clean", "macosx-x86-#{arch}"
end
# Remove the README symlink and install the real file