termux-packages/packages/poppler/build.sh
Tom Yan 1345c7435c poppler: make use of fontconfig
The CMakeLists.txt shipped by upstream assumes that fontconfig is
not available in Android, which is not the case in Termux. Enable
the use of fontconfig with cached value.

Also remove the patch that matters only when poppler is built
without fontconfig support.
2018-07-11 15:04:05 +02:00

15 lines
623 B
Bash

TERMUX_PKG_HOMEPAGE=https://poppler.freedesktop.org/
TERMUX_PKG_DESCRIPTION="PDF rendering library"
TERMUX_PKG_VERSION=0.66.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=2c096431adfb74bc2f53be466889b7646e1b599f28fa036094f3f7235cc9eae7
TERMUX_PKG_SRCURL=https://poppler.freedesktop.org/poppler-${TERMUX_PKG_VERSION}.tar.xz
# libcairo and littlecms is used by pdftocairo:
TERMUX_PKG_DEPENDS="fontconfig, libcairo, libpng, libjpeg-turbo, libtiff, littlecms, openjpeg, freetype, libcurl"
#texlive needs the xpdf headers
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DENABLE_GLIB=OFF
-DENABLE_XPDF_HEADERS=ON
-DFONT_CONFIGURATION=fontconfig
"