[arch-commits] Commit in mlt/repos (6 files)

Andrea Scarpino andrea at nymeria.archlinux.org
Tue Feb 26 17:38:57 UTC 2013


    Date: Tuesday, February 26, 2013 @ 18:38:57
  Author: andrea
Revision: 85012

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  mlt/repos/community-staging-i686/
  mlt/repos/community-staging-i686/PKGBUILD
    (from rev 85011, mlt/trunk/PKGBUILD)
  mlt/repos/community-staging-i686/ffmpeg.patch
    (from rev 85011, mlt/trunk/ffmpeg.patch)
  mlt/repos/community-staging-x86_64/
  mlt/repos/community-staging-x86_64/PKGBUILD
    (from rev 85011, mlt/trunk/PKGBUILD)
  mlt/repos/community-staging-x86_64/ffmpeg.patch
    (from rev 85011, mlt/trunk/ffmpeg.patch)

---------------------------------------+
 community-staging-i686/PKGBUILD       |   64 ++++++++++++++++++++++++++++++++
 community-staging-i686/ffmpeg.patch   |   29 ++++++++++++++
 community-staging-x86_64/PKGBUILD     |   64 ++++++++++++++++++++++++++++++++
 community-staging-x86_64/ffmpeg.patch |   29 ++++++++++++++
 4 files changed, 186 insertions(+)

Copied: mlt/repos/community-staging-i686/PKGBUILD (from rev 85011, mlt/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-02-26 17:38:57 UTC (rev 85012)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: 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>
+
+pkgbase=mlt
+pkgname=('mlt' 'mlt-python-bindings')
+pkgver=0.8.8
+pkgrel=3
+pkgdesc="An open source multimedia framework"
+arch=('i686' 'x86_64')
+url="http://www.mltframework.org"
+license=('GPL')
+makedepends=('sdl_image' 'libsamplerate' 'libdv' 'qt4' 'sox' 'libxml2' 'gtk2' 'ffmpeg'
+	     'frei0r-plugins' 'swig' 'python2' "jack" "ladspa")
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+	ffmpeg.patch)
+md5sums=('06de4052cffd6760c468d7da9557edae'
+         'c28b4691d1715432d4de0055f4e2f5eb')
+
+build() {
+  # mlt
+  cd "$srcdir/mlt-$pkgver"
+
+#  patch -p1 <$srcdir/ffmpeg.patch
+
+  [ $CARCH == "i686" ] && SSE2=--disable-sse2 || SSE2=
+#  SSE2=--disable-sse2
+
+  msg "SSE2=$SSE2"
+  ./configure --prefix=/usr --enable-gpl --enable-gpl3 \
+	--qimage-libdir=/usr/lib/ --qimage-includedir=/usr/include/qt4 \
+	--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' 'qt4' '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/"
+}

Copied: mlt/repos/community-staging-i686/ffmpeg.patch (from rev 85011, mlt/trunk/ffmpeg.patch)
===================================================================
--- community-staging-i686/ffmpeg.patch	                        (rev 0)
+++ community-staging-i686/ffmpeg.patch	2013-02-26 17:38:57 UTC (rev 85012)
@@ -0,0 +1,29 @@
+diff -wbBur mlt-0.8.2/src/modules/avformat/consumer_avformat.c mlt-0.8.2.my/src/modules/avformat/consumer_avformat.c
+--- mlt-0.8.2/src/modules/avformat/consumer_avformat.c	2012-08-28 20:25:58.000000000 +0400
++++ mlt-0.8.2.my/src/modules/avformat/consumer_avformat.c	2012-11-06 16:03:07.269782436 +0400
+@@ -237,11 +237,7 @@
+ 		mlt_properties_set_data( properties, "acodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL );
+ 		mlt_properties_set_data( doc, "audio_codecs", codecs, 0, NULL, NULL );
+ 		while ( ( codec = av_codec_next( codec ) ) )
+-#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
+-			if ( ( codec->encode || codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO )
+-#else
+-			if ( codec->encode && codec->type == CODEC_TYPE_AUDIO )
+-#endif
++			if ( ( codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO )
+ 			{
+ 				snprintf( key, sizeof(key), "%d", mlt_properties_count( codecs ) );
+ 				mlt_properties_set( codecs, key, codec->name );
+@@ -261,11 +257,7 @@
+ 		mlt_properties_set_data( properties, "vcodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL );
+ 		mlt_properties_set_data( doc, "video_codecs", codecs, 0, NULL, NULL );
+ 		while ( ( codec = av_codec_next( codec ) ) )
+-#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
+-			if ( (codec->encode || codec->encode2) && codec->type == CODEC_TYPE_VIDEO )
+-#else
+-			if ( codec->encode && codec->type == CODEC_TYPE_VIDEO )
+-#endif
++			if ( (codec->encode2) && codec->type == CODEC_TYPE_VIDEO )
+ 			{
+ 				snprintf( key, sizeof(key), "%d", mlt_properties_count( codecs ) );
+ 				mlt_properties_set( codecs, key, codec->name );

Copied: mlt/repos/community-staging-x86_64/PKGBUILD (from rev 85011, mlt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-02-26 17:38:57 UTC (rev 85012)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: 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>
+
+pkgbase=mlt
+pkgname=('mlt' 'mlt-python-bindings')
+pkgver=0.8.8
+pkgrel=3
+pkgdesc="An open source multimedia framework"
+arch=('i686' 'x86_64')
+url="http://www.mltframework.org"
+license=('GPL')
+makedepends=('sdl_image' 'libsamplerate' 'libdv' 'qt4' 'sox' 'libxml2' 'gtk2' 'ffmpeg'
+	     'frei0r-plugins' 'swig' 'python2' "jack" "ladspa")
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+	ffmpeg.patch)
+md5sums=('06de4052cffd6760c468d7da9557edae'
+         'c28b4691d1715432d4de0055f4e2f5eb')
+
+build() {
+  # mlt
+  cd "$srcdir/mlt-$pkgver"
+
+#  patch -p1 <$srcdir/ffmpeg.patch
+
+  [ $CARCH == "i686" ] && SSE2=--disable-sse2 || SSE2=
+#  SSE2=--disable-sse2
+
+  msg "SSE2=$SSE2"
+  ./configure --prefix=/usr --enable-gpl --enable-gpl3 \
+	--qimage-libdir=/usr/lib/ --qimage-includedir=/usr/include/qt4 \
+	--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' 'qt4' '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/"
+}

Copied: mlt/repos/community-staging-x86_64/ffmpeg.patch (from rev 85011, mlt/trunk/ffmpeg.patch)
===================================================================
--- community-staging-x86_64/ffmpeg.patch	                        (rev 0)
+++ community-staging-x86_64/ffmpeg.patch	2013-02-26 17:38:57 UTC (rev 85012)
@@ -0,0 +1,29 @@
+diff -wbBur mlt-0.8.2/src/modules/avformat/consumer_avformat.c mlt-0.8.2.my/src/modules/avformat/consumer_avformat.c
+--- mlt-0.8.2/src/modules/avformat/consumer_avformat.c	2012-08-28 20:25:58.000000000 +0400
++++ mlt-0.8.2.my/src/modules/avformat/consumer_avformat.c	2012-11-06 16:03:07.269782436 +0400
+@@ -237,11 +237,7 @@
+ 		mlt_properties_set_data( properties, "acodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL );
+ 		mlt_properties_set_data( doc, "audio_codecs", codecs, 0, NULL, NULL );
+ 		while ( ( codec = av_codec_next( codec ) ) )
+-#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
+-			if ( ( codec->encode || codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO )
+-#else
+-			if ( codec->encode && codec->type == CODEC_TYPE_AUDIO )
+-#endif
++			if ( ( codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO )
+ 			{
+ 				snprintf( key, sizeof(key), "%d", mlt_properties_count( codecs ) );
+ 				mlt_properties_set( codecs, key, codec->name );
+@@ -261,11 +257,7 @@
+ 		mlt_properties_set_data( properties, "vcodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL );
+ 		mlt_properties_set_data( doc, "video_codecs", codecs, 0, NULL, NULL );
+ 		while ( ( codec = av_codec_next( codec ) ) )
+-#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
+-			if ( (codec->encode || codec->encode2) && codec->type == CODEC_TYPE_VIDEO )
+-#else
+-			if ( codec->encode && codec->type == CODEC_TYPE_VIDEO )
+-#endif
++			if ( (codec->encode2) && codec->type == CODEC_TYPE_VIDEO )
+ 			{
+ 				snprintf( key, sizeof(key), "%d", mlt_properties_count( codecs ) );
+ 				mlt_properties_set( codecs, key, codec->name );




More information about the arch-commits mailing list