diff options
| author | David Christenson | 2014-07-09 00:34:49 -0600 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-09 10:36:03 -0700 |
| commit | 0b7875c3e3dfb1965991985c9508b63ec6e13cf3 (patch) | |
| tree | d241f355b285a2ebfcabd089fcb7a0a057861700 /Library/Formula | |
| parent | 957e1f0847181b1a7a3ef5427881b580482e7ee4 (diff) | |
| download | homebrew-0b7875c3e3dfb1965991985c9508b63ec6e13cf3.tar.bz2 | |
mozjpeg 1.0.1 (new formula)
Add mozjpeg, a JPEG encoder created by Mozilla that focuses on
efficient encoding.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mozjpeg.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/mozjpeg.rb b/Library/Formula/mozjpeg.rb new file mode 100644 index 000000000..87ff3d525 --- /dev/null +++ b/Library/Formula/mozjpeg.rb @@ -0,0 +1,31 @@ +require "formula" + +class Mozjpeg < Formula + homepage "https://github.com/mozilla/mozjpeg" + url "https://github.com/mozilla/mozjpeg/archive/v1.0.1.tar.gz" + sha1 "daa28d6396a66d04b92fad223b763dd306d68bd9" + + head "https://github.com/mozilla/mozjpeg.git" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + depends_on "nasm" => :build + + keg_only "mozjpeg is not linked to prevent conflicts with the standard libjpeg." + + def install + system "autoreconf", "-i" + system "./configure", "--prefix=#{prefix}", + "--disable-dependency-tracking", + "--with-jpeg8" + system "make", "install" + end + + test do + system "#{bin}/jpegtran", "-crop", "500x500+200+500", + "-transpose", "-optimize", + "-outfile", "test.jpg", + "/System/Library/CoreServices/DefaultDesktop.jpg" + end +end |
