Magellan Linux

Contents of /branches/R11-stable/extras/phonon/phonon-4.6.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15629 - (show annotations) (download)
Mon Jan 7 12:40:31 2013 UTC (11 years, 4 months ago) by niro
File size: 1120 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="phonon"
4 PVER="4.6.0"
5 PBUILD="r2"
6
7 DESCRIPTION="KDE4 Multimedia API."
8 HOMEPAGE="http://phonon.kde.org/"
9
10 DEPEND=">= dev-libs/glib2-2.34
11 >= media-sound/libpulse-2.1
12 >= x11-libs/qt4-core-4.8
13 >= x11-libs/qt4-dbus-4.8
14 >= x11-libs/qt4-gui-4.8
15 >= x11-libs/qt4-test-4.8
16 >= dev-libs/libqzeitgeist-0.3"
17
18 SDEPEND=">= kde-base/automoc4-0.9.88"
19
20 PROVIDE="virtual/phonon"
21
22 SRCFILE="${PNAME}-${PVER}.tar.xz"
23
24 sminclude kde4
25
26 # unusual uri-scheme
27 SRC_URI=(
28 kde://${PNAME}/${PVER}/src/${SRCFILE}
29 mirror://${PNAME}/${PVER}/${SRCFILE}
30 )
31
32 UP2DATE="updatecmd -listonly http://ftp.gwdg.de/pub/x11/kde/stable/${PNAME} | grep -v backend | sed -n 's:.*\/\(.*\)\/:\1:;$ p'"
33
34 src_compile()
35 {
36 cd ${SRCDIR}
37
38 kde4_configure \
39 $(cmake_with GLIB2) \
40 $(cmake_with PulseAudio) \
41 || die
42
43 mmake || die
44 }
45
46 preinstall()
47 {
48 if [[ -n $(magequery -n qt4-phonon) ]]
49 then
50 die "please uninstall x11-libs/qt4-phonon first!"
51 fi
52 }
53
54 postinstall()
55 {
56 # breaks compilation if the old phonon symlink from qt4-phonon exist
57 if [[ -L ${MROOT}/opt/qt4/$(mlibdir)/libphonon.so ]]
58 then
59 rm ${MROOT}/opt/qt44/$(mlibdir)/libphonon.so
60 fi
61 }