blob: 0fe3421ed5385613fad8225d09a0560d82eb2c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=mlt
pkgver=6.18.0
pkgrel=0
pkgdesc="MLT Multimedia Framework"
url="https://www.mltframework.org/"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-3.0-or-later"
makedepends="python3-dev ffmpeg-dev libsamplerate-dev sox-dev jack-dev
gtk+2.0-dev sdl_image-dev frei0r-plugins-dev libxml2-dev fftw-dev
sdl-dev libexif-dev bsd-compat-headers swig qt5-qtbase-dev qt5-qtsvg-dev"
subpackages="$pkgname-dev py3-$pkgname:py3"
source="https://github.com/mltframework/mlt/releases/download/v$pkgver/mlt-$pkgver.tar.gz
musl-locale.patch
"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--avformat-swscale \
--enable-motion-est \
--enable-gpl \
--enable-gpl3 \
--enable-opencv \
--disable-rtaudio \
--swig-languages=python
make
}
package() {
make DESTDIR="$pkgdir" install
}
py3() {
pkgdesc="$pkgdesc (Python bindings)"
depends="python3"
_pythonpath=`python3 -c "from sysconfig import get_path; print(get_path('platlib'))"`
cd "$builddir"/src/swig/python
mkdir -p "$subpkgdir/$_pythonpath"
install -m755 mlt.py "$subpkgdir/$_pythonpath"
install -m755 _mlt.so "$subpkgdir/$_pythonpath"
}
sha512sums="af6042fa554a7bf87060aaab401c51111fd03a1e50037024662fe727a2281c218f62db07f2c44db62d46f2b9ff67d4599f7aaccc2b337e20394383a24e3c5953 mlt-6.18.0.tar.gz
dfa4c192ce6121a3c86141c46a08eaf6cd6bd81c120786bdb1ef564bf7878dcb44031280b34609048409c3d09e8c0e1bd430dae1fe777ef030daf09b1dfd90a3 musl-locale.patch"
|