homebrew-core/Formula/webp.rb

26 lines
749 B
Ruby
Raw Normal View History

require 'formula'
class Webp < Formula
homepage 'http://code.google.com/speed/webp/'
url 'https://webp.googlecode.com/files/libwebp-0.3.1.tar.gz'
sha1 '52e3d2b6c0b80319baa33b8ebed89618769d9dd8'
2012-09-02 08:14:31 +00:00
depends_on :libpng
depends_on 'jpeg' => :recommended
def install
system "./configure", "--disable-dependency-tracking",
"--enable-libwebpmux",
"--enable-libwebpdemux",
"--enable-libwebpdecoder",
"--prefix=#{prefix}"
system "make install"
end
2012-09-02 08:14:31 +00:00
2013-02-02 05:12:57 +00:00
test do
system "#{bin}/cwebp", \
2013-07-12 14:44:53 +00:00
"/usr/share/doc/cups/images/cups.png", "-o", "webp_test.png"
2013-02-02 05:12:57 +00:00
system "#{bin}/dwebp", "webp_test.png", "-o", "webp_test.webp"
2012-09-02 08:14:31 +00:00
end
end