[arch-commits] Commit in mlt/repos (3 files)
Antonio Rojas
arojas at archlinux.org
Sat Apr 4 11:39:30 UTC 2020
Date: Saturday, April 4, 2020 @ 11:39:30
Author: arojas
Revision: 379507
archrelease: copy trunk to staging-x86_64
Added:
mlt/repos/staging-x86_64/
mlt/repos/staging-x86_64/PKGBUILD
(from rev 379506, mlt/trunk/PKGBUILD)
mlt/repos/staging-x86_64/mlt-opencv4.patch
(from rev 379506, mlt/trunk/mlt-opencv4.patch)
-------------------+
PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++
mlt-opencv4.patch | 27 +++++++++++++++++++
2 files changed, 100 insertions(+)
Copied: mlt/repos/staging-x86_64/PKGBUILD (from rev 379506, mlt/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-04 11:39:30 UTC (rev 379507)
@@ -0,0 +1,73 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Fabian Schoelzel <myfirstname.mylastname at googlemail.com>
+# Contributor: funkyou <spamopfer at nickname.berlin.de>
+# Contributor: tardo <tardo at nagi-fanboi.net>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+
+pkgname=mlt
+pkgver=6.20.0
+pkgrel=3
+pkgdesc="An open source multimedia framework"
+arch=(x86_64)
+url="https://www.mltframework.org"
+license=(GPL)
+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')
+makedepends=(ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg
+ jack libexif python swig movit eigen opencv gtk2 rubberband)
+conflicts=(python-mlt)
+provides=(python-mlt)
+replaces=(python-mlt)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/mltframework/mlt/archive/v$pkgver.tar.gz"
+ mlt-opencv4.patch)
+sha256sums=('ab211e27c06c0688f9cbe2d74dc0623624ef75ea4f94eea915cdc313196be2dd'
+ 'e770eaa39337cbbeb7d03357c11013e62ea355696023d1bd2d0fca6d1812b627')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i ../mlt-opencv4.patch # Fix build with openCV 4
+}
+
+build() {
+ cd mlt-$pkgver
+
+ ./configure --prefix=/usr \
+ --avformat-swscale \
+ --enable-gpl \
+ --enable-gpl3 \
+ --enable-opencv
+ make
+
+# python bindings
+ cd src/swig/python
+ ./build
+}
+
+package() {
+ cd mlt-$pkgver
+ make DESTDIR="$pkgdir" install
+
+# Install python bindings
+ _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
+ cd "$srcdir/mlt-$pkgver/src/swig/python"
+ mkdir -p "$pkgdir/$_pythonpath"
+ install -m755 mlt.py "$pkgdir/$_pythonpath"
+ install -m755 _mlt.so "$pkgdir/$_pythonpath"
+}
Copied: mlt/repos/staging-x86_64/mlt-opencv4.patch (from rev 379506, mlt/trunk/mlt-opencv4.patch)
===================================================================
--- staging-x86_64/mlt-opencv4.patch (rev 0)
+++ staging-x86_64/mlt-opencv4.patch 2020-04-04 11:39:30 UTC (rev 379507)
@@ -0,0 +1,27 @@
+diff --git a/src/modules/opencv/configure b/src/modules/opencv/configure
+index 36851f67..f8084301 100755
+--- a/src/modules/opencv/configure
++++ b/src/modules/opencv/configure
+@@ -26,18 +26,18 @@ else
+ exit 0
+ fi
+
+- pkg-config --atleast-version=3.1.0 'opencv'
++ pkg-config --atleast-version=3.1.0 'opencv4'
+ if [ $? -eq 0 ]
+ then
+- result=`pkg-config --libs opencv | grep "opencv_tracking"`
++ result=`pkg-config --libs opencv4 | grep "opencv_tracking"`
+ if [ -z "$result" ]
+ then
+ echo "- OpenCV tracking contrib module NOT found, disabling OpenCV modules"
+ touch ../disable-opencv
+ exit 0
+ else
+- echo "CFLAGS += $(pkg-config --cflags opencv)" >> config.mak
+- echo "LDFLAGS += $(pkg-config --libs opencv)" >> config.mak
++ echo "CFLAGS += $(pkg-config --cflags opencv4)" >> config.mak
++ echo "LDFLAGS += $(pkg-config --libs opencv4)" >> config.mak
+ fi
+ else
+ echo "- OpenCV >= 3.1.0 NOT found: disabling"
More information about the arch-commits
mailing list