# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
setvar pkgname = 'mlt'
setvar pkgver = '6.4.1'
setvar pkgrel = '0'
setvar pkgdesc = ""MLT Multimedia Framework""
setvar url = ""https://www.mltframework.org/""
setvar arch = ""all""
setvar license = ""LGPL-2.1""
setvar makedepends = ""python 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 swfdec-dev bsd-compat-headers""
setvar subpackages = ""$pkgname-dev""
setvar source = ""https://github.com/mltframework/mlt/releases/download/v$pkgver/mlt-$pkgver.tar.gz
	musl-locale.patch
	""
setvar builddir = ""$srcdir/mlt-$pkgver""

proc 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-kde \
		--disable-rtaudio
	make
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
}

setvar sha512sums = ""b5489e6f414d50a62eb578c65d6973e09a89502856f467034594740db6f19942be09f2c475cee898b50825617c9b7a0a142fda779f1428073550379515e6eac4  mlt-6.4.1.tar.gz
44045f433408ef5a38a0d190a625f5d1cb5fb959de7aec595c6b80981f3600c2b35b521ef6bd2eb6c90f38a13ff8276ea44896977b6cf66743d817c99260dffa  musl-locale.patch""