aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mlt/APKBUILD
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-07-15 19:54:20 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-07-15 15:54:50 -0300
commit59cfc8d857acf65d61852747e423c275a95caea0 (patch)
tree004b3925c581a14f037ebfe5a1098b8dcf40bc7b /testing/mlt/APKBUILD
parent3263e1acf012a3d2b4101c99db830ce63ad9a14d (diff)
downloadaports-59cfc8d857acf65d61852747e423c275a95caea0.tar.bz2
aports-59cfc8d857acf65d61852747e423c275a95caea0.tar.xz
testing/mlt: modernize and add py3 subpackage
Diffstat (limited to 'testing/mlt/APKBUILD')
-rw-r--r--testing/mlt/APKBUILD32
1 files changed, 22 insertions, 10 deletions
diff --git a/testing/mlt/APKBUILD b/testing/mlt/APKBUILD
index 92f4ab13c3..6cf13f1303 100644
--- a/testing/mlt/APKBUILD
+++ b/testing/mlt/APKBUILD
@@ -2,22 +2,21 @@
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=mlt
pkgver=6.16.0
-pkgrel=0
+pkgrel=1
pkgdesc="MLT Multimedia Framework"
url="https://www.mltframework.org/"
arch="all !s390x" # depends on fftw which does not work on s390x
-license="LGPL-2.1"
-makedepends="python ffmpeg-dev libsamplerate-dev sox-dev jack-dev
+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"
-subpackages="$pkgname-dev"
+ sdl-dev libexif-dev bsd-compat-headers swig"
+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
"
-builddir="$srcdir/mlt-$pkgver"
build() {
- cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -30,14 +29,27 @@ build() {
--enable-gpl \
--enable-gpl3 \
--disable-kde \
- --disable-rtaudio
+ --disable-rtaudio \
+ --swig-languages=python
make
}
package() {
- cd "$builddir"
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"
+dfa4c192ce6121a3c86141c46a08eaf6cd6bd81c120786bdb1ef564bf7878dcb44031280b34609048409c3d09e8c0e1bd430dae1fe777ef030daf09b1dfd90a3 musl-locale.patch
+f354662b818d7e8f75e69cb48ae4bb79ff4e708d845736aed1ce70f025941f36b605dfe04831e68c7256bb6edf6fe163a69d47793810458748780387cafe2316 python3.patch"