2014-12-06 00:04:58 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Libbpg < Formula
|
|
|
|
homepage "http://bellard.org/bpg/"
|
2015-01-17 02:55:36 +00:00
|
|
|
url "http://bellard.org/bpg/libbpg-0.9.5.tar.gz"
|
|
|
|
sha1 "1eee24f9d9d381b574b86a28d2af1073ab07bb55"
|
2014-12-06 00:04:58 +00:00
|
|
|
|
2014-12-06 16:04:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-01-17 03:22:03 +00:00
|
|
|
sha1 "b3484df329f2b40968a1d70f6a2b4e9df8b15c4d" => :yosemite
|
|
|
|
sha1 "dc8a09cf7f7ebc452aa0d27caa78b4fb1d26b8c1" => :mavericks
|
|
|
|
sha1 "ae5340b8b0a353282bafea08edce8146cf6d5106" => :mountain_lion
|
2014-12-06 16:04:27 +00:00
|
|
|
end
|
|
|
|
|
2014-12-06 00:04:58 +00:00
|
|
|
depends_on "libpng"
|
|
|
|
depends_on "jpeg"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bin.mkpath
|
2014-12-07 17:17:31 +00:00
|
|
|
system "make", "install", "prefix=#{prefix}", "CONFIG_APPLE=y"
|
2014-12-06 00:04:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-12-06 17:08:34 +00:00
|
|
|
system "#{bin}/bpgenc", test_fixtures("test.png")
|
2014-12-06 00:04:58 +00:00
|
|
|
end
|
|
|
|
end
|