aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gifsicle.rb
blob: 695b43a7c3d65c846d0380627cc2678b6c1483f7 (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.82.tar.gz"
  sha1 "2771af4ab39064df04a538bcb6f777d2ba3d628b"

  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