aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2021-07-31 20:31:41 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2021-07-31 21:24:43 +0000
commit18fd2cfccaa056910c6742b25ab552f5b4798428 (patch)
tree603657d4a6cf5933566a88a1800086dfc07f9a6f
parent31a9b2566923c313feceb4f08b40b6816956653d (diff)
downloadaports-18fd2cfccaa056910c6742b25ab552f5b4798428.tar.gz
aports-18fd2cfccaa056910c6742b25ab552f5b4798428.tar.bz2
aports-18fd2cfccaa056910c6742b25ab552f5b4798428.tar.xz
community/mlt: upgrade to 7.0.1
-rw-r--r--community/mlt/APKBUILD88
1 files changed, 56 insertions, 32 deletions
diff --git a/community/mlt/APKBUILD b/community/mlt/APKBUILD
index b4c30e304a..54a95fe2b9 100644
--- a/community/mlt/APKBUILD
+++ b/community/mlt/APKBUILD
@@ -1,45 +1,70 @@
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=mlt
-pkgver=6.26.1
+pkgver=7.0.1
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"
+makedepends="cmake
+ bsd-compat-headers
+ chrpath
+ ffmpeg-dev
+ fftw-dev
+ frei0r-plugins-dev
+ gtk+2.0-dev
+ jack-dev
+ libexif-dev
+ libsamplerate-dev
+ libvorbis-dev
+ libxml2-dev
+ python3-dev
+ qt5-qtbase-dev
+ qt5-qtsvg-dev
+ sdl-dev
+ sdl2-dev
+ sdl_image-dev
+ sox-dev
+ swig
+ vidstab-dev
+ "
+options="!check" # Kwalify is missing
+subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:py3"
source="https://github.com/mltframework/mlt/archive/v$pkgver/mlt-v$pkgver.tar.gz
musl-locale.patch
"
+_OPENCV=OFF
+case $CARCH in
+ x86*|aarch64|ppc64ke)
+ makedepends="$makedepends opencv-dev"
+ _OPENCV=ON
+ ;;
+esac
+
build() {
+ mkdir -p build
- case "$CARCH" in
- x86*) _sse2="--enable-mmx --enable-sse --enable-sse2" ;;
- *) _sse2="--disable-mmx --disable-sse --disable-sse2" ;;
- esac
- ./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 \
- $_sse2
- make
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=none \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_TESTING=OFF \
+ -DMOD_OPENCV=$_OPENCV \
+ -DMOD_MOVIT=OFF \
+ -DMOD_PLUS=OFF \
+ -DMOD_RTAUDIO=OFF \
+ -DMOD_RUBBERBAND=OFF \
+ -DSWIG_PYTHON=ON \
+ .
+ make -C build
}
package() {
+ cd build
+
+ # removing undesired rpath
+ scanelf -BRF '%r' . | awk '$1 != "-" { print $2 }' | xargs chrpath -d
make DESTDIR="$pkgdir" install
}
@@ -47,13 +72,12 @@ py3() {
pkgdesc="$pkgdesc (Python bindings)"
depends="python3"
- _pythonpath=$(python3 -c "from sysconfig import get_path; print(get_path('platlib'))")
+ 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"
+ amove "${pythonpath#/*}"
}
-sha512sums="6a3ef572cddee48c3089b19b2920de84936aa913a3f35b6f06e4bece2dc7a5a168daecfbaa8111c799b5316f967c37b09d485c000a4eba69af4f7ee3dc8db9e4 mlt-v6.26.1.tar.gz
-dfa4c192ce6121a3c86141c46a08eaf6cd6bd81c120786bdb1ef564bf7878dcb44031280b34609048409c3d09e8c0e1bd430dae1fe777ef030daf09b1dfd90a3 musl-locale.patch"
+sha512sums="
+9268889f0fbe69180651a592ac0b328d18f8b60c7d83f9d6c506dc21254afcb2281662f4d19faf3520976ae100600d00cd6eb2aa42c83880fa4c4c36e760c68a mlt-v7.0.1.tar.gz
+dfa4c192ce6121a3c86141c46a08eaf6cd6bd81c120786bdb1ef564bf7878dcb44031280b34609048409c3d09e8c0e1bd430dae1fe777ef030daf09b1dfd90a3 musl-locale.patch
+"