# $Id: phonon-4.4.0-r1.smage2 5162 2010-04-05 08:33:42Z niro $ PNAME="phonon" PVER="4.4.2" PBUILD="r2" STATE="unstable" DESCRIPTION="KDE4 Multimedia API." HOMEPAGE="http://phonon.kde.org/" DEPEND=">= sys-apps/dbus-1.3 >= dev-libs/glib2-2.24 >= virtual/opengl >= dev-libs/libxml2-2.7 >= media-libs/alsa-lib-1.0.23 >= media-libs/gstreamer-0.10.30 >= media-libs/gst-plugins-base-0.10.30 >= media-libs/gst-plugins-good-0.10.25 >= media-libs/xine-lib-1.1.19 >= x11-libs/libxcb-1.7 >= x11-libs/qt4-core-4.7 >= x11-libs/qt4-dbus-4.7 >= x11-libs/qt4-gui-4.7 >= x11-libs/qt4-opengl-4.7" SDEPEND=">= kde-base/automoc4-0.9.88" PROVIDE="virtual/phonon" sminclude kde4 # unusual uri-scheme SRC_URI=( kde://${PNAME}/${PVER}/${SRCFILE} mirror://${PNAME}/${PVER}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-glib2.patch ) UP2DATE="updatecmd -listonly http://ftp.gwdg.de/pub/x11/kde/stable/${PNAME} | sed -n 's:.*\/\(.*\)\/:\1:;$ p'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix build on 64bit systems against newer glib2 # see: https://bugs.kde.org/show_bug.cgi?id=247546 mpatch ${PNAME}-${PVER}-glib2.patch || die } src_compile() { cd ${SRCDIR} kde4_configure \ $(cmake_with alsa) \ $(cmake_with GStreamer) \ $(cmake_with GStreamerPlugins) \ $(cmake_with xine) \ $(cmake_with xcb) \ || die mmake || die } preinstall() { if [[ -n $(magequery -n qt4-phonon) ]] then die "please uninstall x11-libs/qt4-phonon first!" fi } postinstall() { # breaks compilation if the old phonon symlink from qt4-phonon exist if [[ -L ${MROOT}/opt/qt4/$(mlibdir)/libphonon.so ]] then rm ${MROOT}/opt/qt44/$(mlibdir)/libphonon.so fi }