distribution/packages/print/poppler/package.mk
2023-05-09 19:21:47 +00:00

25 lines
1,003 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
# Copyright (C) 2020-present Fewtarius
PKG_NAME="poppler"
PKG_VERSION="adf710ee"
PKG_LICENSE="GPL"
PKG_SITE="https://gitlab.freedesktop.org/poppler/poppler"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain zlib libpng libjpeg-turbo fontconfig boost"
PKG_LONGDESC="This is Poppler, a library for rendering PDF files, and examining or modifying their structure."
PKG_TOOLCHAIN="cmake"
pre_configure_target() {
PKG_CMAKE_OPTS_TARGET="-DCMAKE_BUILD_TYPE=release \
-DENABLE_LIBOPENJPEG=none \
-DENABLE_GLIB=ON \
-DENABLE_QT5=off \
-DENABLE_CPP=off"
# Disable "gobject-introspection"
sed -i "s|set(HAVE_INTROSPECTION \${INTROSPECTION_FOUND})|set(HAVE_INTROSPECTION "NO")|g" ${PKG_BUILD}/CMakeLists.txt
}