summaryrefslogblamecommitdiff
path: root/user/mlt/APKBUILD
blob: 0e2bda03073abb1acf9cf75602fc3512bbdcc79d (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                     
             
        
                                  
                                   
          
                                  



                                                                              



                                                                                         


                      





                                                                       










                                         

                                   







                                      
                                                                                                                                                               
                                                                                                                                                                
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mlt
pkgver=6.10.0
pkgrel=0
pkgdesc="MLT multimedia framework"
url="https://www.mltframework.org/"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+ AND GPL-3.0+"
makedepends="bsd-compat-headers ffmpeg-dev fftw-dev frei0r-plugins-dev
	gtk+2.0-dev libexif-dev libsamplerate-dev libxml2-dev sdl-dev sdl2-dev
	qt5-qtbase-dev qt5-qtsvg-dev sdl_image-dev sox-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
	"

build() {
	cd "$builddir"
	local _maybe_asm=""

	case $CTARGET_ARCH in
		pmmx)  _maybe_asm="--disable-sse --target-arch=i586" ;;
	esac

	./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 \
		$_maybe_asm
	make
}

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

sha512sums="d0c353e961bb77a4ff952dd40f7f8dac37743e7027d6928b880a02ec65a98a42503e5de33275357ab256be8fa11ee2d7a53cbd2b1a7c777d711fef18980aa8c5  mlt-6.10.0.tar.gz
c7c9fe70475ccf78c719c1ca6e1a7f2189e08abe04d556fe558dd787799bd7808d61326cfb2818eefe4a6868eed300b0c0d1480aa3df302b65b79a9a9aacc1b1  mlt-6.8.0-locale-header.patch"