Commit e2171911 authored by AlmAck's avatar AlmAck
Browse files

mlt 6.16.0 [skip-ci]

parent 7eb5367b
Pipeline #4070 skipped
......@@ -2,16 +2,16 @@
# Contributors: AlmAck
pkgbase=mlt
pkgname=(mlt mlt-python-bindings)
pkgver=6.12.0
pkgname=(mlt python3-mlt)
pkgver=6.16.0
pkgrel=1
pkgdesc="An open source multimedia framework"
arch=('x86_64')
url="http://www.mltframework.org"
license=(GPL)
makedepends=(ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg jack libexif python2 swig movit eigen3)
makedepends=(ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg jack libexif python3 swig movit eigen3 libebur128)
source=("https://github.com/mltframework/mlt/archive/v$pkgver.tar.gz")
md5sums=('eebf40c27f6c1717c6e99fd18319fbc3')
md5sums=('9b917594f44132cd459c18dfc113352e')
options=('debug')
prepare() {
......@@ -28,6 +28,7 @@ build() {
./configure --prefix=/usr \
--avformat-swscale \
--enable-gpl --enable-gpl3 \
--enable-opencv \
--qt-includedir=/usr/include/qt5 \
--qt-libdir=/usr/lib \
--disable-gtk2
......@@ -35,13 +36,15 @@ build() {
# mlt python bindings
cd "$srcdir/mlt-$pkgver/src/swig/python"
sed -i 's_path=`which python_path=`which python2_' build
sed -i 's_`python -c_`python2 -c_' build
sed -i 's#python-config#python2-config#' build
sed -i 's_path=`which python_path=`which python3_' build
sed -i 's_`python -c_`python3 -c_' build
sed -i 's#python-config#python3-config#' build
sed -i 's|python{}.{}|python{}.{}m|' build # Fix Python 3 include dir
./build
}
package_mlt() {
depends=(libebur128)
optdepends=('sdl_image: for SDL plugin'
'libsamplerate: for libavresample plugin'
'sox: for SOX (Audio Swiss Army Knife) plugin'
......@@ -52,18 +55,22 @@ package_mlt() {
'ladspa: for LADSPA plugins'
'libexif: for auto rotate plugin'
'frei0r-plugins: for additional effects'
'movit: opengl plugin')
'movit: opengl plugin'
'opencv: openCV plugin')
cd "$srcdir/mlt-$pkgver"
make DESTDIR="$pkgdir" install
}
package_mlt-python-bindings() {
depends=('python2' 'mlt')
package_python3-mlt() {
depends=(python3 mlt)
conflicts=(mlt-python-bindings)
provides=(mlt-python-bindings)
replaces=(mlt-python-bindings)
_pythonpath=`python3 -c "from sysconfig import get_path; print(get_path('platlib'))"`
cd "$srcdir/mlt-$pkgver/src/swig/python"
mkdir -p "$pkgdir/usr/lib/python2.7/"
install -m755 mlt.py "$pkgdir/usr/lib/python2.7/"
install -m755 _mlt.so "$pkgdir/usr/lib/python2.7/"
install -m755 mlt_wrap.o "$pkgdir/usr/lib/python2.7/"
mkdir -p "$pkgdir/$_pythonpath"
install -m755 mlt.py "$pkgdir/$_pythonpath"
install -m755 _mlt.so "$pkgdir/$_pythonpath"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment