2019-11-12 13:58:38 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Contributor: Fabian Schoelzel <myfirstname.mylastname@googlemail.com>
|
|
|
|
# Contributor: funkyou <spamopfer@nickname.berlin.de>
|
|
|
|
# Contributor: tardo <tardo@nagi-fanboi.net>
|
|
|
|
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
|
|
|
|
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - explicitly link v5/v6 with libatomic
|
|
|
|
|
2020-02-17 15:25:16 +00:00
|
|
|
pkgname=mlt
|
|
|
|
pkgver=6.20.0
|
|
|
|
pkgrel=2
|
2019-11-12 13:58:38 +00:00
|
|
|
pkgdesc="An open source multimedia framework"
|
|
|
|
arch=(x86_64)
|
|
|
|
url="https://www.mltframework.org"
|
|
|
|
license=(GPL)
|
2020-02-17 15:25:16 +00:00
|
|
|
depends=(libebur128)
|
|
|
|
optdepends=('sdl_image: SDL1 plugin'
|
|
|
|
'sdl2: SDL2 plugin'
|
|
|
|
'libsamplerate: libavresample plugin'
|
|
|
|
'sox: SOX (Audio Swiss Army Knife) plugin'
|
|
|
|
'ffmpeg: ffmpeg plugin'
|
|
|
|
'vid.stab: video stabilize plugin'
|
|
|
|
'gtk2: Gtk plugin'
|
|
|
|
'qt5-svg: Qt5 plugins'
|
|
|
|
'jack: JACK sound output plugin'
|
|
|
|
'ladspa: LADSPA plugins'
|
|
|
|
'libexif: auto rotate plugin'
|
|
|
|
'frei0r-plugins: for additional effects'
|
|
|
|
'movit: opengl plugin'
|
|
|
|
'opencv: openCV plugin'
|
|
|
|
'rubberband: rubberband plugin'
|
|
|
|
'python: python bindings')
|
2019-11-12 13:58:38 +00:00
|
|
|
makedepends=(ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg
|
2020-02-17 15:25:16 +00:00
|
|
|
jack libexif python swig movit eigen opencv gtk2 rubberband)
|
|
|
|
conflicts=(python-mlt)
|
|
|
|
provides=(python-mlt)
|
|
|
|
replaces=(python-mlt)
|
2019-11-12 13:58:38 +00:00
|
|
|
source=($pkgname-$pkgver.tar.gz::"https://github.com/mltframework/mlt/archive/v$pkgver.tar.gz"
|
|
|
|
mlt-opencv4.patch)
|
2020-02-17 15:25:16 +00:00
|
|
|
sha256sums=('ab211e27c06c0688f9cbe2d74dc0623624ef75ea4f94eea915cdc313196be2dd'
|
2019-11-12 13:58:38 +00:00
|
|
|
'e770eaa39337cbbeb7d03357c11013e62ea355696023d1bd2d0fca6d1812b627')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p1 -i ../mlt-opencv4.patch # Fix build with openCV 4
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd mlt-$pkgver
|
|
|
|
|
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LIBS="-latomic"
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--avformat-swscale \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-gpl3 \
|
|
|
|
--enable-opencv \
|
|
|
|
--avformat-ldextra=$LIBS
|
|
|
|
make
|
|
|
|
|
|
|
|
# python bindings
|
|
|
|
cd src/swig/python
|
|
|
|
./build
|
|
|
|
}
|
|
|
|
|
2020-02-17 15:25:16 +00:00
|
|
|
package() {
|
2019-11-12 13:58:38 +00:00
|
|
|
cd mlt-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
2020-02-17 15:25:16 +00:00
|
|
|
# Install python bindings
|
2019-11-12 13:58:38 +00:00
|
|
|
_pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
|
|
|
|
cd "$srcdir/mlt-$pkgver/src/swig/python"
|
|
|
|
mkdir -p "$pkgdir/$_pythonpath"
|
2020-02-17 15:25:16 +00:00
|
|
|
install -m755 mlt.py "$pkgdir/$_pythonpath"
|
2019-11-12 13:58:38 +00:00
|
|
|
install -m755 _mlt.so "$pkgdir/$_pythonpath"
|
|
|
|
}
|