aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/swftools.rb
blob: 950b1a6e2da35b5788943b5b861d0c59bd3864be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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.minimal_optimization

    # Need to add freetype-config and other X11 utils to the path
    ENV.x11
    ENV.append 'PATH', '/usr/x11/bin', ':'

    system "./configure", "--prefix=#{prefix}"
    system "make"
    system "make install"
  end

  def caveats
    <<-EOS
    swfc segfaults under Snow Leopard. Please persue this issue
    with the softare vendor:
      http://lists.nongnu.org/mailman/listinfo/swftools-common
    EOS
  end
end