Magellan Linux

Contents of /branches/R11-stable/extras/phonon/phonon-4.8.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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