distribution/packages/print/poppler/package.mk

26 lines
1,016 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# 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"
2022-08-09 12:13:56 +00:00
PKG_VERSION="12853d2"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/freedesktop/poppler"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
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"
2022-08-09 12:13:56 +00:00
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
}
2022-02-05 14:23:32 +00:00