From fd340838a00d27c6ca7f65147e3d6032afe66148 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 13 Jan 2015 15:36:17 +0000 Subject: apr-util: add universal option Closes #35811. Closes #35827. Signed-off-by: Jack Nagel --- Library/Formula/apr-util.rb | 4 ++++ Library/Formula/apr.rb | 8 +++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Library/Formula/apr-util.rb b/Library/Formula/apr-util.rb index a4e106ab9..cd740016a 100644 --- a/Library/Formula/apr-util.rb +++ b/Library/Formula/apr-util.rb @@ -11,11 +11,15 @@ class AprUtil < Formula keg_only :provided_by_osx, "Apple's CLT package contains apr." + option :universal + depends_on "apr" depends_on "openssl" depends_on "postgresql" => :optional def install + ENV.universal_binary if build.universal? + # Stick it in libexec otherwise it pollutes lib with a .exp file. args = %W[ --prefix=#{libexec} diff --git a/Library/Formula/apr.rb b/Library/Formula/apr.rb index b3211301a..9dab246c9 100644 --- a/Library/Formula/apr.rb +++ b/Library/Formula/apr.rb @@ -14,6 +14,8 @@ class Apr < Formula option :universal def install + ENV.universal_binary if build.universal? + # Configure switch unconditionally adds the -no-cpp-precomp switch # to CPPFLAGS, which is an obsolete Apple-only switch that breaks # builds under non-Apple compilers and which may or may not do anything anymore. @@ -25,12 +27,8 @@ class Apr < Formula # The internal libtool throws an enormous strop if we don't do... ENV.deparallelize - args = %W[--prefix=#{libexec}] - - args << "--build=i386-apple-darwin" if build.universal? - # Stick it in libexec otherwise it pollutes lib with a .exp file. - system "./configure", *args + system "./configure", "--prefix=#{libexec}" system "make", "install" bin.install_symlink Dir["#{libexec}/bin/*"] end -- cgit v1.2.3