40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'phonon'
|
|
pkgname=phonon
|
|
version=4.9.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-Wno-dev -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=TRUE"
|
|
hostmakedepends="pkg-config automoc4"
|
|
makedepends="glib-devel qt-devel pulseaudio-devel
|
|
$(vopt_if zeitgeist libqzeitgeist-devel)"
|
|
short_desc="The multimedia framework for KDE (Qt 4.x)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="LGPL-2.1"
|
|
homepage="http://phonon.kde.org/"
|
|
distfiles="http://download.kde.org/stable/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=67bee986f85ca8b575186c8ba58a85886cb3b1c3567c86a118d56129f221e69c
|
|
|
|
build_options="zeitgeist"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="zeitgeist"
|
|
else
|
|
hostmakedepends+=" qt-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
# Create compat symlink for QT phonon.
|
|
vmkdir usr/lib/qt/plugins
|
|
ln -s /usr/lib/kde4/plugins/phonon_backend ${DESTDIR}/usr/lib/qt/plugins
|
|
}
|
|
|
|
phonon-devel_package() {
|
|
depends="qt-devel ${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/phonon
|
|
vmove usr/share/qt
|
|
}
|
|
}
|