summaryrefslogtreecommitdiff
path: root/community-testing/mlt
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-06 23:15:07 +0000
committerroot <root@rshg054.dnsready.net>2011-11-06 23:15:07 +0000
commita4d309341dbcd3c28ee68e818c1d5ef54114adf8 (patch)
treed8b088a03f5cb2b56b2b7508933b4efcfd67f0b2 /community-testing/mlt
parent82fd7f658509afe9737e14e8d1ee9fefe13c9d1f (diff)
Sun Nov 6 23:15:07 UTC 2011
Diffstat (limited to 'community-testing/mlt')
-rw-r--r--community-testing/mlt/PKGBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/community-testing/mlt/PKGBUILD b/community-testing/mlt/PKGBUILD
new file mode 100644
index 000000000..7bc6df243
--- /dev/null
+++ b/community-testing/mlt/PKGBUILD
@@ -0,0 +1,60 @@
+# $Id: PKGBUILD 58004 2011-11-05 11:39:48Z ibiru $
+# Maintainer: 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>
+
+pkgbase=mlt
+pkgname=('mlt' 'mlt-python-bindings')
+pkgver=0.7.6
+pkgrel=1
+pkgdesc="An open source multimedia framework"
+arch=('i686' 'x86_64')
+url="http://www.mltframework.org"
+license=('GPL')
+makedepends=('sdl_image' 'libsamplerate' 'libdv' 'qt' 'sox' 'libxml2' 'gtk2' 'ffmpeg'
+ 'frei0r-plugins' 'swig' 'python2' "jack" "ladspa")
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('105969a63339da2f8ce4ddce1652c9e7')
+
+build() {
+ # mlt
+ cd $srcdir/mlt-$pkgver
+
+# [ $CARCH == "i686" ] && SSE2=--disable-sse2 || SSE2=
+ SSE2=--disable-sse2
+
+ msg "SSE2=$SSE2"
+ ./configure --prefix=/usr --enable-gpl \
+ --qimage-libdir=/usr/lib/ --qimage-includedir=/usr/include/Qt \
+ --avformat-vdpau \
+ --avformat-swscale $SSE2
+ make
+
+ # 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
+ ./build
+}
+
+package_mlt() {
+ depends=('sdl_image' 'libsamplerate' 'libdv' 'sox' 'libxml2' 'ffmpeg' 'frei0r-plugins')
+ optdepends=('jack' 'libexif' 'qt' 'gtk2' "ladspa")
+ conflicts=('mlt++<=0.3.8')
+
+ cd $srcdir/mlt-$pkgver
+ make DESTDIR=$pkgdir install
+}
+
+package_mlt-python-bindings() {
+ depends=('python2' 'mlt')
+
+ 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/
+}