graphics/jbig2dec 0.11 (NEW)
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Fri, 13 Aug 2010 04:20:43 +0000 (23:20 -0500)
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Fri, 13 Aug 2010 04:20:43 +0000 (23:20 -0500)
0.11-libpng14.patch [new file with mode: 0644]
0.11-no-undefined.patch [new file with mode: 0644]
0.11-png_libs.patch [new file with mode: 0644]
jbig2dec-0.11-1.cygport [new file with mode: 0644]
jbig2dec.hint [new file with mode: 0644]
libjbig2dec-devel.hint [new file with mode: 0644]
libjbig2dec0.hint [new file with mode: 0644]

diff --git a/0.11-libpng14.patch b/0.11-libpng14.patch
new file mode 100644 (file)
index 0000000..3eb189c
--- /dev/null
@@ -0,0 +1,11 @@
+--- origsrc/jbig2dec-0.11/configure.ac 2010-02-02 12:55:40.000000000 -0600
++++ src/jbig2dec-0.11/configure.ac     2010-08-12 23:00:54.521300600 -0500
+@@ -45,7 +45,7 @@ if test "x$ac_cv_want_libpng" != "xno";
+   fi
+   dnl libpng requires pow() which may be in libm
+   AC_SEARCH_LIBS([pow], [m])
+-  AC_CHECK_LIB([png], [png_check_sig], [
++  AC_CHECK_LIB([png], [png_sig_cmp], [
+     AC_CHECK_LIB([z], [deflate], [
+       AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
+       LIBS="-lpng -lz $LIBS"
diff --git a/0.11-no-undefined.patch b/0.11-no-undefined.patch
new file mode 100644 (file)
index 0000000..1a4e73a
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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.11-png_libs.patch b/0.11-png_libs.patch
new file mode 100644 (file)
index 0000000..9eb367b
--- /dev/null
@@ -0,0 +1,30 @@
+--- 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
+@@ -27,7 +27,7 @@ noinst_PROGRAMS = test_sha1 test_huffman
+ jbig2dec_SOURCES = jbig2dec.c sha1.c sha1.h \
+       jbig2.h jbig2_image.h getopt.h \
+       os_types.h config_types.h config_win32.h
+-jbig2dec_LDADD = libjbig2dec.la @LIBOBJS@
++jbig2dec_LDADD = libjbig2dec.la @LIBOBJS@ $(PNG_LIBS)
+ dist_man_MANS = jbig2dec.1
+--- origsrc/jbig2dec-0.11/configure.ac 2010-02-02 12:55:40.000000000 -0600
++++ src/jbig2dec-0.11/configure.ac     2010-08-12 23:00:54.521300600 -0500
+@@ -48,7 +48,7 @@ if test "x$ac_cv_want_libpng" != "xno";
+   AC_CHECK_LIB([png], [png_check_sig], [
+     AC_CHECK_LIB([z], [deflate], [
+       AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
+-      LIBS="-lpng -lz $LIBS"
++      PNG_LIBS="-lpng -lz"
+       AC_LIBOBJ([jbig2_image_png])
+       have_libpng="yes"
+     ])
+@@ -59,6 +59,7 @@ if test "x$have_libpng" != "xyes"; then
+   CFLAGS="$save_cflags"
+   LDFLAGS="$save_ldflags"
+ fi
++AC_SUBST(PNG_LIBS)
+ # Checks for header files.
+ AC_HEADER_STDC
diff --git a/jbig2dec-0.11-1.cygport b/jbig2dec-0.11-1.cygport
new file mode 100644 (file)
index 0000000..e195ac3
--- /dev/null
@@ -0,0 +1,11 @@
+DESCRIPTION="JBIG2 image decoder"
+HOMEPAGE="http://jbig2dec.sourceforge.net/"
+SRC_URI="http://ghostscript.com/~giles/jbig2/jbig2dec/${P}.tar.xz"
+PATCH_URI="0.11-libpng14.patch
+           0.11-no-undefined.patch
+           0.11-png_libs.patch"
+
+PKG_NAMES="${PN} lib${PN}0 lib${PN}-devel"
+jbig2dec_CONTENTS="usr/bin/*.exe usr/share/"
+libjbig2dec0_CONTENTS="usr/bin/cygjbig2dec-0.dll"
+libjbig2dec_devel_CONTENTS="usr/include/ usr/lib/"
diff --git a/jbig2dec.hint b/jbig2dec.hint
new file mode 100644 (file)
index 0000000..55529ee
--- /dev/null
@@ -0,0 +1,8 @@
+category: Graphics
+requires: libgcc1 libjbig2dec0 libpng14
+sdesc: "JBIG2 image decoder (command-line utility)"
+ldesc: "jbig2dec is a decoder implementation of the JBIG2 image 
+compression 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."
diff --git a/libjbig2dec-devel.hint b/libjbig2dec-devel.hint
new file mode 100644 (file)
index 0000000..7c08dd9
--- /dev/null
@@ -0,0 +1,9 @@
+category: Graphics
+requires: libjbig2dec0
+external-source: jbig2dec
+sdesc: "JBIG2 image decoder library (development)"
+ldesc: "jbig2dec is a decoder implementation of the JBIG2 image 
+compression 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."
diff --git a/libjbig2dec0.hint b/libjbig2dec0.hint
new file mode 100644 (file)
index 0000000..81fac5c
--- /dev/null
@@ -0,0 +1,9 @@
+category: Graphics
+requires: libgcc1
+external-source: jbig2dec
+sdesc: "JBIG2 image decoder library (runtime)"
+ldesc: "jbig2dec is a decoder implementation of the JBIG2 image 
+compression 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."
This page took 0.025298 seconds and 5 git commands to generate.