# Template file for 'kdenlive'
pkgname=kdenlive
version=23.08.2
revision=1
build_style=cmake
hostmakedepends="
 extra-cmake-modules kconfig kcoreaddons kdoctools pkg-config python3
 kpackage qt5-host-tools qt5-qmake gettext"
makedepends="
 kdeclarative-devel kfilemetadata5-devel knewstuff-devel knotifyconfig-devel
 kplotting-devel mlt7-devel qt5-multimedia-devel qt5-webkit-devel purpose-devel
 v4l-utils-devel ksolid-devel qt5-quickcontrols2-devel qt5-networkauth-devel"
depends="breeze-icons dvdauthor ffmpeg frei0r-plugins kinit qt5-quickcontrols
 kirigami2 mediainfo-cli"
checkdepends="$depends"
short_desc="Non-linear video editor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://kdenlive.org"
distfiles="${KDE_SITE}/release-service/${version}/src/kdenlive-${version}.tar.xz"
checksum=f64350cd6453b4f5a75014357532ec9c987247a0b2bda9595d1ca948c8149b87
# FIXME: Test #507: RunCMake.file-GET_RUNTIME_DEPENDENCIES fails
make_check=extended

case "$XBPS_TARGET_MACHINE" in
	ppc64*) depends+=" opencv";;
	ppc*) ;;
	*) depends+=" opencv";;
esac

# needed for mlt to work on musl
CXXFLAGS="-DHAVE_LOCALE_H=1"
