7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
26 lines
639 B
Ruby
26 lines
639 B
Ruby
require 'formula'
|
|
|
|
class Swftools <Formula
|
|
url 'http://www.swftools.org/swftools-0.9.0.tar.gz'
|
|
homepage 'http://www.swftools.org'
|
|
md5 '946e7c692301a332745d29140bc74e55'
|
|
|
|
depends_on 'jpeg'
|
|
depends_on 'lame' => :optional
|
|
|
|
def install
|
|
ENV.x11 # Add to PATH for freetype-config on Snow Leopard
|
|
ENV.minimal_optimization
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
`swfc` segfaults under Snow Leopard.
|
|
Please persue this issue with the softare vendor:
|
|
http://lists.nongnu.org/mailman/listinfo/swftools-common
|
|
EOS
|
|
end
|
|
end
|