Set up home structure for authorized_keys
[termux-packages] / disabled-packages / ghostscript / build.sh
CommitLineData
25bea57f
FF
1TERMUX_PKG_HOMEPAGE=http://www.ghostscript.com/
2TERMUX_PKG_DESCRIPTION="Interpreter for the PostScript language and for PDF"
ae4de1d7
G
3TERMUX_PKG_VERSION=9.21
4TERMUX_PKG_SRCURL=https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${TERMUX_PKG_VERSION//.}/ghostpdl-${TERMUX_PKG_VERSION}.tar.gz
5TERMUX_PKG_SHA256=82abf56e96e27cf4d1b17c0671f9ab3c5222454131588a49d06c97a332988e8d
6TERMUX_PKG_DEPENDS="libandroid-support, libtiff, libjpeg-turbo, libpng"
7TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-system-libtiff \
8--enable-little-endian \
9--without-x \
ab81c00b 10--with-arch_h=$TERMUX_PKG_BUILDER_DIR/arch-${TERMUX_ARCH}.h \
ae4de1d7
G
11CCAUX=gcc \
12--build=$TERMUX_BUILD_TUPLE \
13--without-pcl"
25bea57f 14
ae4de1d7
G
15#building with PCL gives:
16# /home/builder/.termux-build/ghostscript/src/pcl/pl/pl.mak:108: recipe for target 'obj/plver.h' failed
17# make: *** [obj/plver.h] Segmentation fault (core dumped)
18# make: *** Deleting file 'obj/plver.h'
19#See also: https://bugs.ghostscript.com/show_bug.cgi?id=695979
25bea57f 20
ae4de1d7
G
21termux_step_post_extract_package () {
22 rm -rdf $TERMUX_PKG_SRCDIR/jpeg
23 rm -rdf $TERMUX_PKG_SRCDIR/libpng
ab81c00b 24 rm -rdf $TERMUX_PKG_SRCDIR/expat $TERMUX_PKG_SRCDIR/jasper $TERMUX_PKG_SRCDIR/freetype $TERMUX_PKG_SRCDIR/lcms $TERMUX_PKG_SRCDIR/tiff
25
ae4de1d7
G
26 if [ -f $PREFIX/include/libandroid-support/time.h ]; then
27 mv $PREFIX/include/libandroid-support/time.h $PREFIX/include/libandroid-support/time.h_
28 fi
29 # Patch needed to libandroid's time.h? ghostscript/src/base/stat_.h includes stat_.h which includes time.h which creates a loop.
30 # See http://stackoverflow.com/questions/14947691/c-system-file-bits-stat-h-suddenly-breaks-with-error-field-st-atim-has-inc
31}
29922181 32
ae4de1d7
G
33termux_step_post_make_install () {
34 if [ -f $PREFIX/include/libandroid-support/time.h_ ]; then
35 mv $PREFIX/include/libandroid-support/time.h_ $PREFIX/include/libandroid-support/time.h
36 fi
25bea57f 37}