termux-packages/packages/ghostscript/build.sh
Henrik Grimler 52103c6129 Updates for some packages (#5070)
* imagemagick: update to 7.0.10.2

* fossil: update to 2.10

Had to disable tests checking for sqlite3 as they try to run cross-compiled tests

* automake: update to 1.16.2

* ghostscript: update to 9.52

* cmake: update to 3.17.0

* git: update to 2.26.0

* krb5: update to 1.18

* ldc: update to 1.20.1
2020-03-24 15:27:02 +01:00

27 lines
1.0 KiB
Bash

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_VERSION=9.52
TERMUX_PKG_SRCURL=https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${TERMUX_PKG_VERSION//.}/ghostpdl-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8f6e48325c106ae033bbae3e55e6c0b9ee5c6b57e54f7cd24fb80a716a93b06a
TERMUX_PKG_DEPENDS="libandroid-support, libiconv, libtiff, libjpeg-turbo, libpng, libexpat, freetype, fontconfig, libidn, littlecms, openjpeg"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_lib_lcms2__cmsCreateMutex=yes
CCAUX=gcc
--build=$TERMUX_BUILD_TUPLE
--with-arch_h=$TERMUX_PKG_BUILDER_DIR/arch-${TERMUX_ARCH}.h
--without-pcl
--without-x
--with-system-libtiff
"
termux_step_post_extract_package() {
rm -rdf $TERMUX_PKG_SRCDIR/{jpeg,libpng,expat,jasper,freetype,lcms2,tiff,openjpeg}
}
termux_step_pre_configure() {
# Use `make -j1` otherwise build may fail with error
# about missing 'arch.h'.
TERMUX_MAKE_PROCESSES=1
}