aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/swftools.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-31 18:23:33 -0600
committerJack Nagel2013-01-31 18:23:33 -0600
commit201cec26e44a5b9916608abbcd43311a3074f91d (patch)
tree61866de61feb3bd92f061a204a83dd2a6edc4285 /Library/Formula/swftools.rb
parent3f8e64cb4edd2e1209a7b598bfe56b60ddfce00a (diff)
downloadhomebrew-201cec26e44a5b9916608abbcd43311a3074f91d.tar.bz2
swftools: use optional deps
Diffstat (limited to 'Library/Formula/swftools.rb')
-rw-r--r--Library/Formula/swftools.rb16
1 files changed, 6 insertions, 10 deletions
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"