leptonica: Revbump revdeps to rebuild

due to SOVERSION bump and SONAME change.
This commit is contained in:
Tee KOBAYASHI 2022-12-23 00:33:42 +09:00 committed by xtkoba
parent af80b39995
commit 48c04ad503
7 changed files with 75 additions and 3 deletions

View File

@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
_COMMIT=ea6a40a2cbf05efb00f3418f2d0ad71232565beb
TERMUX_PKG_VERSION=2019.09.08
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://github.com/agl/jbig2enc.git
TERMUX_PKG_GIT_BRANCH=master
TERMUX_PKG_DEPENDS="giflib, leptonica, libc++, libjpeg-turbo, libpng, libtiff, libwebp, python, zlib"

View File

@ -9,3 +9,12 @@
# this should fix automake 1.12 build and compatible with automake 1.11
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
@@ -73,7 +73,7 @@
fi],
[libtool_patch_use_rpath=$enable_rpath])
-AC_CHECK_LIB([lept], [findFileFormatStream], [], [
+AC_CHECK_LIB([leptonica], [findFileFormatStream], [], [
echo "Error! Leptonica not detected."
exit -1
])

View File

@ -0,0 +1,42 @@
--- a/src/jbig2.cc
+++ b/src/jbig2.cc
@@ -29,6 +29,8 @@
#endif
#include <leptonica/allheaders.h>
+#include <leptonica/array_internal.h>
+#include <leptonica/pix_internal.h>
#include "jbig2enc.h"
--- a/src/jbig2enc.cc
+++ b/src/jbig2enc.cc
@@ -24,6 +24,8 @@
#include <string.h>
#include <leptonica/allheaders.h>
+#include <leptonica/array_internal.h>
+#include <leptonica/pix_internal.h>
#include <math.h>
#if defined(sun)
@@ -206,7 +208,7 @@
numaSetValue(ctx->classer->naclass, i, new_representant);
}
}
- pixChangeRefcount(ctx->classer->pixat->pix[new_representant],pixGetRefcount(ctx->classer->pixat->pix[second_template]));
+ ctx->classer->pixat->pix[new_representant]->refcount += ctx->classer->pixat->pix[second_template]->refcount;
}
return 0;
}
--- a/src/jbig2sym.cc
+++ b/src/jbig2sym.cc
@@ -29,6 +29,8 @@
#include <stdio.h>
#include <leptonica/allheaders.h>
+#include <leptonica/array_internal.h>
+#include <leptonica/pix_internal.h>
#include <math.h>

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A tool that optimizes PDF files for viewing on mobile re
TERMUX_PKG_LICENSE="AGPL-V3"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.53
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SRCURL=https://www.willus.com/k2pdfopt/src/k2pdfopt_v${TERMUX_PKG_VERSION}_src.zip
TERMUX_PKG_SHA256=58c1b0647be5237570c110b0bb77eb78fab384282a2648edb59eac673070959b
TERMUX_PKG_DEPENDS="djvulibre, gsl, leptonica, libjasper, libjpeg-turbo, libpng, mupdf, zlib"

View File

@ -0,0 +1,20 @@
--- a/willuslib/ocrtess.c
+++ b/willuslib/ocrtess.c
@@ -26,6 +26,7 @@
#include <ctype.h>
#include <locale.h>
#include <leptonica/allheaders.h>
+#include <leptonica/pix_internal.h>
#include "willus.h"
#ifdef HAVE_TESSERACT_LIB
--- a/willuslib/wleptonica.c
+++ b/willuslib/wleptonica.c
@@ -24,6 +24,7 @@
#ifdef HAVE_LEPTONICA_LIB
#include <leptonica/allheaders.h>
+#include <leptonica/pix_internal.h>
static void wlept_pix_from_bmp(PIX **pixptr,WILLUSBITMAP *bmp);
static void wlept_bmp_from_pix(WILLUSBITMAP *bmp,PIX *pix);

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Lightweight PDF and XPS viewer (library)"
TERMUX_PKG_LICENSE="AGPL-V3"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.21.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://mupdf.com/downloads/archive/mupdf-${TERMUX_PKG_VERSION}-source.tar.gz
TERMUX_PKG_SHA256=b24ddbe12506cc82de08d5cd494614ba08346f8175db1d98bcf938ff94925a54
TERMUX_PKG_DEPENDS="freetype, gumbo-parser, harfbuzz, jbig2dec, leptonica, libc++, libjpeg-turbo, openjpeg, tesseract, zlib"

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Tesseract is probably the most accurate open source OCR
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=5.2.0
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://github.com/tesseract-ocr/tesseract/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=eba4deb2f92a3f89a6623812074af8c53b772079525b3c263aa70bbf7b748b3c
TERMUX_PKG_AUTO_UPDATE=true