2023-03-05 16:06:53 +03:00
|
|
|
distributable:
|
2024-04-18 20:43:58 +03:00
|
|
|
url: https://poppler.freedesktop.org/poppler-{{version.raw}}.tar.xz
|
2023-03-05 16:06:53 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2024-04-18 20:43:58 +03:00
|
|
|
url: https://poppler.freedesktop.org/releases.html
|
|
|
|
match: /poppler-(\d+\.\d+\.\d+)\.tar\.xz/
|
|
|
|
strip:
|
|
|
|
- /^poppler-/
|
|
|
|
- /\.tar\.xz$/
|
2023-03-05 16:06:53 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/pdfattach
|
|
|
|
- bin/pdfdetach
|
|
|
|
- bin/pdffonts
|
|
|
|
- bin/pdfimages
|
|
|
|
- bin/pdfinfo
|
|
|
|
- bin/pdfseparate
|
|
|
|
- bin/pdftocairo
|
|
|
|
- bin/pdftohtml
|
|
|
|
- bin/pdftoppm
|
|
|
|
- bin/pdftops
|
|
|
|
- bin/pdftotext
|
|
|
|
- bin/pdfunite
|
|
|
|
|
|
|
|
# TODO: Add in libopenjpeg, libtiff
|
|
|
|
dependencies:
|
|
|
|
boost.org: '>=1.58.0'
|
|
|
|
cairographics.org: '>=1.16.0'
|
|
|
|
curl.se: '*'
|
|
|
|
freedesktop.org/fontconfig: '>=2.13'
|
|
|
|
freetype.org: '>=2.10'
|
|
|
|
gnome.org/glib: '>=2.64'
|
|
|
|
libjpeg-turbo.org: '*'
|
|
|
|
libpng.org: '*'
|
|
|
|
openjpeg.org: '*'
|
|
|
|
poppler.freedesktop.org/poppler-data: '*'
|
|
|
|
simplesystems.org/libtiff: '*'
|
|
|
|
zlib.net: '*'
|
2024-04-18 20:43:58 +03:00
|
|
|
mozilla.org/nss: '>=3.68'
|
|
|
|
gnupg.org/gpgme: '>=1.19'
|
|
|
|
gnupg.org/libgpg-error: 1
|
|
|
|
gnupg.org/libassuan: 2
|
|
|
|
littlecms.com: ^2.9
|
2023-03-05 16:06:53 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: '>=3.16.0'
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
gnome.org/gobject-introspection: '>=1.64.0'
|
2024-04-18 20:43:58 +03:00
|
|
|
script:
|
|
|
|
- cmake -S . -B build_shared $ARGS
|
|
|
|
- cmake --build build_shared
|
|
|
|
- cmake --install build_shared
|
2023-03-05 16:06:53 +03:00
|
|
|
|
2024-04-18 20:43:58 +03:00
|
|
|
- cmake -S . -B build_static $ARGS -DBUILD_SHARED_LIBS=OFF
|
|
|
|
- cmake --build build_static
|
|
|
|
- install -c build_static/libpoppler.a build_static/cpp/libpoppler-cpp.a build_static/glib/libpoppler-glib.a {{prefix}}/lib
|
|
|
|
- run: |
|
|
|
|
for d in poppler cpp glib; do
|
|
|
|
if [ -d $d ]; then
|
|
|
|
mv $d/* .
|
|
|
|
rmdir $d
|
|
|
|
ln -s . $d
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
working-directory: ${{prefix}}/include
|
2023-03-05 16:06:53 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
|
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
2024-04-18 20:43:58 +03:00
|
|
|
- -DENABLE_QT5=OFF
|
|
|
|
- -DENABLE_QT6=OFF
|
2023-03-05 16:06:53 +03:00
|
|
|
linux/x86-64:
|
|
|
|
ARGS:
|
|
|
|
- -DCMAKE_C_FLAGS=-fPIC
|
|
|
|
- -DCMAKE_CXX_FLAGS=-fPIC
|
2024-04-18 20:43:58 +03:00
|
|
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie,-lstdc++fs
|
|
|
|
linux/aarch64:
|
|
|
|
ARGS:
|
|
|
|
- -DCMAKE_EXE_LINKER_FLAGS=-lstdc++fs
|
2023-03-05 16:06:53 +03:00
|
|
|
|
|
|
|
test: pdfinfo test.pdf
|