2022-11-13 14:00:59 +01:00
|
|
|
# Description: qt5 wrapper for poppler
|
|
|
|
# URL: https://poppler.freedesktop.org/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: poppler qt6-base
|
|
|
|
|
|
|
|
name=poppler-qt6
|
2023-04-03 12:24:38 +02:00
|
|
|
version=23.04.0
|
2022-11-13 14:00:59 +01:00
|
|
|
release=1
|
|
|
|
source=(https://poppler.freedesktop.org/poppler-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cmake -S poppler-$version -B build -G Ninja \
|
|
|
|
-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=OFF \
|
|
|
|
-D ENABLE_UTILS=OFF \
|
|
|
|
-D ENABLE_CPP=OFF \
|
|
|
|
-D ENABLE_GLIB=OFF \
|
|
|
|
-D ENABLE_QT5=OFF \
|
|
|
|
-D ENABLE_QT6=ON \
|
|
|
|
-D ENABLE_ZLIB=ON \
|
|
|
|
-D ENABLE_CMS=lcms2 \
|
|
|
|
-D ENABLE_LIBOPENJPEG=none \
|
|
|
|
-D ENABLE_BOOST=OFF \
|
|
|
|
-D WITH_NSS3=OFF \
|
|
|
|
-D RUN_GPERF_IF_PRESENT=OFF
|
|
|
|
|
|
|
|
cmake --build build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
|
|
|
|
rm $PKG/usr/lib/libpoppler.so*
|
|
|
|
rm $PKG/usr/lib/pkgconfig/poppler.pc
|
|
|
|
}
|