2011-07-30 17:30:05 +02:00
|
|
|
# Description: PDF rendering library based on xpdf 3.0
|
2021-02-02 12:19:03 +01:00
|
|
|
# URL: https://poppler.freedesktop.org/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: cmake cairo lcms2
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=poppler
|
2022-08-02 10:28:01 +02:00
|
|
|
version=22.08.0
|
2017-10-06 13:23:54 +02:00
|
|
|
release=1
|
2017-11-13 12:48:42 +01:00
|
|
|
source=(https://poppler.freedesktop.org/poppler-$version.tar.xz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2011-07-30 17:30:05 +02:00
|
|
|
build() {
|
2021-02-02 12:19:03 +01:00
|
|
|
cmake -S $name-$version -B build \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-D ENABLE_UNSTABLE_API_ABI_HEADERS=ON \
|
|
|
|
-D ENABLE_UTILS=ON \
|
|
|
|
-D ENABLE_CPP=ON \
|
|
|
|
-D ENABLE_GLIB=OFF \
|
|
|
|
-D ENABLE_QT5=OFF \
|
2021-08-24 14:09:23 +02:00
|
|
|
-D ENABLE_QT6=OFF \
|
2021-02-02 12:19:03 +01:00
|
|
|
-D ENABLE_ZLIB=ON \
|
|
|
|
-D ENABLE_CMS=lcms2 \
|
|
|
|
-D ENABLE_LIBOPENJPEG=none \
|
2021-06-02 13:32:16 +02:00
|
|
|
-D ENABLE_BOOST=OFF \
|
2021-02-02 12:19:03 +01:00
|
|
|
-D WITH_NSS3=OFF \
|
|
|
|
-D RUN_GPERF_IF_PRESENT=OFF
|
2011-07-30 17:30:05 +02:00
|
|
|
|
2021-02-02 12:19:03 +01:00
|
|
|
cmake --build build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|