aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gifsicle.rb
blob: d1cccc0c16b2977ca6fda6ee6b4ff3220d0728f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require "formula"

class Gifsicle < Formula
  homepage "http://www.lcdf.org/gifsicle/"
  url "http://www.lcdf.org/gifsicle/gifsicle-1.84.tar.gz"
  sha1 "131a3e53a1d49318b54f9c6f81a62726384e95d7"

  depends_on :x11 => :optional

  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]

    args << "--disable-gifview" if build.without? "x11"

    system "./configure", *args
    system "make install"
  end
end