-TERMUX_PKG_DEPENDS="imagemagick"
-TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-pthread --disable-video --without-xshm --without-xv --without-gtk --without-qt --without-python --mandir=$TERMUX_PREFIX/share/man"
+TERMUX_PKG_SHA256=234efb39dbbe5cef4189cc76f37afbe3cfcfb45ae52493bfe8e191318bdbadc6
+TERMUX_PKG_DEPENDS="imagemagick, libjpeg-turbo"
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-pthread
+--disable-video --without-xshm --without-xv
+--without-x --without-gtk --without-qt
+--without-python --mandir=$TERMUX_PREFIX/share/man"
+
+termux_step_pre_configure () {
+ autoconf
+}