Magellan Linux

Contents of /branches/magellan-next/extras/phonon/phonon-4.5.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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