diff --git a/leptonica/PSPBUILD b/leptonica/PSPBUILD index 54096dd..3e84793 100644 --- a/leptonica/PSPBUILD +++ b/leptonica/PSPBUILD @@ -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/" @@ -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 diff --git a/leptonica/leptonica-1.84.1-PSP.patch b/leptonica/leptonica-1.84.1-PSP.patch index 186d4b9..4c777b2 100644 --- a/leptonica/leptonica-1.84.1-PSP.patch +++ b/leptonica/leptonica-1.84.1-PSP.patch @@ -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