homebrew-core/Formula/webp.rb

24 lines
657 B
Ruby
Raw Normal View History

require 'formula'
class Webp < Formula
homepage 'http://code.google.com/speed/webp/'
url 'http://webp.googlecode.com/files/libwebp-0.3.0.tar.gz'
sha1 'a20acf2f180d3eae77e24a63371b01fa412fa2f1'
2012-09-02 08:14:31 +00:00
depends_on :libpng
depends_on 'jpeg' => :recommended
def install
system "./configure", "--disable-dependency-tracking",
"--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", \
"/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png", \
"-o", "webp_test.png"
system "#{bin}/dwebp", "webp_test.png", "-o", "webp_test.webp"
2012-09-02 08:14:31 +00:00
end
end