aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLionel Koenig2013-01-21 22:12:37 +0100
committerAdam Vandenberg2013-01-26 17:13:41 -0800
commit048c45dfc3de8e19f87a17574b69501af71c5288 (patch)
tree33bf04c29d4431e73538bfd2eb2f44e61756bcaf /Library
parent4a0a098ce19d3ffb9444d3cfc7940421165b14ce (diff)
downloadhomebrew-048c45dfc3de8e19f87a17574b69501af71c5288.tar.bz2
szip, hdf5, fann: add --universal
Closes #17237. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fann.rb2
-rw-r--r--Library/Formula/hdf5.rb2
-rw-r--r--Library/Formula/szip.rb3
3 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/fann.rb b/Library/Formula/fann.rb
index 08c0f0a94..5acc9ecf3 100644
--- a/Library/Formula/fann.rb
+++ b/Library/Formula/fann.rb
@@ -6,8 +6,10 @@ class Fann < Formula
sha1 'ff8341e4104bdbc0f3ab7ad39aef33285f8512d4'
depends_on 'cmake' => :build
+ option :universal
def install
+ ENV.universal_binary if build.universal?
system "cmake", ".", *std_cmake_args
system "make install"
end
diff --git a/Library/Formula/hdf5.rb b/Library/Formula/hdf5.rb
index ae65ad53a..daf70e1ad 100644
--- a/Library/Formula/hdf5.rb
+++ b/Library/Formula/hdf5.rb
@@ -8,10 +8,12 @@ class Hdf5 < Formula
depends_on 'szip'
# TODO - warn that these options conflict
+ option :universal
option 'enable-fortran', 'Compile Fortran bindings'
option 'enable-threadsafe', 'Trade performance and C++ or Fortran support for thread safety'
def install
+ ENV.universal_binary if build.universal?
args = %W[
--prefix=#{prefix}
--enable-production
diff --git a/Library/Formula/szip.rb b/Library/Formula/szip.rb
index 08067b43d..71eb954fe 100644
--- a/Library/Formula/szip.rb
+++ b/Library/Formula/szip.rb
@@ -5,7 +5,10 @@ class Szip < Formula
homepage 'http://www.hdfgroup.org/HDF5/release/obtain5.html#extlibs'
sha1 'd241c9acc26426a831765d660b683b853b83c131'
+ option :universal
+
def install
+ ENV.universal_binary if build.universal?
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end