2018-04-02 00:08:22 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.ghostscript.com/
|
2017-08-11 13:25:55 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Interpreter for the PostScript language and for PDF"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="AGPL-V3"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-09-07 14:08:13 +02:00
|
|
|
TERMUX_PKG_VERSION=9.54.0
|
2017-08-11 13:25:55 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${TERMUX_PKG_VERSION//.}/ghostpdl-${TERMUX_PKG_VERSION}.tar.gz
|
2021-09-07 14:08:13 +02:00
|
|
|
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
|
2017-11-07 18:34:21 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_lib_lcms2__cmsCreateMutex=yes
|
2021-09-07 14:08:13 +02:00
|
|
|
ac_cv_lib_pthread_pthread_create=yes
|
2017-11-07 18:34:21 +01:00
|
|
|
CCAUX=gcc
|
|
|
|
--build=$TERMUX_BUILD_TUPLE
|
|
|
|
--with-arch_h=$TERMUX_PKG_BUILDER_DIR/arch-${TERMUX_ARCH}.h
|
2021-09-07 14:08:13 +02:00
|
|
|
--disable-cups
|
|
|
|
--disable-compile-inits
|
2017-11-07 18:34:21 +01:00
|
|
|
--without-pcl
|
|
|
|
--without-x
|
|
|
|
--with-system-libtiff
|
|
|
|
"
|
2017-08-11 13:25:55 +02:00
|
|
|
|
2020-07-16 23:58:48 +02:00
|
|
|
termux_step_post_get_source() {
|
2019-02-09 12:16:54 +01:00
|
|
|
rm -rdf $TERMUX_PKG_SRCDIR/{jpeg,libpng,expat,jasper,freetype,lcms2,tiff,openjpeg}
|
2017-08-11 13:25:55 +02:00
|
|
|
}
|
2019-05-23 20:32:55 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
# Use `make -j1` otherwise build may fail with error
|
|
|
|
# about missing 'arch.h'.
|
|
|
|
TERMUX_MAKE_PROCESSES=1
|
2021-09-07 14:08:13 +02:00
|
|
|
CPPFLAGS+=" -I${TERMUX_STANDALONE_TOOLCHAIN}/sysroot/usr/include/c++/v1"
|
2019-05-23 20:32:55 +02:00
|
|
|
}
|