blob: e592a1f0ed89493539034fa80e9a26f99ed588dc (
plain) (
tree)
|
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=mlt
pkgver=7.12.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+"
depends=""
makedepends="bsd-compat-headers cmake ffmpeg-dev fftw-dev frei0r-plugins-dev
gtk+2.0-dev libexif-dev libsamplerate-dev libxml2-dev sdl-dev sdl2-dev
libvorbis-dev qt5-qtbase-dev qt5-qtsvg-dev sdl_image-dev
alsa-lib-dev ladspa-dev pulseaudio-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/mltframework/mlt/releases/download/v$pkgver/mlt-$pkgver.tar.gz
x86caps.patch
"
build() {
case $CTARGET_ARCH in
ppc) export LDFLAGS="$LDFLAGS -latomic" ;;
esac
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} \
.
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
}
sha512sums="7111ca31f5ed8479dc899596bec4b9dd9440ab8563844abd9d789f7ce342b61c54d1a5058d6f5288fdd510db7e05db12f7e807bf0cd33dbee11a72185fb0b746 mlt-7.12.0.tar.gz
ffe5accab20caf612dc560ff0fa4b006af642df902902d8b2726342027bb4ea1bd4190b36291e124508d84a4878286862e66909d801639f44f47169d1fe65fec x86caps.patch"
|