From 9ec6a6b734887205582c164d1537cfc2c85edc41 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 7 Jul 2021 20:37:26 +0200 Subject: [PATCH] New package: mlt7-7.0.1 --- common/shlibs | 2 ++ srcpkgs/mlt7-data | 1 + srcpkgs/mlt7-devel | 1 + srcpkgs/mlt7-doc | 1 + srcpkgs/mlt7-python3 | 1 + srcpkgs/mlt7/template | 69 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 75 insertions(+) create mode 120000 srcpkgs/mlt7-data create mode 120000 srcpkgs/mlt7-devel create mode 120000 srcpkgs/mlt7-doc create mode 120000 srcpkgs/mlt7-python3 create mode 100644 srcpkgs/mlt7/template diff --git a/common/shlibs b/common/shlibs index a30db98724d..8e1953fd4c6 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2416,6 +2416,8 @@ libiniparser.so.1 iniparser-4.1_1 libzita-resampler.so.1 zita-resampler-1.3.0_1 libmlt.so.6 mlt-6.4.1_1 libmlt++.so.3 mlt-6.4.1_1 +libmlt++-7.so.7 mlt7-7.0.1_1 +libmlt-7.so.7 mlt7-7.0.1_1 libunibilium.so.4 unibilium-2.0.0_1 libtermkey.so.1 libtermkey-0.17_1 libicu4lua.so.0 icu4lua-0.2B_1 diff --git a/srcpkgs/mlt7-data b/srcpkgs/mlt7-data new file mode 120000 index 00000000000..309d538e90d --- /dev/null +++ b/srcpkgs/mlt7-data @@ -0,0 +1 @@ +mlt7 \ No newline at end of file diff --git a/srcpkgs/mlt7-devel b/srcpkgs/mlt7-devel new file mode 120000 index 00000000000..309d538e90d --- /dev/null +++ b/srcpkgs/mlt7-devel @@ -0,0 +1 @@ +mlt7 \ No newline at end of file diff --git a/srcpkgs/mlt7-doc b/srcpkgs/mlt7-doc new file mode 120000 index 00000000000..309d538e90d --- /dev/null +++ b/srcpkgs/mlt7-doc @@ -0,0 +1 @@ +mlt7 \ No newline at end of file diff --git a/srcpkgs/mlt7-python3 b/srcpkgs/mlt7-python3 new file mode 120000 index 00000000000..309d538e90d --- /dev/null +++ b/srcpkgs/mlt7-python3 @@ -0,0 +1 @@ +mlt7 \ No newline at end of file diff --git a/srcpkgs/mlt7/template b/srcpkgs/mlt7/template new file mode 100644 index 00000000000..62ebc36b9d9 --- /dev/null +++ b/srcpkgs/mlt7/template @@ -0,0 +1,69 @@ +# Template file for 'mlt' +pkgname=mlt7 +version=7.0.1 +revision=1 +wrksrc="mlt-${version}" +build_style=cmake +configure_args="-DMOD_OPENCV=ON -DSWIG_PYTHON=ON" +hostmakedepends="doxygen pkg-config ladspa-sdk swig python3 which + qt5-host-tools qt5-qmake" +# XXX: movit vid.stab +makedepends="alsa-lib-devel ffmpeg-devel gtk+-devel jack-devel ladspa-sdk + libexif-devel libsamplerate-devel libxml2-devel sox-devel SDL_image-devel + fftw-devel frei0r-plugins python3-devel pulseaudio-devel movit-devel + libvidstab-devel libatomic-devel qt5-svg-devel libopencv4-devel" +depends="mlt7-data>=${version}_${revision} ladspa-sdk-example-plugins" +short_desc="Multimedia framework, designed for television broadcasting" +maintainer="John " +license="GPL-3.0-or-later, LGPL-2.1-or-later" +homepage="https://mltframework.org/" +distfiles="https://github.com/mltframework/mlt/archive/v${version}.tar.gz" +checksum=b68c88d9ad91889838186188cce938feee8b63e3755a3b6fb45dc9c2ae0c5ecd + +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + makedepends+=" musl-legacy-compat" +fi + +CFLAGS="-DHAVE_LOCALE_H=1" +CXXFLAGS="-DHAVE_LOCALE_H=1" + +post_install() { + vman docs/melt.1 + doxygen -u && doxygen + vmkdir usr/share/doc/mlt/html + vcopy "docs/*.txt" usr/share/doc/mlt + vcopy "docs/html/*" usr/share/doc/mlt/html +} + +mlt7-data_package() { + short_desc+=" - data files" + pkg_install() { + vmove usr/share/mlt-7 + } +} + +mlt7-doc_package() { + short_desc+=" - documentation" + pkg_install() { + vmove usr/share/doc + } +} + +mlt7-devel_package() { + short_desc+=" - development files" + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +} + +mlt7-python3_package() { + lib32disabled=yes + short_desc+=" - Python bindings" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove ${py3_lib} + } +}