mlt7: disable opencv on ppc32

This commit is contained in:
q66 2021-07-08 21:38:57 +02:00
parent e456790bcd
commit d31ef4743c

View file

@ -4,13 +4,13 @@ version=7.0.1
revision=2
wrksrc="mlt-${version}"
build_style=cmake
configure_args="-DMOD_OPENCV=ON -DSWIG_PYTHON=ON"
configure_args="-DSWIG_PYTHON=ON"
hostmakedepends="doxygen pkg-config ladspa-sdk swig python3 which
qt5-host-tools qt5-qmake"
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 python3-devel pulseaudio-devel movit-devel
libvidstab-devel libatomic-devel qt5-svg-devel libopencv4-devel"
libvidstab-devel libatomic-devel qt5-svg-devel"
depends="mlt7-data>=${version}_${revision} ladspa-sdk-example-plugins"
short_desc="Multimedia framework, designed for television broadcasting"
maintainer="John <me@johnnynator.dev>"
@ -26,6 +26,18 @@ fi
CFLAGS="-DHAVE_LOCALE_H=1"
CXXFLAGS="-DHAVE_LOCALE_H=1"
_have_opencv=yes
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) _have_opencv=no;;
esac
if [ "$_have_opencv" = "yes" ]; then
configure_args+=" -DMOD_OPENCV=ON"
makedepends+=" libopencv4-devel"
fi
post_install() {
doxygen -u && doxygen
vmkdir usr/share/doc/mlt-7/html