| 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-4" |
| 4 | TERMUX_PKG_SHA256=11127416dfdf2c99f33c671b76a0322fa5d7453460896840f5581aa9afcd750e |
| 5 | TERMUX_PKG_SRCURL=https://github.com/ImageMagick/ImageMagick/archive/${TERMUX_PKG_VERSION}.tar.gz |
| 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 | } |