Files
Misty De Meo 89852c9206 add G3 bottles for several packages
These bottles were built by Sevan; I've just handled the uploads.
2025-12-22 00:24:22 +00:00

47 lines
1.5 KiB
Ruby

class Webp < Formula
desc "Image format providing lossless and lossy compression for web images"
homepage "https://developers.google.com/speed/webp/"
url "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0.tar.gz"
sha256 "e4ab7009bf0629fd11982d4c2aa83964cf244cffba7347ecd39019a9e38c4564"
license "BSD-3-Clause"
bottle do
cellar :any
sha256 "523426ddf1491aba9808f8a08bd3e888f7107ea6813476c545167fdd73be70ed" => :tiger_g3
end
head do
url "https://chromium.googlesource.com/webm/libwebp.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
option :universal
option "with-tests", "Build and run the test suite"
depends_on "giflib"
depends_on "jpeg"
depends_on "libpng"
depends_on "libtiff"
def install
system "./autogen.sh" if build.head?
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
"--enable-libwebpmux",
"--enable-libwebpdemux",
"--enable-libwebpdecoder",
"--prefix=#{prefix}"
system "make", "check" if build.with?("tests") || build.bottle?
system "make", "install"
end
test do
system "#{bin}/cwebp", test_fixtures("test.png"), "-o", "webp_test.png"
system "#{bin}/dwebp", "webp_test.png", "-o", "webp_test.webp"
assert File.exist?("webp_test.webp")
end
end