put shebang in scripts
[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.6-3"
4 TERMUX_PKG_SRCURL=https://dl.bintray.com/termux/upstream/ImageMagick-${TERMUX_PKG_VERSION}.tar.xz
5 TERMUX_PKG_SHA256=720a9f60a414d35ba13bc6fe592842de27cc6061b03866096d04038d953c89fc
6 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
7 --disable-largefile
8 --without-x
9 --without-gvc
10 --without-ltdl
11 --with-magick-plus-plus=no
12 --with-bzlib=no
13 --with-xml=yes
14 --with-lzma
15 ac_cv_func_ftime=no
16 ac_cv_header_complex_h=no"
17 TERMUX_PKG_RM_AFTER_INSTALL="
18 bin/Magick-config
19 bin/MagickCore-config
20 bin/MagickWand-config
21 bin/Wand-config
22 share/ImageMagick-6/francais.xml
23 share/man/man1/Magick-config.1
24 share/man/man1/MagickCore-config.1
25 share/man/man1/MagickWand-config.1
26 share/man/man1/Wand-config.1
27 "
28 TERMUX_PKG_DEPENDS="fftw, pango, glib, libbz2, libjpeg-turbo, liblzma, libpng, libtiff, libxml2, openjpeg, littlecms"
29
30 termux_step_pre_configure() {
31 if [ $TERMUX_ARCH = "i686" ]; then
32 # Avoid "libMagickCore-7.Q16HDRI.so: error: undefined reference to '__atomic_load'":
33 LDFLAGS+=" -latomic"
34 fi
35 }