phonon-qt5: fix cross

We need to disable libqzeitgeist-devel dependency for cross building
because zeitgeist depends on python-qobject which does not cross compile.
This commit is contained in:
Juergen Buchmueller 2016-11-08 18:46:31 +01:00
parent 99832abe13
commit 095f46e2be

View File

@ -6,7 +6,7 @@ wrksrc=${pkgname%-*}-${version}
build_style=cmake
configure_args="-DPHONON_BUILD_PHONON4QT5=ON -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON"
hostmakedepends="automoc4 extra-cmake-modules"
makedepends="glib-devel qt5-devel pulseaudio-devel libqzeitgeist-devel"
makedepends="glib-devel qt5-devel pulseaudio-devel"
short_desc="The multimedia framework for KDE"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
@ -14,6 +14,15 @@ homepage="http://phonon.kde.org/"
distfiles="http://download.kde.org/stable/${pkgname%-*}/${version}/${pkgname%-*}-${version}.tar.xz"
checksum=bb74b40f18ade1d9ab89ffcd7aeb7555be797ca395f1224c488b394da6deb0e0
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" libqzeitgeist-devel"
else
# Don't depend on libqzeitgeist-devel because
# zeitgeist depends on python-gobject which can
# not be cross compiled.
hostmakedepends+=" qt5-host-tools qt5-devel"
fi
phonon-qt5-devel_package() {
depends="qt5-devel ${sourcepkg}-${version}_${revision}"
pkg_install() {