diff options
| author | Dominyk Tiller | 2015-01-13 15:34:19 +0000 |
|---|---|---|
| committer | Jack Nagel | 2015-01-13 20:18:40 -0500 |
| commit | ffb86df59e175b4c1a09df0aca5e864aafa0d8c7 (patch) | |
| tree | c863ad0cafdcb44cb3b69c3e58b12e3ad87f76c4 /Library | |
| parent | 411712128340034b70fdcb5c93e2b971e5045d11 (diff) | |
| download | homebrew-ffb86df59e175b4c1a09df0aca5e864aafa0d8c7.tar.bz2 | |
apr: add universal option
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/apr.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/apr.rb b/Library/Formula/apr.rb index 0b1f3de20..b3211301a 100644 --- a/Library/Formula/apr.rb +++ b/Library/Formula/apr.rb @@ -11,6 +11,8 @@ class Apr < Formula keg_only :provided_by_osx, "Apple's CLT package contains apr." + option :universal + def install # Configure switch unconditionally adds the -no-cpp-precomp switch # to CPPFLAGS, which is an obsolete Apple-only switch that breaks @@ -23,8 +25,12 @@ 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", "--prefix=#{libexec}" + system "./configure", *args system "make", "install" bin.install_symlink Dir["#{libexec}/bin/*"] end |
