34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
# Description: Graph based image processing framework
|
|
# URL: https://gegl.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: babl gexiv2 json-glib librsvg poppler graphviz
|
|
# Optional: asciidoc ffmpeg4 gtk-doc jasper lcms2 ruby libsdl2 libspiro libwebp umfpack v4l-utils vala lensfun libopenraw libumfpack luajit openexr
|
|
|
|
name=gegl
|
|
version=0.4.48
|
|
release=2
|
|
source=(https://download.gimp.org/pub/$name/${version%.*}/$name-$version.tar.xz
|
|
66de8124f496617eee8e6b5c68138a00343882db.patch
|
|
298b6a2afb87b4b5b15c6e715967b57534cd0af0.patch)
|
|
|
|
build() {
|
|
ls /usr/include/poppler/glib/poppler.h || (printf '\e[1;31m%-6s\e[m\n' "rebuild poppler with glib support, you need it for ${name}. Quitting.." ; exit 1)
|
|
|
|
patch -Np1 -d $name-$version -i $SRC/66de8124f496617eee8e6b5c68138a00343882db.patch
|
|
patch -Np1 -d $name-$version -i $SRC/298b6a2afb87b4b5b15c6e715967b57534cd0af0.patch
|
|
|
|
prt-get isinst ffmpeg && export PKG_CONFIG_PATH='/usr/lib/ffmpeg4/pkgconfig'
|
|
prt-get isinst vala || PKGMK_GEGL+=' -D vapigen=disabled'
|
|
|
|
meson setup build $name-$version $PKGMK_GEGL \
|
|
--prefix=/usr \
|
|
--buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
}
|