mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:45:06 +00:00
Ports: Add poppler
This commit is contained in:
parent
72b9f47bb1
commit
1d426df262
2 changed files with 48 additions and 0 deletions
|
@ -227,6 +227,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
|
||||||
| [`php`](php/) | PHP | 8.1.12 | https://www.php.net/ |
|
| [`php`](php/) | PHP | 8.1.12 | https://www.php.net/ |
|
||||||
| [`pixman`](pixman/) | pixman | 0.40.0 | http://pixman.org |
|
| [`pixman`](pixman/) | pixman | 0.40.0 | http://pixman.org |
|
||||||
| [`pkgconf`](pkgconf/) | pkgconf | 1.8.0 | https://github.com/pkgconf/pkgconf |
|
| [`pkgconf`](pkgconf/) | pkgconf | 1.8.0 | https://github.com/pkgconf/pkgconf |
|
||||||
|
| [`poppler`](poppler/) | Poppler is a PDF rendering library | 23.07.0 | https://poppler.freedesktop.org/ |
|
||||||
| [`potrace`](potrace/) | Bitmap tracing utility | 1.16 | https://potrace.sourceforge.net/ |
|
| [`potrace`](potrace/) | Bitmap tracing utility | 1.16 | https://potrace.sourceforge.net/ |
|
||||||
| [`powdertoy`](powdertoy/) | The Powder Toy | 96.2.350 | https://powdertoy.co.uk/ |
|
| [`powdertoy`](powdertoy/) | The Powder Toy | 96.2.350 | https://powdertoy.co.uk/ |
|
||||||
| [`prboom-plus`](prboom-plus/) | PrBoom+ | 2.6.2 | https://prboom-plus.sourceforge.io/ |
|
| [`prboom-plus`](prboom-plus/) | PrBoom+ | 2.6.2 | https://prboom-plus.sourceforge.io/ |
|
||||||
|
|
47
Ports/poppler/package.sh
Executable file
47
Ports/poppler/package.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/usr/bin/env -S bash ../.port_include.sh
|
||||||
|
port='poppler'
|
||||||
|
version='23.07.0'
|
||||||
|
version_data='0.4.12'
|
||||||
|
files="https://poppler.freedesktop.org/poppler-${version}.tar.xz poppler-${version}.tar.xz f29b4b4bf47572611176454c8f21506d71d27eca5011a39aa44038b30b957db0
|
||||||
|
https://poppler.freedesktop.org/poppler-data-${version_data}.tar.gz poppler-data-${version_data}.tar.gz c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74"
|
||||||
|
auth_type='sha256'
|
||||||
|
depends=(
|
||||||
|
'fontconfig'
|
||||||
|
'freetype'
|
||||||
|
'libjpeg'
|
||||||
|
'libpng'
|
||||||
|
'libtiff'
|
||||||
|
)
|
||||||
|
useconfigure='true'
|
||||||
|
configopts=(
|
||||||
|
'-B build'
|
||||||
|
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
||||||
|
'-DCMAKE_BUILD_TYPE=release'
|
||||||
|
'-DENABLE_BOOST=OFF'
|
||||||
|
'-DENABLE_CPP=OFF'
|
||||||
|
'-DBUILD_CPP_TESTS=OFF'
|
||||||
|
'-DENABLE_QT5=OFF'
|
||||||
|
'-DBUILD_QT5_TESTS=OFF'
|
||||||
|
'-DENABLE_QT6=OFF'
|
||||||
|
'-DBUILD_QT6_TESTS=OFF'
|
||||||
|
'-DBUILD_GTK_TESTS=OFF'
|
||||||
|
'-DBUILD_MANUAL_TESTS=OFF'
|
||||||
|
'-DENABLE_GLIB=OFF'
|
||||||
|
'-DENABLE_GOBJECT_INTROSPECTION=OFF'
|
||||||
|
'-DENABLE_GTK_DOC=OFF'
|
||||||
|
'-DENABLE_LIBOPENJPEG=unmaintained'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure() {
|
||||||
|
run cmake "${configopts[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
run make -C build "${makeopts[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
run make -C build install "${installopts[@]}"
|
||||||
|
cd "poppler-data-${version_data}"
|
||||||
|
run_nocd make install datadir=${SERENITY_INSTALL_ROOT}/usr/local
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue