Skip to content

Commit

Permalink
jasper 1.900.21
Browse files Browse the repository at this point in the history
Closes #6649.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Nov 6, 2016
1 parent e47fa58 commit 01bf57e
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions Formula/jasper.rb
@@ -1,8 +1,20 @@
class Jasper < Formula
desc "Library for manipulating JPEG-2000 images"
homepage "https://www.ece.uvic.ca/~frodo/jasper/"
url "https://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.16.tar.gz"
sha256 "349f2261767c51a9e59e37025a027686f45f55cfbb8c46fd55c8697092f9f971"

stable do
url "https://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.21.tar.gz"
sha256 "e9c8a241f80d1cc190c308f5efc6669a98776ed27458643553abee823fadd7b3"

# Remove for > 1.900.21
# Fixes test failure "jpg_mkimage failed; error: cannot load image data"
# Upstream commit "Fixed a bug in the JPEG codec caused by an integral
# promotion problem."
patch do
url "https://github.com/mdadams/jasper/commit/fa6834f.patch"
sha256 "80ca3aaafea9986a90201d36a13b00dc9effdb6c1363c02382c9193b49dd0e7b"
end
end

bottle do
cellar :any
Expand All @@ -11,6 +23,14 @@ class Jasper < Formula
sha256 "f96f470d1cc6bb74af84e3ff908fbb0a5c5d702b9ed06fc238936e5769f690cd" => :yosemite
end

head do
url "https://github.com/mdadams/jasper.git"

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end

option :universal

depends_on "jpeg"
Expand All @@ -22,6 +42,7 @@ class Jasper < Formula

def install
ENV.universal_binary if build.universal?
system "autoreconf", "-fiv" if build.head?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--enable-shared",
Expand Down

0 comments on commit 01bf57e

Please sign in to comment.