From 6495b7d412e10b83d4795183f6bf861ac4c491fa Mon Sep 17 00:00:00 2001 From: Jeeva Date: Tue, 7 Sep 2021 17:38:13 +0530 Subject: [PATCH] ghostscript: update to 9.54.0 --- packages/ghostscript/build.sh | 12 ++++++++---- packages/ghostscript/configure_pthread.patch | 11 +++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 packages/ghostscript/configure_pthread.patch diff --git a/packages/ghostscript/build.sh b/packages/ghostscript/build.sh index 6be266091..33268b813 100644 --- a/packages/ghostscript/build.sh +++ b/packages/ghostscript/build.sh @@ -2,16 +2,19 @@ TERMUX_PKG_HOMEPAGE=https://www.ghostscript.com/ TERMUX_PKG_DESCRIPTION="Interpreter for the PostScript language and for PDF" TERMUX_PKG_LICENSE="AGPL-V3" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=9.53.2 +TERMUX_PKG_VERSION=9.54.0 TERMUX_PKG_SRCURL=https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${TERMUX_PKG_VERSION//.}/ghostpdl-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=5559b2d094a6b977e7a71e7e9f587f1addc608137fdaae10c19faa332bc369ba -TERMUX_PKG_REVISION=1 -TERMUX_PKG_DEPENDS="libandroid-support, libiconv, libtiff, libjpeg-turbo, libpng, libexpat, freetype, fontconfig, libidn, littlecms, openjpeg" +TERMUX_PKG_SHA256=63e54cddcdf48ea296b6315353f86b8a622d4e46959b10d536297e006b85687b +TERMUX_PKG_DEPENDS="libandroid-support, libiconv, libtiff, libjpeg-turbo, libpng, libexpat, freetype, libidn, littlecms, openjpeg" +TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" ac_cv_lib_lcms2__cmsCreateMutex=yes +ac_cv_lib_pthread_pthread_create=yes CCAUX=gcc --build=$TERMUX_BUILD_TUPLE --with-arch_h=$TERMUX_PKG_BUILDER_DIR/arch-${TERMUX_ARCH}.h +--disable-cups +--disable-compile-inits --without-pcl --without-x --with-system-libtiff @@ -25,4 +28,5 @@ termux_step_pre_configure() { # Use `make -j1` otherwise build may fail with error # about missing 'arch.h'. TERMUX_MAKE_PROCESSES=1 + CPPFLAGS+=" -I${TERMUX_STANDALONE_TOOLCHAIN}/sysroot/usr/include/c++/v1" } diff --git a/packages/ghostscript/configure_pthread.patch b/packages/ghostscript/configure_pthread.patch new file mode 100644 index 000000000..1ebaf2ff0 --- /dev/null +++ b/packages/ghostscript/configure_pthread.patch @@ -0,0 +1,11 @@ +--- src/configure 2021-03-30 07:40:28.000000000 +0000 ++++ ../configure 2021-09-06 11:33:57.601483462 +0000 +@@ -6748,7 +6748,7 @@ + if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : + + SYNC=posync; +- PTHREAD_LIBS="-lpthread" ++ PTHREAD_LIBS="" + + fi +