summaryrefslogtreecommitdiffstats
path: root/media-libs
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/mlt/ChangeLog318
-rw-r--r--media-libs/mlt/Manifest5
-rw-r--r--media-libs/mlt/files/mlt-0.5.4-asneeded.patch11
-rw-r--r--media-libs/mlt/metadata.xml24
-rw-r--r--media-libs/mlt/mlt-0.7.4.ebuild168
5 files changed, 526 insertions, 0 deletions
diff --git a/media-libs/mlt/ChangeLog b/media-libs/mlt/ChangeLog
new file mode 100644
index 0000000..6a8a2b7
--- /dev/null
+++ b/media-libs/mlt/ChangeLog
@@ -0,0 +1,318 @@
+# ChangeLog for media-libs/mlt
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.72 2011/05/20 11:50:40 scarabeus Exp $
+
+ 20 May 2011; Tomáš Chvátal <scarabeus@gentoo.org> mlt-0.7.2.ebuild:
+ Bump dependency over swig. Fixes bug #351718.
+
+*mlt-0.7.2 (16 May 2011)
+
+ 16 May 2011; Alexis Ballier <aballier@gentoo.org> +mlt-0.7.2.ebuild:
+ version bump
+
+ 27 Mar 2011; Tomáš Chvátal <scarabeus@gentoo.org>
+ +files/mlt-0.5.4-asneeded.patch:
+ Add back as-needed patch. It is still required in 0.5.10 so i should've not
+ remove it.
+
+ 26 Mar 2011; Tomáš Chvátal <scarabeus@gentoo.org> -mlt-0.4.6.ebuild,
+ -mlt-0.5.4.ebuild, -mlt-0.5.4-r2.ebuild, -files/mlt-0.5.4-asneeded.patch,
+ mlt-0.5.10.ebuild:
+ Depend on virtual/ffmpeg instead of media-video/ffmpeg. Drop older.
+
+ 16 Feb 2011; Markos Chandras <hwoarang@gentoo.org> mlt-0.5.10.ebuild:
+ Stable on amd64 wrt bug #353477
+
+ 07 Feb 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> mlt-0.5.10.ebuild:
+ x86 stable wrt bug #353477
+
+*mlt-0.5.10 (06 Nov 2010)
+
+ 06 Nov 2010; Tomáš Chvátal <scarabeus@gentoo.org> +mlt-0.5.10.ebuild:
+ Version bump
+
+*mlt-0.5.4-r2 (14 Aug 2010)
+
+ 14 Aug 2010; Markos Chandras <hwoarang@gentoo.org> -mlt-0.5.4-r1.ebuild,
+ +mlt-0.5.4-r2.ebuild:
+ Fixed typo that made the sed command fail on ruby bindings
+
+*mlt-0.5.4-r1 (06 Aug 2010)
+
+ 06 Aug 2010; Markos Chandras <hwoarang@gentoo.org> +mlt-0.5.4-r1.ebuild:
+ Respect {C,LD}FLAGS when building shared library. Bug #308873
+
+ 07 Jul 2010; Christian Faulhammer <fauli@gentoo.org> mlt-0.5.4.ebuild:
+ stable x86, bug 325727
+
+ 29 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> mlt-0.5.4.ebuild,
+ +files/mlt-0.5.4-asneeded.patch:
+ Fix building with -Wl,--as-needed wrt #320897 by Olivier Huber.
+
+ 27 Jun 2010; Christoph Mende <angelos@gentoo.org> mlt-0.5.4.ebuild:
+ Stable on amd64 wrt bug #325727
+
+ 17 Jun 2010; Sebastian Pipping <sping@gentoo.org> mlt-0.4.6.ebuild,
+ mlt-0.5.4.ebuild:
+ Fix homepage link (bug #324413)
+
+ 24 May 2010; Jeremy Olexa <darkside@gentoo.org> mlt-0.5.4.ebuild:
+ Since this ebuild is already EAPI3, add EPREFIX to ruby call and add
+ keywords. bug 321033
+
+*mlt-0.5.4 (28 Apr 2010)
+
+ 28 Apr 2010; Samuli Suominen <ssuominen@gentoo.org> +mlt-0.5.4.ebuild:
+ Version bump wrt #310071. USE="vdpau" wrt #306361 by Fabio Bonfante.
+ Improve python eclass handling wrt #313539 by Arfrever Frehtes Taifersar
+ Arahesis. *magick deps wrt #314295 by Wojciech Porczyk.
+
+ 26 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> mlt-0.5.0.ebuild:
+ Missing pkgconfig depend wrt #311409.
+
+*mlt-0.5.0 (22 Feb 2010)
+
+ 22 Feb 2010; Samuli Suominen <ssuominen@gentoo.org> +mlt-0.5.0.ebuild:
+ Version bump.
+
+ 28 Dec 2009; Samuli Suominen <ssuominen@gentoo.org> mlt-0.4.6.ebuild,
+ mlt-0.4.6-r1.ebuild:
+ Stop using deprecated kde-functions.eclass.
+
+ 17 Dec 2009; Christian Faulhammer <fauli@gentoo.org> mlt-0.4.6.ebuild:
+ stable x86, bug 291947
+
+ 04 Dec 2009; Samuli Suominen <ssuominen@gentoo.org> mlt-0.4.6.ebuild:
+ amd64 stable wrt #291947
+
+ 29 Nov 2009; Robin H. Johnson <robbat2@gentoo.org> metadata.xml:
+ Just comment out some of the SWIG USE flags that didn't compile yet.
+
+*mlt-0.4.6-r1 (26 Nov 2009)
+
+ 26 Nov 2009; Robin H. Johnson <robbat2@gentoo.org> +mlt-0.4.6-r1.ebuild,
+ metadata.xml:
+ Add several of the SWIG bindings, the Python one will be used for
+ media-video/openshot per bug #283673.
+
+ 12 Nov 2009; Alexis Ballier <aballier@gentoo.org>
+ -files/mlt-0.3.6-qimage.patch, -mlt-0.4.4.ebuild:
+ remove old
+
+*mlt-0.4.6 (20 Oct 2009)
+
+ 20 Oct 2009; Alexis Ballier <aballier@gentoo.org> +mlt-0.4.6.ebuild:
+ version bump
+
+ 20 Oct 2009; Alexis Ballier <aballier@gentoo.org>
+ -files/mlt-0.2.3-nostrip.patch, -mlt-0.3.8-r1.ebuild,
+ -files/mlt-0.3.8-as-needed.patch, -mlt-0.4.2.ebuild,
+ -files/mlt-0.4.2-nostrip.patch:
+ remove old
+
+ 05 Jul 2009; Ben de Groot <yngwin@gentoo.org> mlt-0.4.4.ebuild:
+ Fix Makefile if melt useflag disabled
+
+*mlt-0.4.4 (05 Jul 2009)
+
+ 05 Jul 2009; Ben de Groot <yngwin@gentoo.org> +mlt-0.4.4.ebuild,
+ metadata.xml:
+ Version bump. Ebuild changes:
+ - disabled sox useflag, as that module fails to compile
+ - added frei0r useflag, as frei0r-plugins is in portage now
+ - prefer qt4 over qt3, upstream does this as well
+ - dropped nostrip patch which has been applied upstream
+ - migrate to eapi-2
+ - make melt optional with a useflag, workaround for bug 274671
+
+ 18 Jun 2009; Alexis Ballier <aballier@gentoo.org> mlt-0.4.2.ebuild:
+ keyword ~x86-fbsd
+
+*mlt-0.4.2 (04 Jun 2009)
+
+ 04 Jun 2009; Alexis Ballier <aballier@gentoo.org> +mlt-0.4.2.ebuild,
+ +files/mlt-0.4.2-nostrip.patch:
+ version bump, bug #271859
+
+ 16 May 2009; Alexis Ballier <aballier@gentoo.org> -mlt-0.3.4.ebuild,
+ -mlt-0.3.6.ebuild, -files/mlt-0.3.6-avutil.patch, -mlt-0.3.8.ebuild:
+ remove old
+
+*mlt-0.3.8-r1 (22 Apr 2009)
+
+ 22 Apr 2009; Peter Alfredsen <loki_val@gentoo.org>
+ +files/mlt-0.3.8-as-needed.patch, +mlt-0.3.8-r1.ebuild:
+ Fix underlinked modules, bug 266593.
+
+*mlt-0.3.8 (15 Apr 2009)
+
+ 15 Apr 2009; Alexis Ballier <aballier@gentoo.org> +mlt-0.3.8.ebuild:
+ version bump
+
+ 15 Mar 2009; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.3.6-qimage.patch, metadata.xml, mlt-0.3.6.ebuild:
+ Ebuild improvements by Roberto Castagnola <roberto.castagnola@gmail.com>,
+ bug #255321 : Add qt4 yuseflag to build the qimage module with it, drop
+ unused useflags, support for compressed lumas and kde useflag
+
+ 10 Mar 2009; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.3.6-avutil.patch, mlt-0.3.6.ebuild:
+ Add upstream fix to build with ffmpeg trunk
+
+*mlt-0.3.6 (09 Feb 2009)
+
+ 09 Feb 2009; Alexis Ballier <aballier@gentoo.org> +mlt-0.3.6.ebuild:
+ version bump, bug #257966
+
+ 30 Jan 2009; Alexis Ballier <aballier@gentoo.org>
+ -files/mlt-0.2.2-motion-est-nonx86.patch, -files/mlt-0.3.0-sox1420.patch,
+ -mlt-0.3.2.ebuild:
+ remove old
+
+*mlt-0.3.4 (12 Jan 2009)
+
+ 12 Jan 2009; Alexis Ballier <aballier@gentoo.org> +mlt-0.3.4.ebuild:
+ version bump
+
+ 23 Nov 2008; Alexis Ballier <aballier@gentoo.org>
+ -files/mlt-0.3.0-avcodec.patch, -files/mlt-0.3.0-sox1410.patch:
+ and remove unused patches too...
+
+ 23 Nov 2008; Alexis Ballier <aballier@gentoo.org>
+ files/mlt-0.3.0-sox1420.patch, -mlt-0.3.0.ebuild:
+ use upstream patch for sox 14.2.0 compatibility, remove unused version
+
+*mlt-0.3.2 (13 Nov 2008)
+
+ 13 Nov 2008; Alexis Ballier <aballier@gentoo.org> +mlt-0.3.2.ebuild:
+ version bump
+
+ 10 Nov 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.3.0-sox1420.patch, mlt-0.3.0.ebuild:
+ fix build with sox 14.2.0
+
+ 04 Nov 2008; Alexis Ballier <aballier@gentoo.org> mlt-0.2.4-r2.ebuild:
+ fix ffmpeg deps for bug #245467
+
+ 18 Oct 2008; Alexis Ballier <aballier@gentoo.org> mlt-0.3.0.ebuild:
+ bump ffmpeg dep, bug #242422
+
+*mlt-0.3.0 (21 Sep 2008)
+
+ 21 Sep 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.3.0-avcodec.patch, +files/mlt-0.3.0-sox1410.patch,
+ +mlt-0.3.0.ebuild:
+ New release, sync patches with upstream for latest libavcodec api changes
+ and sox 14.1.0
+
+ 06 Aug 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.2.4-sox1410.patch, mlt-0.2.4-r2.ebuild:
+ fix building against latest sox
+
+ 27 Jul 2008; Carsten Lohrke <carlo@gentoo.org> mlt-0.2.4-r2.ebuild:
+ QA: Get rid of deprecated qt_min_version().
+
+ 17 Jul 2008; Alexis Ballier <aballier@gentoo.org> mlt-0.2.4-r2.ebuild:
+ Fix deps wrt ffmpeg: 0.4.9_p20070616-r3 to -r20 doesn't have swscaler, -r1
+ and -r2 have it, part of bug #231831.
+
+ 12 Jul 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.2.4-avfreestatic.patch, mlt-0.2.4-r2.ebuild:
+ backport a patch from upstream to fix runtime error with recent ffmpegs
+
+ 12 Jul 2008; Alexis Ballier <aballier@gentoo.org> mlt-0.2.4-r2.ebuild:
+ disable kino support when we don't have quicktime or dv, it fails with gcc
+ 4.3 without dv and it is an automagic dep, bug #231000
+
+ 12 Jul 2008; Alexis Ballier <aballier@gentoo.org> -mlt-0.2.4-r1.ebuild:
+ remove old
+
+ 10 Apr 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.2.4-gcc-4.3.patch, mlt-0.2.4-r2.ebuild:
+ gcc 4.3 build fix by Martin Väth <vaeth@mathematik.uni-wuerzburg.de>, bug
+ #216215
+
+ 10 Apr 2008; Alexis Ballier <aballier@gentoo.org> -mlt-0.2.4.ebuild:
+ remove old
+
+*mlt-0.2.4-r2 (10 Apr 2008)
+
+ 10 Apr 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.2.4-avdevice.patch, +files/mlt-0.2.4-bashism.patch,
+ +files/mlt-0.2.4-double-fps.patch, +files/mlt-0.2.4-ffmpegheaders.patch,
+ +mlt-0.2.4-r2.ebuild:
+ Rev bump: bashism in /bin/sh script fix by Martin Väth
+ <vaeth@mathematik.uni-wuerzburg.de>, bug #216216. Backport a 'fix' from
+ upstream to build with recent ffmpegs, bug #214520. Dont mess up fps type
+ which fixes an issue of a/v sync fix by Ollie Wild
+ <aloysius.wild@gmail.com>, bug #211242. Allow building with new ffmpeg
+ headers layout fix by me.
+
+*mlt-0.2.4-r1 (23 Nov 2007)
+
+ 23 Nov 2007; Samuli Suominen <drac@gentoo.org>
+ +files/mlt-0.2.4-sox1400.patch, +mlt-0.2.4-r1.ebuild:
+ Revision bump for SOX 14.0.0 compability and pkg setup check for USE
+ libsamplerate if USE sox is defined.
+
+*mlt-0.2.4 (21 Aug 2007)
+
+ 21 Aug 2007; Alexis Ballier <aballier@gentoo.org> +mlt-0.2.4.ebuild:
+ version bump, closing bug #186935 and bug #188621, thanks to Roberto
+ Castagnola <roberto.castagnola@gmail.com> for the ebuild
+
+ 26 Apr 2007; Alexis Ballier <aballier@gentoo.org> -mlt-20051209.ebuild:
+ remove old snapshot and fix header
+
+ 26 Apr 2007; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.2.3-nostrip.patch, mlt-0.2.3.ebuild:
+ Dont strip binaries while installing them
+
+*mlt-0.2.3 (26 Apr 2007)
+
+ 26 Apr 2007; Alexis Ballier <aballier@gentoo.org> +mlt-0.2.3.ebuild:
+ Version bump
+
+ 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
+ Transition to Manifest2.
+
+ 10 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> metadata.xml:
+ Add missing email address for herd with name != alias.
+
+ 19 Sep 2006; Luca Barbato <lu_zero@gentoo.org> mlt-0.2.2.ebuild:
+ Jack module requires ladspa-sdk, see bug #147498
+
+ 08 Sep 2006; Markus Rothe <corsair@gentoo.org> mlt-0.2.2.ebuild,
+ mlt-20051209.ebuild:
+ Added ~ppc64; bug #146851
+
+ 02 Sep 2006; Luca Barbato <lu_zero@gentoo.org>
+ +files/mlt-0.2.2-motion-est-nonx86.patch, mlt-0.2.2.ebuild:
+ Make motion estimation build on non x86 arches
+
+ 17 Jul 2006; Marc Hildebrand <zypher@gentoo.org> mlt-0.2.2.ebuild
+ Some cleanup and fixes. Thanks to Tiziano Müller for all his work on this.
+
+*mlt-0.2.2 (01 Jan 2006)
+
+ 17 Jul 2006; Marc Hildebrand <zypher@gentoo.org> mlt-0.2.2.ebuild
+ Version bump. Thanks to Danny (kugelfang@gentoo.org) for the amd64-fix.
+
+ 24 Jun 2006; Diego Pettenò <flameeyes@gentoo.org> mlt-20051209.ebuild:
+ Change xml2 useflag to xml.
+
+ 31 May 2006; Luca Barbato <lu_zero@gentoo.org> mlt-20051209.ebuild:
+ Minor fix, thanks to wishmerhill <wishmerhill@nousefornames.it> for spotting it
+
+ 18 Jan 2006; Luca Barbato <lu_zero@gentoo.org> mlt-20051209.ebuild:
+ Added mmx useflag, should workaround amd64 build problems
+
+ 12 Dec 2005; <zypher@gentoo.org> mlt-20051209.ebuild:
+ Added ~amd64 and ~x86 keywords
+
+*mlt-20051209 (10 Dec 2005)
+
+ 10 Dec 2005; Luca Barbato <lu_zero@gentoo.org> +metadata.xml,
+ +mlt-20051209.ebuild:
+ First commit
+
diff --git a/media-libs/mlt/Manifest b/media-libs/mlt/Manifest
new file mode 100644
index 0000000..cbb53e4
--- /dev/null
+++ b/media-libs/mlt/Manifest
@@ -0,0 +1,5 @@
+AUX mlt-0.5.4-asneeded.patch 338 RMD160 1fd1f17c6461fa518a621064a9d1f5a981e94059 SHA1 06784b1c39a9766e45c9b29e9c7a03916472e21e SHA256 9331f20822eb6cb0ed7e20952b0e37cb3e9a5df0203d1ab6361b4289a6c0cba8
+DIST mlt-0.7.4.tar.gz 964113 RMD160 a112b738855711e09c628b7b97c381cdf32e8397 SHA1 ecf79d92e8303a6219be0e7b6f2669c9a1b0bcbf SHA256 2022a0f1eaec5610da948a3dde2f87eca4ca4030ae1ffaa0aa30fdd547cb99f5
+EBUILD mlt-0.7.4.ebuild 4454 RMD160 5ca468c422d8efd3f63240234a1dbd3f2ad491a0 SHA1 fb94cbbffff0586dacee50a720b56689751e5cef SHA256 3f7db711f1d0976903f7992f5d2344739b47f0ee0d1a5f699248022ffe5e3491
+MISC ChangeLog 11313 RMD160 bd1523bdc67bc111a0c6b19eafc5fa4ff7bc4398 SHA1 7ea78ba7ce8bbedee9b856876d4ff787d61d120a SHA256 81f812882448c079c8810558aab2ae96162c2cd68f49c7c4949a1bb35773c3a8
+MISC metadata.xml 902 RMD160 9cbaf3b801eeda6ba3733ffdc947eec947c9c905 SHA1 564c50101ea02bc5b3adc1c94a59962e8652e4f5 SHA256 42ad9c42cec4fbde252f7bfb7656012f7b452525679de4a644697bcbea73b7e6
diff --git a/media-libs/mlt/files/mlt-0.5.4-asneeded.patch b/media-libs/mlt/files/mlt-0.5.4-asneeded.patch
new file mode 100644
index 0000000..16fc73a
--- /dev/null
+++ b/media-libs/mlt/files/mlt-0.5.4-asneeded.patch
@@ -0,0 +1,11 @@
+http://bugs.gentoo.org/320897
+
+--- src/swig/ruby/build
++++ src/swig/ruby/build
+@@ -7,5 +7,5 @@
+ system( "ln -sf ../mlt.i" )
+ system( "swig -c++ -ruby -I../../mlt++ -I../.. mlt.i" )
+ $CFLAGS += " -I../.."
+-$LDFLAGS += " -L../../mlt++ -lmlt++"
++$LDFLAGS += " -L../../mlt++ -lmlt++ -L../../framework/ -lmlt -lstdc++"
+ create_makefile('mlt')
diff --git a/media-libs/mlt/metadata.xml b/media-libs/mlt/metadata.xml
new file mode 100644
index 0000000..6eb315b
--- /dev/null
+++ b/media-libs/mlt/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>video</herd>
+<maintainer>
+ <email>media-video@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name="compressed-lumas">Compress the luma files in png.</flag>
+ <flag name="frei0r">Build the module for <pkg>media-plugins/frei0r-plugins</pkg></flag>
+ <flag name="melt">Build the melt commandline tool</flag>
+ <flag name="lua">Build SWIG bindings for Lua</flag>
+ <flag name="python">Build SWIG bindings for Python</flag>
+ <flag name="ruby">Build SWIG bindings for Ruby</flag>
+ <flag name="vdpau">Build with vdpau support</flag>
+ <!--
+ <flag name="java">Build SWIG bindings for Java</flag>
+ <flag name="perl">Build SWIG bindings for Perl</flag>
+ <flag name="php">Build SWIG bindings for PHP</flag>
+ <flag name="tcl">Build SWIG bindings for TCL</flag>
+ -->
+</use>
+</pkgmetadata>
+
diff --git a/media-libs/mlt/mlt-0.7.4.ebuild b/media-libs/mlt/mlt-0.7.4.ebuild
new file mode 100644
index 0000000..56d4e3f
--- /dev/null
+++ b/media-libs/mlt/mlt-0.7.4.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/mlt-0.7.2.ebuild,v 1.2 2011/05/20 11:50:40 scarabeus Exp $
+
+EAPI=3
+PYTHON_DEPEND="python? 2:2.6"
+inherit eutils toolchain-funcs multilib python
+
+DESCRIPTION="An open source multimedia framework, designed and developed for television broadcasting"
+HOMEPAGE="http://www.mltframework.org/"
+SRC_URI="mirror://sourceforge/mlt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="compressed-lumas dv debug ffmpeg frei0r gtk jack kde libsamplerate melt
+mmx qt4 quicktime sdl sse sse2 vorbis xine xml lua python ruby vdpau" # java perl php tcl
+
+RDEPEND="ffmpeg? ( virtual/ffmpeg[vdpau?] )
+ dv? ( >=media-libs/libdv-0.104 )
+ xml? ( >=dev-libs/libxml2-2.5 )
+ vorbis? ( >=media-libs/libvorbis-1.1.2 )
+ sdl? ( >=media-libs/libsdl-1.2.10
+ >=media-libs/sdl-image-1.2.4 )
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.2 )
+ jack? ( media-sound/jack-audio-connection-kit
+ media-libs/ladspa-sdk
+ >=dev-libs/libxml2-2.5 )
+ frei0r? ( media-plugins/frei0r-plugins )
+ gtk? ( x11-libs/gtk+:2
+ x11-libs/pango )
+ quicktime? ( media-libs/libquicktime )
+ xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 )
+ qt4? ( x11-libs/qt-gui:4 )
+ !media-libs/mlt++
+ lua? ( >=dev-lang/lua-5.1.4-r4 )
+ ruby? ( dev-lang/ruby )"
+# sox? ( media-sound/sox )
+# java? ( >=virtual/jre-1.5 )
+# perl? ( dev-lang/perl )
+# php? ( dev-lang/php )
+# tcl? ( dev-lang/tcl )
+
+SWIG_DEPEND=">=dev-lang/swig-2.0"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ compressed-lumas? ( || ( media-gfx/imagemagick
+ media-gfx/graphicsmagick[imagemagick] ) )
+ lua? ( ${SWIG_DEPEND} dev-util/pkgconfig )
+ python? ( ${SWIG_DEPEND} )
+ ruby? ( ${SWIG_DEPEND} )"
+# java? ( ${SWIG_DEPEND} >=virtual/jdk-1.5 )
+# perl? ( ${SWIG_DEPEND} )
+# php? ( ${SWIG_DEPEND} )
+# tcl? ( ${SWIG_DEPEND} )
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.5.4-asneeded.patch
+ # respect CFLAGS LDFLAGS when building shared libraries. Bug #308873
+ for x in python lua; do
+ sed -i "/mlt.so/s: -lmlt++ :& ${CFLAGS} ${LDFLAGS} :" src/swig/$x/build
+ done
+ sed -i "/^LDFLAGS/s: += :& ${LDFLAGS} :" src/swig/ruby/build
+}
+
+src_configure() {
+ use vdpau || export MLT_NO_VDPAU=1
+
+ tc-export CC CXX
+
+ local myconf="--enable-gpl
+ --enable-motion-est
+ $(use_enable debug)
+ $(use_enable dv)
+ $(use_enable sse)
+ $(use_enable sse2)
+ $(use_enable gtk gtk2)
+ $(use_enable vorbis)
+ $(use_enable sdl)
+ $(use_enable jack jackrack)
+ $(use_enable ffmpeg avformat)
+ $(use_enable frei0r)
+ $(use_enable melt)
+ $(use_enable libsamplerate resample)
+ $(use_enable xml)
+ $(use_enable xine)
+ $(use_enable kde kdenlive)
+ $(use_enable qt4 qimage)
+ --disable-sox"
+ #$(use_enable sox) FIXME
+
+ use ffmpeg && myconf="${myconf} --avformat-swscale"
+
+ (use quicktime && use dv) || myconf="${myconf} --disable-kino"
+
+ use compressed-lumas && myconf="${myconf} --luma-compress"
+
+ ( use x86 || use amd64 ) && \
+ myconf="${myconf} $(use_enable mmx)" ||
+ myconf="${myconf} --disable-mmx"
+
+ use melt || sed -i -e "s;src/melt;;" Makefile
+
+ # TODO: add swig language bindings
+ # see also http://www.mltframework.org/twiki/bin/view/MLT/ExtremeMakeover
+
+ local swig_lang
+ # TODO: java perl php tcl
+ for i in lua python ruby ; do
+ use $i && swig_lang="${swig_lang} $i"
+ done
+ [ -z "${swig_lang}" ] && swig_lang="none"
+
+ econf ${myconf} --swig-languages="${swig_lang}"
+ sed -i -e s/^OPT/#OPT/ "${S}/config.mak"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README docs/{TODO,*.txt}
+
+ dodir /usr/share/${PN}
+ insinto /usr/share/${PN}
+ doins -r demo
+
+ docinto swig
+
+ # Install SWIG bindings
+ if use lua; then
+ cd "${S}"/src/swig/lua
+ exeinto $(pkg-config --variable INSTALL_CMOD lua)
+ doexe mlt.so || die
+ dodoc play.lua
+ fi
+
+ if use python; then
+ cd "${S}"/src/swig/python
+ insinto $(python_get_sitedir)
+ doins mlt.py || die
+ exeinto $(python_get_sitedir)
+ doexe _mlt.so || die
+ dodoc play.py
+ fi
+
+ if use ruby; then
+ cd "${S}"/src/swig/ruby
+ exeinto $("${EPREFIX}"/usr/bin/ruby -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
+ doexe mlt.so || die
+ dodoc play.rb thumbs.rb
+ fi
+ # TODO: java perl php tcl
+}
+
+pkg_postinst() {
+ if use python; then
+ python_mod_optimize mlt.py
+ fi
+}
+
+pkg_postrm() {
+ if use python; then
+ python_mod_cleanup mlt.py
+ fi
+}