New package: jbig2dec-0.11.
This commit is contained in:
parent
6cd60fb610
commit
2e8168dbce
5 changed files with 74 additions and 0 deletions
|
@ -1434,3 +1434,4 @@ libgfapi.so.0 libglusterfs-3.4.1_1
|
||||||
libsnapper.so.2 libsnapper-0.1.7_1
|
libsnapper.so.2 libsnapper-0.1.7_1
|
||||||
libtsm.so.3 libtsm-3_1
|
libtsm.so.3 libtsm-3_1
|
||||||
libxine.so.2 libxine-1.2.4_1
|
libxine.so.2 libxine-1.2.4_1
|
||||||
|
libjbig2dec.so.0 libjbig2dec-0.11_1
|
||||||
|
|
1
srcpkgs/jbig2dec-devel
Symbolic link
1
srcpkgs/jbig2dec-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
jbig2dec
|
31
srcpkgs/jbig2dec/patches/jbig2dec-0.11-libpng15.patch
Normal file
31
srcpkgs/jbig2dec/patches/jbig2dec-0.11-libpng15.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
--- configure.ac
|
||||||
|
+++ configure.ac
|
||||||
|
@@ -45,7 +45,7 @@
|
||||||
|
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"
|
||||||
|
--- jbig2_image_png.c
|
||||||
|
+++ jbig2_image_png.c
|
||||||
|
@@ -33,7 +33,7 @@
|
||||||
|
{
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
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);
|
||||||
|
}
|
40
srcpkgs/jbig2dec/template
Normal file
40
srcpkgs/jbig2dec/template
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# Template file for 'jbig2dec'
|
||||||
|
pkgname=jbig2dec
|
||||||
|
version=0.11
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-configure
|
||||||
|
hostmakedepends="automake libtool pkg-config"
|
||||||
|
makedepends="libpng-devel"
|
||||||
|
short_desc="Decoder implementation of the JBIG2 image compression format"
|
||||||
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
license="GPL-3"
|
||||||
|
homepage="http://jbig2dec.sourceforge.net/"
|
||||||
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
||||||
|
checksum=7e2d8330b36f2765da22043d174827bee0f30db8d78c330904f363275c7dd0b9
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
autoreconf -fi
|
||||||
|
}
|
||||||
|
|
||||||
|
jbig2dec-devel_package() {
|
||||||
|
short_desc+=" - development files"
|
||||||
|
depends="libjbig2dec>=${version}_${revision}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include
|
||||||
|
vmove "usr/lib/*.a"
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libjbig2dec_package() {
|
||||||
|
short_desc+=" - runtime library"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/*.so.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
jbig2dec_package() {
|
||||||
|
pkg_install() {
|
||||||
|
vmove all
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/libjbig2dec
Symbolic link
1
srcpkgs/libjbig2dec
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
jbig2dec
|
Loading…
Add table
Reference in a new issue