From 201cec26e44a5b9916608abbcd43311a3074f91d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 31 Jan 2013 18:23:33 -0600 Subject: swftools: use optional deps --- Library/Formula/swftools.rb | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'Library') diff --git a/Library/Formula/swftools.rb b/Library/Formula/swftools.rb index 55a5a8ef8..6bb024b72 100644 --- a/Library/Formula/swftools.rb +++ b/Library/Formula/swftools.rb @@ -11,16 +11,12 @@ class Swftools < Formula sha1 'd7cf8874c4187d2edd3e40d20ba325ca17b91973' option 'with-xpdf', 'Build with PDF support' - option 'with-jpeg', 'Build with JPEG support' - option 'with-lame', 'Build with MP3 support' - option 'with-giflib', 'Build with GIF support' - option 'with-fftw', 'Build with FFTW support' - depends_on :x11 if build.include? "with-xpdf" - depends_on 'jpeg' if build.include? "with-jpeg" - depends_on 'lame' if build.include? "with-lame" - depends_on 'giflib' if build.include? "with-giflib" - depends_on 'fftw' if build.include? "with-fftw" + depends_on :x11 if build.with? "xpdf" + depends_on 'jpeg' => :optional + depends_on 'lame' => :optional + depends_on 'giflib' => :optional + depends_on 'fftw' => :optional def patches # Fixes a conftest for libfftwf.dylib that mistakenly calls fftw_malloc() @@ -31,7 +27,7 @@ class Swftools < Formula end def install - XpdfTarball.new.brew { (buildpath+'lib/pdf').install Dir['*'] } if build.include? "with-xpdf" + XpdfTarball.new.brew { (buildpath+'lib/pdf').install Dir['*'] } if build.with? "xpdf" system "./configure", "--prefix=#{prefix}" system "make" system "make install" -- cgit v1.2.3