ports: Add poppler port

This commit is contained in:
2026-08-24 21:53:03 +03:00
parent 1a227504e2
commit 1a3dc080e6
2 changed files with 49 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash ../install.sh
NAME='poppler-data'
VERSION='0.4.12'
DOWNLOAD_URL="https://poppler.freedesktop.org/poppler-data-$VERSION.tar.gz#c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74"
configure() {
cmake --fresh -B build -S . -G Ninja \
--toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_BUILD_TYPE=Release \
|| exit 1
}
build() {
cmake --build build ||exit 1
}
install() {
DESTDIR="$DESTDIR" cmake --install build ||exit 1
}
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash ../install.sh
NAME='poppler'
VERSION='26.03.0'
DOWNLOAD_URL="https://poppler.freedesktop.org/poppler-$VERSION.tar.xz#8b3c5e2a9f2ab4c3ec5029f28af1b433c6b71f0d1e7b3997aa561cf1c0ca4ebe"
DEPENDENCIES=('gtk3' 'cairo' 'boost' 'poppler-data')
configure() {
cmake --fresh -B build -S . -G Ninja \
--toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_NSS3=OFF \
-DENABLE_GPGME=OFF \
-DENABLE_QT5=OFF \
-DENABLE_QT6=OFF \
-DENABLE_LIBOPENJPEG=none \
|| exit 1
}
build() {
cmake --build build ||exit 1
}
install() {
DESTDIR="$DESTDIR" cmake --install build ||exit 1
}