termux-packages/packages/ghostscript/build.sh

28 lines
1.0 KiB
Bash
Raw Normal View History

2018-04-02 00:08:22 +02:00
TERMUX_PKG_HOMEPAGE=https://www.ghostscript.com/
TERMUX_PKG_DESCRIPTION="Interpreter for the PostScript language and for PDF"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="AGPL-V3"
2019-11-24 19:46:00 +01:00
TERMUX_PKG_VERSION=9.50
TERMUX_PKG_SRCURL=https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${TERMUX_PKG_VERSION//.}/ghostpdl-${TERMUX_PKG_VERSION}.tar.gz
2020-01-13 02:00:07 +01:00
TERMUX_PKG_SHA256=dd94c5a06c03c58b47b929d03260f491d4807eaf5be83abd283278927b11c9ee
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
--enable-little-endian
--with-arch_h=$TERMUX_PKG_BUILDER_DIR/arch-${TERMUX_ARCH}.h
--without-pcl
--without-x
--with-system-libtiff
"
termux_step_post_extract_package() {
2019-02-09 12:16:54 +01:00
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
}