Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Maintainer: Yukari Chiba <i@0x7f.cc>

pkgname=mlt
pkgver=7.32.0
pkgrel=2
pkgver=7.34.1
pkgrel=1
pkgdesc='An open source multimedia framework'
arch=(x86_64 aarch64 riscv64 loongarch64)
url='https://www.mltframework.org'
Expand Down Expand Up @@ -38,6 +38,7 @@ optdepends=('ffmpeg: ffmpeg plugin'
'vid.stab: video stabilize plugin'
'zlib: glaxnimate plugin')
makedepends=(cmake
eigen
ffmpeg
frei0r-plugins
gdk-pixbuf2
Expand All @@ -48,27 +49,38 @@ makedepends=(cmake
python
qt6-5compat
qt6-svg
swig)
swig
vid.stab)
source=(git+https://github.com/mltframework/mlt#tag=v$pkgver
git+https://gitlab.com/mattbas/glaxnimate.git)
sha256sums=('279dba94bd4a36607ea7facbad797a6dfd36277d99835a1e361d34d96d092eb4'
'SKIP')
git+https://gitlab.com/mattbas/glaxnimate.git
no-x11.patch)
sha256sums=('960137f625fd0cfa3f74b020e1c755c87039d4789ab4960fa6b9e1c976c47f59'
'SKIP'
'4d9c33a6891894fdae4b1c2c5fae1320906bcf1cdae35f5bf44119825e52f3d0')

prepare() {
_patch_ $pkgname
cd $pkgname
sed -i '/Xlib.h/d' src/modules/qt/common.cpp
git submodule init
git submodule set-url src/modules/glaxnimate/glaxnimate "$srcdir"/glaxnimate
git -c protocol.file.allow=always submodule update
}

build() {
# movit: requires GLX
# jackrack: ladspa
# not packaged: sox rubberband
cmake -B build -S $pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMOD_GLAXNIMATE=ON \
-DMOD_GLAXNIMATE=OFF \
-DMOD_GLAXNIMATE_QT6=ON \
-DMOD_QT6=ON \
-DSWIG_PYTHON=ON
-DBUILD_TESTS_WITH_QT6=ON \
-DSWIG_PYTHON=ON \
-DMOD_RUBBERBAND=OFF \
-DMOD_SOX=OFF \
-DMOD_MOVIT=OFF \
-DMOD_JACKRACK=OFF
cmake --build build
}

Expand Down
12 changes: 12 additions & 0 deletions no-x11.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/modules/qt/common.cpp b/src/modules/qt/common.cpp
index 88b604bf..dc6c1730 100644
--- a/src/modules/qt/common.cpp
+++ b/src/modules/qt/common.cpp
@@ -22,7 +22,6 @@
#include <QLocale>

#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) && !defined(Q_OS_ANDROID)
-#include <X11/Xlib.h>
#include <cstdlib>
#endif