diff options
| author | Adam Vandenberg | 2012-10-21 12:52:51 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-21 13:24:03 -0700 |
| commit | f797747b458b00f7441f27f09c5ffddea631b62f (patch) | |
| tree | c8ce4142bfd3edcc518e155f55ce542c162c4a69 /Library | |
| parent | 844ff13e4312d609f811c455e881063bf1cd11bf (diff) | |
| download | homebrew-f797747b458b00f7441f27f09c5ffddea631b62f.tar.bz2 | |
libvpx: fix audit
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libvpx.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/libvpx.rb b/Library/Formula/libvpx.rb index aa78e06ab..ed9165be8 100644 --- a/Library/Formula/libvpx.rb +++ b/Library/Formula/libvpx.rb @@ -7,13 +7,9 @@ class Libvpx < Formula depends_on 'yasm' => :build - def options - [ - ['--gcov', 'Enable code coverage'], - ['--mem-tracker', 'Enable tracking memory usage'], - ['--visualizer', 'Enable post processing visualizer'] - ] - end + option 'gcov', 'Enable code coverage' + option 'mem-tracker', 'Enable tracking memory usage' + option 'visualizer', 'Enable post processing visualizer' # Fixes build error on ML, discussed in: # https://github.com/mxcl/homebrew/issues/12567 @@ -27,9 +23,9 @@ class Libvpx < Formula "--enable-pic", "--disable-examples", "--disable-runtime-cpu-detect"] - args << "--enable-gcov" if ARGV.include? "--gcov" and not ENV.compiler == :clang - args << "--enable-mem-tracker" if ARGV.include? "--mem-tracker" - args << "--enable-postproc-visualizer" if ARGV.include? "--visualizer" + args << "--enable-gcov" if build.include? "gcov" and not ENV.compiler == :clang + args << "--enable-mem-tracker" if build.include? "mem-tracker" + args << "--enable-postproc-visualizer" if build.include? "visualizer" # see http://code.google.com/p/webm/issues/detail?id=401 # Configure misdetects 32-bit 10.6. |
