diff options
| author | Jack Nagel | 2012-02-15 09:59:23 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-15 10:01:47 -0600 |
| commit | 97c76e2a9a1889dfe2b3f36162d00157b76916de (patch) | |
| tree | 2bd5a22d3554a9c645f787b8bbe24b40c027083f /Library | |
| parent | 1f22e244a35e92c133288c22da560933935b0b05 (diff) | |
| download | homebrew-97c76e2a9a1889dfe2b3f36162d00157b76916de.tar.bz2 | |
libvpx: fix build on 64-bit
Fixes #8163.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libvpx.rb | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Library/Formula/libvpx.rb b/Library/Formula/libvpx.rb index 44bd4378c..3fb619971 100644 --- a/Library/Formula/libvpx.rb +++ b/Library/Formula/libvpx.rb @@ -17,9 +17,6 @@ class Libvpx < Formula end def install - macbuild = Pathname.pwd+'macbuild' - mkdir macbuild - Dir.chdir macbuild args = ["--prefix=#{prefix}", "--enable-pic", "--enable-vp8"] @@ -27,10 +24,16 @@ class Libvpx < Formula args << "--enable-mem-tracker" if ARGV.include? "--mem-tracker" args << "--enable-postproc" if ARGV.include? "--postproc" args << "--enable-postproc-visualizer" if ARGV.include? "--visualizer" - # Configure detects 32-bit CPUs incorrectly. - args << "--target=generic-gnu" unless MacOS.prefer_64_bit? - system "../configure", *args - system "make" - system "make install" + + # Unless the arch is specified, configure tries to build universal. + # Patches welcome to detect and apply the real arch strings on each platform. + args << "--target=generic-gnu" + + mkdir 'macbuild' + cd 'macbuild' do + system "../configure", *args + system "make" + system "make install" + end end end |
