homebrew-core/Formula/libbpg.rb

27 lines
637 B
Ruby
Raw Normal View History

require "formula"
class Libbpg < Formula
homepage "http://bellard.org/bpg/"
url "http://bellard.org/bpg/libbpg-0.9.4.tar.gz"
sha1 "6c1c950c0ff9a051e4f48bf2ff63f73bc859830d"
2014-12-06 16:04:27 +00:00
bottle do
cellar :any
2014-12-21 00:02:36 +00:00
sha1 "86e6f94e92e03d116d260e8fcf06399b0ad93154" => :yosemite
sha1 "b620193447e678cee2397193c52f0f38ba44a3a8" => :mavericks
sha1 "297f3aa90675c20e1241da9adcf61e9cfafaf248" => :mountain_lion
2014-12-06 16:04:27 +00:00
end
depends_on "libpng"
depends_on "jpeg"
def install
bin.mkpath
system "make", "install", "prefix=#{prefix}", "CONFIG_APPLE=y"
end
test do
2014-12-06 17:08:34 +00:00
system "#{bin}/bpgenc", test_fixtures("test.png")
end
end