aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-04-01 13:22:45 -0700
committerAdam Vandenberg2013-04-01 13:22:45 -0700
commit18ac84aef577b7c2399bf9bcf78677e6075babc4 (patch)
tree2bd2d67dabfff188e721e824a8a8c44fb30ff356 /Library/Formula
parent74c9f9b44848298f17f9fb5ec35180454c38314c (diff)
downloadhomebrew-18ac84aef577b7c2399bf9bcf78677e6075babc4.tar.bz2
beecrypt: fix compiles on 64-bit systems
Closes #18889.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/beecrypt.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/beecrypt.rb b/Library/Formula/beecrypt.rb
index bfcf88ad9..59e6c6e7f 100644
--- a/Library/Formula/beecrypt.rb
+++ b/Library/Formula/beecrypt.rb
@@ -12,9 +12,19 @@ class Beecrypt < Formula
{ :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"