Skip to content

Commit

Permalink
Merge pull request #169 from diamant3/update-leptonica-package
Browse files Browse the repository at this point in the history
update leptonica package
  • Loading branch information
sharkwouter authored Jun 17, 2024
2 parents c5dc5e9 + 8731b2f commit cf0bf8b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
5 changes: 1 addition & 4 deletions leptonica/PSPBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname=leptonica
pkgver=1.84.1
pkgrel=2
pkgrel=3
pkgdesc="An open source C library for efficient image processing and image analysis operations"
arch=('mips')
url="http://www.leptonica.org/"
Expand All @@ -10,19 +10,16 @@ makedepends=()
optdepends=()
source=(
"https://github.com/DanBloomberg/leptonica/releases/download/${pkgver}/$pkgname-${pkgver}.tar.gz"
"https://github.com/pspdev/newlib/raw/master/newlib/libc/sys/phoenix/realpath.c"
"${pkgname}-${pkgver}-PSP.patch"
)
sha256sums=(
"2b3e1254b1cca381e77c819b59ca99774ff43530209b9aeb511e1d46588a64f6"
"fcc13a98886eb6e2fdbff6a04aa4fdcf3a6c6b6dff8c019a9698303e06722661"
"SKIP"
)

prepare() {
cd "$pkgname-${pkgver}"

mv ../realpath.c src
patch -p1 < ../${pkgname}-${pkgver}-PSP.patch

sed -i 's#@prefix@#${PSPDEV}/psp#' lept.pc.in
Expand Down
19 changes: 0 additions & 19 deletions leptonica/leptonica-1.84.1-PSP.patch
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
diff --git a/src/Makefile.am b/src/Makefile.am
index 8997c63..5a4b030 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = $(ZLIB_CFLAGS) $(LIBPNG_CFLAGS) $(JPEG_CFLAGS) $(LIBTIFF_CFLAGS) $(LIBWEBP_CFLAGS) $(LIBWEBPMUX_CFLAGS) $(LIBJP2K_CFLAGS)
+AM_CPPFLAGS = $(ZLIB_CFLAGS) $(LIBPNG_CFLAGS) $(JPEG_CFLAGS) $(LIBTIFF_CFLAGS) $(LIBWEBP_CFLAGS) $(LIBWEBPMUX_CFLAGS) $(LIBJP2K_CFLAGS) -DPATH_MAX_SIZE=1024

lib_LTLIBRARIES = libleptonica.la
libleptonica_la_LIBADD = $(LIBPNG_LIBS) $(JPEG_LIBS) $(GIFLIB_LIBS) $(LIBTIFF_LIBS) $(LIBWEBP_LIBS) $(LIBWEBPMUX_LIBS) $(LIBJP2K_LIBS) $(GDI_LIBS) $(LIBM) $(ZLIB_LIBS)
@@ -63,7 +63,7 @@ libleptonica_la_SOURCES = adaptmap.c affine.c \
tiffio.c tiffiostub.c \
utils1.c utils2.c warper.c watershed.c \
webpio.c webpiostub.c webpanimio.c webpanimiostub.c \
- writefile.c zlibmem.c zlibmemstub.c
+ writefile.c zlibmem.c zlibmemstub.c realpath.c

pkginclude_HEADERS = allheaders.h alltypes.h \
array.h array_internal.h \
diff --git a/src/utils1.c b/src/utils1.c
index b8dedd5..c5ec75a 100644
--- a/src/utils1.c
Expand Down

0 comments on commit cf0bf8b

Please sign in to comment.