jbig2dec 0.12
authorYaakov Selkowitz <yselkowi@redhat.com>
Sun, 29 Nov 2015 06:51:30 +0000 (00:51 -0600)
committerYaakov Selkowitz <yselkowi@redhat.com>
Sun, 29 Nov 2015 06:51:30 +0000 (00:51 -0600)
0.11-no-undefined.patch [deleted file]
0.12-libpng15.patch [new file with mode: 0644]
jbig2dec.cygport

diff --git a/0.11-no-undefined.patch b/0.11-no-undefined.patch
deleted file mode 100644 (file)
index 1a4e73a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- origsrc/jbig2dec-0.11/Makefile.am  2009-07-15 23:44:49.000000000 -0500
-+++ src/jbig2dec-0.11/Makefile.am      2010-08-12 23:01:28.330234300 -0500
-@@ -6,7 +6,7 @@ AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip
- lib_LTLIBRARIES = libjbig2dec.la
- include_HEADERS = jbig2.h
--libjbig2dec_la_LDFLAGS = -version-info @JBIG2DEC_LT_CURRENT@:@JBIG2DEC_LT_REVISION@:@JBIG2DEC_LT_AGE@
-+libjbig2dec_la_LDFLAGS = -version-info @JBIG2DEC_LT_CURRENT@:@JBIG2DEC_LT_REVISION@:@JBIG2DEC_LT_AGE@ -no-undefined
- libjbig2dec_la_SOURCES = jbig2.c \
-       jbig2_arith.c jbig2_arith_int.c jbig2_arith_iaid.c jbig2_huffman.c \
-       jbig2_segment.c jbig2_page.c \
diff --git a/0.12-libpng15.patch b/0.12-libpng15.patch
new file mode 100644 (file)
index 0000000..2e10895
--- /dev/null
@@ -0,0 +1,30 @@
+Backport of commit 70c7f1967f43a94f9f0d6808d6ab5700a120d2fc
+
+--- origsrc/jbig2dec-0.12/jbig2_image_png.c    2014-10-31 08:30:04.000000000 -0500
++++ src/jbig2dec-0.12/jbig2_image_png.c        2015-11-29 00:47:03.469640500 -0600
+@@ -26,7 +26,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <png.h>
+-#include <pngstruct.h>
+ #define CVT_PTR(ptr) (ptr)
+ #include "jbig2.h"
+@@ -40,7 +39,7 @@ jbig2_png_write_data(png_structp png_ptr
+ {
+     png_size_t check;
+-    check = fwrite(data, 1, length, (png_FILE_p)png_ptr->io_ptr);
++    check = fwrite(data, 1, length, (png_FILE_p)png_get_io_ptr(png_ptr));
+     if (check != length) {
+       png_error(png_ptr, "Write Error");
+     }
+@@ -50,7 +49,7 @@ static void
+ jbig2_png_flush(png_structp png_ptr)
+ {
+     png_FILE_p io_ptr;
+-    io_ptr = (png_FILE_p)CVT_PTR((png_ptr->io_ptr));
++    io_ptr = (png_FILE_p)png_get_io_ptr(png_ptr);
+     if (io_ptr != NULL)
+         fflush(io_ptr);
+ }
index 36e9cbff8e4372eb79c5a19e3f2d657270618601..f6628a2713ab535a806c2a561aa25fd4bcf4dfbb 100644 (file)
@@ -1,6 +1,6 @@
 NAME="jbig2dec"
-VERSION=0.11
-RELEASE=3
+VERSION=0.12
+RELEASE=1
 CATEGORY="Graphics"
 SUMMARY="JBIG2 image decoder"
 DESCRIPTION="jbig2dec is a decoder implementation of the JBIG2 image compression
@@ -8,10 +8,9 @@ format. JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit
 monochrome) images at moderately high resolution, and in particular scanned
 paper documents. In this domain it is very efficient, offering compression
 ratios on the order of 100:1."
-HOMEPAGE="http://jbig2dec.sourceforge.net/"
-SRC_URI="http://ghostscript.com/~giles/jbig2/jbig2dec/${NAME}-${VERSION}.tar.xz"
-PATCH_URI="mirror://portage/media-libs/${NAME}/files/${NAME}-0.11-libpng15.patch
-           0.11-no-undefined.patch"
+HOMEPAGE="http://ghostscript.com/"
+SRC_URI="http://downloads.ghostscript.com/public/jbig2dec/jbig2dec-${VERSION}.tar.gz"
+PATCH_URI="0.12-libpng15.patch"
 
 PKG_NAMES="${NAME} lib${NAME}0 lib${NAME}-devel"
 jbig2dec_CONTENTS="usr/bin/*.exe usr/share/"
This page took 0.044904 seconds and 5 git commands to generate.