mathomatic: fix path in TMP_FILE
[termux-packages] / packages / imagemagick / build.sh
1 TERMUX_PKG_HOMEPAGE=https://www.imagemagick.org/
2 TERMUX_PKG_DESCRIPTION="Suite to create, edit, compose, or convert images in a variety of formats"
3 TERMUX_PKG_VERSION="7.0.7-1"
4 TERMUX_PKG_SHA256=5a45e29509dbb23793a9c8db5c47ef1114c1ee82c9ca60053eaf06b3fc243e2c
5 TERMUX_PKG_SRCURL=https://github.com/ImageMagick/ImageMagick/archive/${TERMUX_PKG_VERSION}.tar.gz
6 TERMUX_PKG_FOLDERNAME=ImageMagick-${TERMUX_PKG_VERSION}
7 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
8 --disable-largefile
9 --without-x
10 --without-gvc
11 --without-ltdl
12 --with-magick-plus-plus=no
13 --with-bzlib=no
14 --with-xml=yes
15 --with-lzma
16 ac_cv_func_ftime=no
17 ac_cv_header_complex_h=no"
18 TERMUX_PKG_RM_AFTER_INSTALL="
19 bin/Magick-config
20 bin/MagickCore-config
21 bin/MagickWand-config
22 bin/Wand-config
23 share/ImageMagick-6/francais.xml
24 share/man/man1/Magick-config.1
25 share/man/man1/MagickCore-config.1
26 share/man/man1/MagickWand-config.1
27 share/man/man1/Wand-config.1
28 "
29 TERMUX_PKG_DEPENDS="fftw, pango, glib, libbz2, libjpeg-turbo, liblzma, libpng, libtiff, libxml2, openjpeg, littlecms"
30
31 termux_step_pre_configure() {
32 if [ $TERMUX_ARCH = "i686" ]; then
33 # Avoid "libMagickCore-7.Q16HDRI.so: error: undefined reference to '__atomic_load'":
34 LDFLAGS+=" -latomic"
35 fi
36 }