mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+poppler.freedesktop.org (#432)
* +poppler.freedesktop.org * see if explicit PIC fixes segfaults * that will teach me to use the web editor * this, maybe --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
458375c8ef
commit
e70d0dd625
3 changed files with 90 additions and 0 deletions
63
projects/poppler.freedesktop.org/package.yml
Normal file
63
projects/poppler.freedesktop.org/package.yml
Normal file
|
@ -0,0 +1,63 @@
|
|||
distributable:
|
||||
url: https://poppler.freedesktop.org/poppler-{{version}}.tar.xz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: freedesktop/poppler/tags
|
||||
strip: /^poppler-/
|
||||
|
||||
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: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
cmake.org: '>=3.16.0'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
gnome.org/gobject-introspection: '>=1.64.0'
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
cmake -S . -B build_shared $ARGS
|
||||
cmake --build build_shared
|
||||
cmake --install build_shared
|
||||
|
||||
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
|
||||
env:
|
||||
ARGS:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||
linux/x86-64:
|
||||
ARGS:
|
||||
- -DCMAKE_C_FLAGS=-fPIC
|
||||
- -DCMAKE_CXX_FLAGS=-fPIC
|
||||
- -DCMAKE_EXE_LINKER_FLAGS=-pie
|
||||
|
||||
test: pdfinfo test.pdf
|
24
projects/poppler.freedesktop.org/poppler-data/package.yml
Normal file
24
projects/poppler.freedesktop.org/poppler-data/package.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
distributable:
|
||||
url: https://poppler.freedesktop.org/poppler-data-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
- '0.4.12'
|
||||
# They have a github but don't update tags!
|
||||
# gitlab: https://gitlab.freedesktop.org/poppler/poppler-data
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
# datadir is for pkgconfig files, needed by poppler itself to find its own data files
|
||||
make install prefix={{prefix}} datadir={{prefix}}/lib pkgdatadir={{prefix}}/share/poppler
|
||||
|
||||
# create a symlink in case something is expecting the .pc in share
|
||||
ln -s {{prefix}}/lib/pkgconfig {{prefix}}/share/
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script: |
|
||||
pkg-config --cflags poppler-data
|
3
projects/poppler.freedesktop.org/test.pdf
Normal file
3
projects/poppler.freedesktop.org/test.pdf
Normal file
|
@ -0,0 +1,3 @@
|
|||
%PDF-1.0
|
||||
1 0 obj<</Pages 2 0 R>>endobj 2 0 obj<</Kids[3 0 R]/Count 1>>endobj 3 0 obj<</MediaBox[0 0 3 3]>>endobj
|
||||
trailer<</Root 1 0 R>>
|
Loading…
Reference in a new issue