89 lines
2.4 KiB
Bash
89 lines
2.4 KiB
Bash
# Template file for 'mlt'
|
|
pkgname=mlt
|
|
version=6.8.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-gpl --enable-gpl3 --disable-swfdec --without-kde
|
|
--swig-languages=python"
|
|
hostmakedepends="doxygen pkg-config ladspa-sdk swig python"
|
|
# XXX: movit vid.stab
|
|
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 python-devel pulseaudio-devel movit-devel
|
|
libvidstab-devel"
|
|
depends="mlt-data>=${version}_${revision} ladspa-sdk-example-plugins"
|
|
short_desc="Multimedia framework, designed for television broadcasting"
|
|
license="GPL-3.0-or-later, LGPL-2.1-or-later"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
homepage="https://mltframework.org/"
|
|
distfiles="https://github.com/mltframework/mlt/archive/v${version}.tar.gz"
|
|
checksum=b348e7a14d289087a99b077480a28dace519f665af9654676b7f5e713d56f0fe
|
|
|
|
CFLAGS+=" -DHAVE_STRTOD_L=1 -DHAVE_LOCALE_H=1"
|
|
CXXFLAGS+=" -DHAVE_STRTOD_L=1 -DHAVE_LOCALE_H=1"
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
make_build_args="CROSS=${XBPS_CROSS_TRIPLET}-"
|
|
else
|
|
makedepends+=" qt5-svg-devel"
|
|
fi
|
|
|
|
do_configure() {
|
|
sed -i src/swig/python/build \
|
|
-e "s,PYTHON_INCLUDE=.*,PYTHON_INCLUDE=${XBPS_CROSS_BASE}/usr/include/python2.7," \
|
|
-e "s,python-config,${XBPS_CROSS_BASE}/usr/bin/python-config,"
|
|
|
|
# Enable or disable mmx, sse, sse2
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
x86_64*|i686*)
|
|
configure_args+=" --enable-mmx"
|
|
;;
|
|
*)
|
|
configure_args+=" --disable-mmx --disable-sse --disable-sse2"
|
|
;;
|
|
esac
|
|
./configure ${configure_args}
|
|
}
|
|
post_install() {
|
|
vman docs/melt.1
|
|
doxygen -u && doxygen
|
|
vmkdir usr/share/doc/mlt/html
|
|
vcopy "docs/*.txt" usr/share/doc/mlt
|
|
vcopy "docs/html/*" usr/share/doc/mlt/html
|
|
}
|
|
|
|
mlt-data_package() {
|
|
short_desc+=" - data files"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/mlt
|
|
}
|
|
}
|
|
mlt-doc_package() {
|
|
short_desc+=" - documentation"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|
|
mlt-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|
|
mlt-python_package() {
|
|
lib32disabled=yes
|
|
short_desc+=" - Python bindings"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pycompile_module="mlt.py"
|
|
pkg_install() {
|
|
cd src/swig/python
|
|
vinstall mlt.py 644 usr/lib/python2.7
|
|
vinstall _mlt.so 755 usr/lib/python2.7
|
|
}
|
|
}
|