79 lines
2.0 KiB
Bash
79 lines
2.0 KiB
Bash
# Template file for 'mlt7'
|
|
pkgname=mlt7
|
|
version=7.20.0
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DSWIG_PYTHON=ON -DMOD_QT6=ON"
|
|
hostmakedepends="doxygen pkg-config ladspa-sdk swig python3 which
|
|
qt5-host-tools qt5-qmake qt6-base qt6-tools"
|
|
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 qt5-svg-devel qt6-svg-devel qt6-qt5compat-devel"
|
|
depends="mlt7-data>=${version}_${revision} ladspa-sdk-example-plugins"
|
|
short_desc="Multimedia framework, designed for television broadcasting"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
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=01a54dda64d493cc74cf70a5e446dbb36d82298405abb66ef5da51a5af12a5c0
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
CFLAGS="-DHAVE_LOCALE_H=1"
|
|
CXXFLAGS="-DHAVE_LOCALE_H=1"
|
|
|
|
_have_opencv=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*) _have_opencv=no;;
|
|
esac
|
|
|
|
if [ "$_have_opencv" = "yes" ]; then
|
|
configure_args+=" -DMOD_OPENCV=ON"
|
|
makedepends+=" libopencv-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
doxygen -u && doxygen
|
|
vmkdir usr/share/doc/mlt-7/html
|
|
vcopy "docs/html/*" usr/share/doc/mlt-7/html
|
|
rm ${DESTDIR}/usr/bin/melt
|
|
}
|
|
|
|
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}
|
|
}
|
|
}
|