homebrew-core/Formula/jpeg.rb
2018-07-09 13:57:38 +01:00

26 lines
956 B
Ruby

class Jpeg < Formula
desc "Image manipulation library"
homepage "http://www.ijg.org"
# http://www.ijg.org/files/jpegsrc.v9c.tar.gz is temporarily unavailable
url "https://dl.bintray.com/homebrew/mirror/jpeg-9c.tar.gz"
mirror "https://fossies.org/linux/misc/jpegsrc.v9c.tar.gz"
sha256 "650250979303a649e21f87b5ccd02672af1ea6954b911342ea491f351ceb7122"
bottle do
cellar :any
sha256 "178200fd8aa50d5db22c5faa4ca403652d2bf912616c34dfbc6b035a456c2fc6" => :high_sierra
sha256 "8ecc3407d188472a7f775bb44314fff40f0e3b17a83da1666f3fa306d8fffeec" => :sierra
sha256 "931236302e58c53a9728dde5cb93a896b8a39b16d1f195c85381da04ea17c407" => :el_capitan
end
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/djpeg", test_fixtures("test.jpg")
end
end