aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mlt/APKBUILD
blob: c2eee86046e21be39cea1d5e02b7091e3402ec15 (plain) (blame)
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
54
55
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=mlt
pkgver=6.16.0
pkgrel=2
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
	python3.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="554e8b9baa7a8578cc52315fe0583c61762bf6fbbcdd4a1e4f25753846d92f013e7d74745498625fcc781de993aa0526fd761920450b4314e67105783b9bde26  mlt-6.16.0.tar.gz
dfa4c192ce6121a3c86141c46a08eaf6cd6bd81c120786bdb1ef564bf7878dcb44031280b34609048409c3d09e8c0e1bd430dae1fe777ef030daf09b1dfd90a3  musl-locale.patch
f354662b818d7e8f75e69cb48ae4bb79ff4e708d845736aed1ce70f025941f36b605dfe04831e68c7256bb6edf6fe163a69d47793810458748780387cafe2316  python3.patch"