git » gegl.git » commit 33310a1

build with ffmpeg 5.x, enable debug support

author Christian Hesse
2022-03-30 14:38:29 UTC
committer Christian Hesse
2022-03-30 14:38:29 UTC
parent 04d605fdc0d313c0654f826d872da09bb34a8aa1

build with ffmpeg 5.x, enable debug support

PKGBUILD +13 -5

diff --git a/PKGBUILD b/PKGBUILD
index d1612cb..7009098 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,18 @@
 pkgname=gegl
 _tag='f293be3fa442fd89486a710e2e0700a6c2758d90'
 pkgver=0.4.36
-pkgrel=1
+pkgrel=2
 pkgdesc='Graph based image processing framework'
 arch=('x86_64')
 url='https://www.gegl.org/'
 license=('GPL3' 'LGPL3')
-depends=('babl' 'libspiro' 'json-glib' 'libgexiv2' 'libraw' 'openexr' 'librsvg' 'libtiff' 'luajit' 'jasper' 'lensfun' 'suitesparse' 'poppler-glib')
-makedepends=('intltool' 'ruby' 'mesa' 'glu' 'ffmpeg4.4' 'exiv2' 'vala' 'gobject-introspection' 'git' 'meson' 'python-gobject')
-optdepends=('ffmpeg4.4: ffmpeg plugin' 'graphviz: for gegl-introspect')
+depends=('babl' 'jasper' 'json-glib' 'lensfun' 'libgexiv2' 'libraw' 'librsvg' 'libspiro'
+         'libtiff' 'luajit' 'openexr' 'poppler-glib' 'suitesparse')
+makedepends=('exiv2' 'ffmpeg' 'git' 'glu' 'gobject-introspection' 'intltool' 'mesa'
+             'meson' 'python-gobject' 'ruby' 'vala')
+options=('debug')
+optdepends=('ffmpeg: ffmpeg plugin'
+            'graphviz: for gegl-introspect')
 source=("git+https://gitlab.gnome.org/GNOME/gegl.git#tag=$_tag")
 sha256sums=('SKIP')
 
@@ -19,10 +23,14 @@ pkgver() {
   git describe --tags | sed 's/^GEGL_//;s/_$//;s/_/./g;s/-/+/g'
 }
 
+prepare() {
+  cd "${pkgname}"
+  git cherry-pick -n 002f4807e511e65c885cb7c10643b6f44a514eb3..7e19debd83f0658b59fc86c214332ded4f935035
+}
+
 build() {
   mkdir -p build
   cd build
-  export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
   arch-meson ../"${pkgname}" \
     -Dworkshop=true \
     -Dmrg=disabled \