blob: 1647a621f1611da066fb6a598f68d99d7f0c2ea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  | 
require "formula"
class Libbpg < Formula
  homepage "http://bellard.org/bpg/"
  url "http://bellard.org/bpg/libbpg-0.9.4.tar.gz"
  sha1 "6c1c950c0ff9a051e4f48bf2ff63f73bc859830d"
  bottle do
    cellar :any
    sha1 "86e6f94e92e03d116d260e8fcf06399b0ad93154" => :yosemite
    sha1 "b620193447e678cee2397193c52f0f38ba44a3a8" => :mavericks
    sha1 "297f3aa90675c20e1241da9adcf61e9cfafaf248" => :mountain_lion
  end
  depends_on "libpng"
  depends_on "jpeg"
  def install
    bin.mkpath
    system "make", "install", "prefix=#{prefix}", "CONFIG_APPLE=y"
  end
  test do
    system "#{bin}/bpgenc", test_fixtures("test.png")
  end
end
  |