From f797747b458b00f7441f27f09c5ffddea631b62f Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 21 Oct 2012 12:52:51 -0700 Subject: libvpx: fix audit --- Library/Formula/libvpx.rb | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'Library/Formula') 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. -- cgit v1.2.3