Juergen Daubert
ece87f13ed
with this release we merge the ports poppler, poppler-glib, poppler-qt5 and poppler-qt6 together in one port poppler. The bindings for glib, qt5 and qt6 are build if the correlated ports are installed. To avoid file conflicts remove the old ports prior update: prt-get remove poppler-glib poppler-qt5 poppler-qt6
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# Description: PDF rendering library based on xpdf 3.0
|
|
# URL: https://poppler.freedesktop.org/
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: freetype
|
|
# Optional: boost cairo curl gobject-introspection gpgme lcms2 libgd libtiff nss openjpeg2 qt5 qt6-base
|
|
|
|
name=poppler
|
|
version=23.09.0
|
|
release=1
|
|
source=(https://poppler.freedesktop.org/poppler-$version.tar.xz)
|
|
|
|
build() {
|
|
prt-get isinst openjpeg2 || PKGMK_POPPLER+=' -D ENABLE_LIBOPENJPEG=none'
|
|
prt-get isinst boost || PKGMK_POPPLER+=' -D ENABLE_BOOST=off'
|
|
prt-get isinst gobject-introspection || PKGMK_POPPLER+=' -D ENABLE_GLIB=off'
|
|
prt-get isinst qt5 || PKGMK_POPPLER+=' -D ENABLE_QT5=off'
|
|
prt-get isinst qt6-base || PKGMK_POPPLER+=' -D ENABLE_QT6=off'
|
|
|
|
cmake -S $name-$version -B build -G Ninja $PKGMK_POPPLER \
|
|
-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 BUILD_CPP_TESTS=OFF \
|
|
-D BUILD_MANUAL_TESTS=OFF \
|
|
-D BUILD_QT5_TESTS=OFF \
|
|
-D BUILD_QT6_TESTS=OFF
|
|
|
|
cmake --build build -j ${JOBS:-1}
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|