This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

beecrypt: fix compiles on 64-bit systems

Closes #18889.
  • Loading branch information...
1 parent 74c9f9b commit 18ac84aef577b7c2399bf9bcf78677e6075babc4 @adamv adamv committed Apr 1, 2013
Showing with 11 additions and 1 deletion.
  1. +11 −1 Library/Formula/beecrypt.rb
@@ -12,9 +12,19 @@ def patches
{ :p0 => DATA }
end
+ def darwin_major_version
+ # kern.osrelease: 11.4.2
+ full_version = `/usr/sbin/sysctl -n kern.osrelease`
+ full_version.split("\.")[0]
+ end
+
def install
ENV.remove_from_cflags /-march=\S*/
- system "./configure", "--prefix=#{prefix}", "--disable-openmp", "--without-java", "--without-python"
+ args = ["--prefix=#{prefix}", "--disable-openmp", "--without-java", "--without-python"]
+ if MacOS.prefer_64_bit?
+ args << "--build=x86_64-apple-darwin#{darwin_major_version}"
+ end
+ system "./configure", *args
system "make"
system "make check"
system "make install"

0 comments on commit 18ac84a

Please sign in to comment.