core/mlt/PKGBUILD

63 lines
1.8 KiB
Bash
Raw Normal View History

2010-07-20 06:26:25 +08:00
#
# Platform Packages for Chakra, part of chakra-project.org
2010-07-20 06:26:25 +08:00
#
# maintainer abveritas@chakra-project.org
2010-07-20 06:26:25 +08:00
# NOTE: Disabled the gtk2 module so no gtk-preview
pkgbase=mlt
pkgname=('mlt' 'mlt-python-bindings')
pkgver=0.8.6
2013-01-26 23:48:19 +08:00
pkgrel=2
2010-07-20 06:26:25 +08:00
pkgdesc="An open source multimedia framework"
arch=('x86_64')
2010-07-20 06:26:25 +08:00
url="http://www.mltframework.org"
license=('GPL')
depends=('sdl_image' 'libsamplerate' 'libdv' 'qt' 'sox' 'libxml2' 'ffmpeg>=0.11'
'frei0r-plugins' 'swig' 'python2')
2010-07-20 06:26:25 +08:00
optdepends=('jack')
makedepends=('subversion')
2012-08-29 15:31:09 +08:00
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('8d2c5b0f24a8b90fb44961920e3770ff')
2010-07-20 06:26:25 +08:00
build() {
# mlt
2012-08-29 21:41:07 +08:00
cd "${srcdir}/mlt-${pkgver}"
msg "SSE2=$SSE2"
2012-08-29 15:31:09 +08:00
./configure --prefix=/usr \
--enable-gpl \
--enable-gpl3 \
2012-08-29 15:31:09 +08:00
--qimage-libdir=/usr/lib/ \
--qimage-includedir=/usr/include/Qt \
--avformat-vdpau \
--disable-gtk2 \
--avformat-swscale $SSE2
make
# mlt python bindings
2012-09-29 04:31:52 +08:00
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() {
2012-08-29 21:41:07 +08:00
depends=('sdl_image' 'libsamplerate' 'libdv' 'sox' 'libxml2' 'ffmpeg>=0.11' 'frei0r-plugins')
optdepends=('jack' 'libexif' 'qt' 'ladspa')
2012-09-29 05:12:07 +08:00
cd "${srcdir}/mlt-${pkgver}"
2012-09-29 04:31:52 +08:00
make DESTDIR="${pkgdir}" install
}
2010-07-20 06:26:25 +08:00
package_mlt-python-bindings() {
2012-08-29 21:41:07 +08:00
depends=('python2' 'mlt>=0.8')
2010-07-20 06:26:25 +08:00
2012-08-29 15:31:09 +08:00
cd "$srcdir/mlt-$pkgver/src/swig/python"
2012-09-29 04:31:52 +08:00
mkdir -p "${pkgdir}/usr/lib/python2.7/"
install -m0755 mlt.py "${pkgdir}/usr/lib/python2.7/"
install -m0755 _mlt.so "${pkgdir}/usr/lib/python2.7/"
install -m0755 mlt_wrap.o "${pkgdir}/usr/lib/python2.7/"
2012-01-13 09:20:01 +08:00
}