summaryrefslogtreecommitdiff
path: root/harmony/mlt
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-07 21:31:50 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-07 21:31:50 -0500
commitbcd53768c1798527f575611b0462124f691b1b7b (patch)
tree7e85cb77667023f533269ebd0504be315805d4da /harmony/mlt
parent1fd4e0f07387b1051229cb7050761cd6bdb5a52b (diff)
downloadpackages-bcd53768c1798527f575611b0462124f691b1b7b.tar.gz
packages-bcd53768c1798527f575611b0462124f691b1b7b.tar.bz2
packages-bcd53768c1798527f575611b0462124f691b1b7b.tar.xz
packages-bcd53768c1798527f575611b0462124f691b1b7b.zip
harmony/mlt: bump for KDE bump
Diffstat (limited to 'harmony/mlt')
-rw-r--r--harmony/mlt/APKBUILD43
-rw-r--r--harmony/mlt/mlt-6.8.0-locale-header.patch18
2 files changed, 61 insertions, 0 deletions
diff --git a/harmony/mlt/APKBUILD b/harmony/mlt/APKBUILD
new file mode 100644
index 000000000..0dc7d8041
--- /dev/null
+++ b/harmony/mlt/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=mlt
+pkgver=6.8.0
+pkgrel=0
+pkgdesc="MLT Multimedia Framework"
+url="https://www.mltframework.org/"
+arch="all !s390x" # depends on fftw which does not work on s390x
+options="!check" # No test suite.
+license="LGPL-2.1"
+makedepends="ffmpeg-dev libsamplerate-dev sox-dev gtk+2.0-dev sdl_image-dev
+ frei0r-plugins-dev libxml2-dev fftw-dev sdl2-dev sdl-dev libexif-dev
+ bsd-compat-headers qt5-qttools-dev qt5-qtsvg-dev"
+subpackages="$pkgname-dev"
+source="https://github.com/mltframework/mlt/releases/download/v$pkgver/mlt-$pkgver.tar.gz
+ mlt-6.8.0-locale-header.patch
+ "
+builddir="$srcdir/mlt-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --avformat-swscale \
+ --enable-motion-est \
+ --enable-gpl \
+ --enable-gpl3 \
+ --disable-rtaudio
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="5f88d82b0b1656875d19c7cd322181cf974e1cad36692854835ae313723dfd412e6ba4fbb6cca9d70756ca83b512b0f78e95df517cfa007c76f94b26a9901ec8 mlt-6.8.0.tar.gz
+c7c9fe70475ccf78c719c1ca6e1a7f2189e08abe04d556fe558dd787799bd7808d61326cfb2818eefe4a6868eed300b0c0d1480aa3df302b65b79a9a9aacc1b1 mlt-6.8.0-locale-header.patch"
diff --git a/harmony/mlt/mlt-6.8.0-locale-header.patch b/harmony/mlt/mlt-6.8.0-locale-header.patch
new file mode 100644
index 000000000..5b45b600a
--- /dev/null
+++ b/harmony/mlt/mlt-6.8.0-locale-header.patch
@@ -0,0 +1,18 @@
+Extremely incorrect logic here; fix it so that locale_t is defined properly.
+
+--- mlt-6.8.0/src/framework/mlt_property.h.old 2018-05-10 20:16:56.000000000 -0500
++++ mlt-6.8.0/src/framework/mlt_property.h 2018-06-07 05:22:57.345580154 -0500
+@@ -30,10 +30,10 @@
+ #include <sys/param.h>
+ #endif
+
+-#if (defined(__GLIBC__) && !defined(__APPLE__)) || HAVE_LOCALE_H
+-# include <locale.h>
+-#elif defined(__APPLE__) || (__FreeBSD_version >= 900506)
++#if defined(__APPLE__) || (__FreeBSD_version >= 900506)
+ # include <xlocale.h>
++#elif defined(__linux__) || HAVE_LOCALE_H
++# include <locale.h>
+ #else
+ typedef char* locale_t;
+ #endif