1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Fabian Schoelzel <myfirstname.mylastname@googlemail.com>
4 # Contributor: funkyou <spamopfer@nickname.berlin.de>
5 # Contributor: tardo <tardo@nagi-fanboi.net>
6 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
7 # Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
12 pkgdesc='An open source multimedia framework'
14 url='https://www.mltframework.org'
17 optdepends=('sdl_image: SDL1 plugin'
19 'libsamplerate: libavresample plugin'
20 'sox: SOX (Audio Swiss Army Knife) plugin'
21 'ffmpeg: ffmpeg plugin'
22 'vid.stab: video stabilize plugin'
23 'qt5-svg: Qt5 plugins'
24 'qt6-svg: Qt6 plugin' 'qt6-5compat: Qt6 plugin'
25 'jack: JACK sound output plugin'
26 'ladspa: LADSPA plugins'
27 'libexif: auto rotate plugin'
28 'frei0r-plugins: for additional effects'
29 'movit: opengl plugin'
30 'opencv: openCV plugin'
31 'rubberband: audio pitch plugin'
32 'gdk-pixbuf2: gdk plugin'
34 'rtaudio: rtaudio plugin'
35 'python: python bindings')
36 makedepends=(cmake ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg qt6-svg qt6-5compat
37 jack libexif python swig movit eigen opencv rubberband gdk-pixbuf2 pango rtaudio imagemagick)
38 source=(https://github.com/mltframework/mlt/releases/download/v$pkgver/mlt-$pkgver.tar.gz
41 sha256sums=('3a7e83ed5e30f3f2d073d172c9d886310d8a73dbd2ee850ad44e3c43a9ab6394'
42 '51c10de5b683442c7a0b202627f01ca80fbf6d52170c6b3b4e1dcaa27ef59e50'
43 'ca74d312c5e967475bbd5f0e97cb46391d1088f56d169720c2cba80fe5b8e5b9')
46 patch -d $pkgname-$pkgver -p1 < 01ab0f45.patch # Fix infinite loop
47 patch -d $pkgname-$pkgver -p1 < 67d5efd0.patch # Fix crash
51 cmake -B build -S $pkgname-$pkgver \
52 -DCMAKE_INSTALL_PREFIX=/usr \
61 DESTDIR="$pkgdir" cmake --install build