Magellan Linux

Contents of /trunk/extras/phonon/phonon-4.4.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5641 - (show annotations) (download)
Thu Jul 29 20:32:37 2010 UTC (13 years, 10 months ago) by niro
File size: 1341 byte(s)
auto added: ver bump to 4.4.2-r1
1 # $Id: phonon-4.4.0-r1.smage2 5162 2010-04-05 08:33:42Z niro $
2
3 PNAME="phonon"
4 PVER="4.4.2"
5 PBUILD="r1"
6
7 STATE="unstable"
8
9 DESCRIPTION="KDE4 Multimedia API."
10 HOMEPAGE="http://phonon.kde.org/"
11
12 DEPEND=">= sys-apps/dbus-1.4
13 >= dev-libs/glib2-2.22
14 >= virtual/opengl
15 >= dev-libs/libxml2-2.7
16 >= media-libs/alsa-lib-1.0.21
17 >= media-libs/gstreamer-0.10.25
18 >= media-libs/gst-plugins-base-0.10.25
19 >= media-libs/gst-plugins-good-0.10.16
20 >= media-libs/xine-lib-1.1.16
21 >= x11-libs/libxcb-1.4
22 >= x11-libs/qt4-core-4.6
23 >= x11-libs/qt4-dbus-4.6
24 >= x11-libs/qt4-gui-4.6
25 >= x11-libs/qt4-opengl-4.6"
26
27 SDEPEND=">= kde-base/automoc4-0.9.88"
28
29 PROVIDE="virtual/phonon"
30
31 sminclude kde4
32
33 # unusual uri-scheme
34 SRC_URI=(
35 kde://${PNAME}/${PVER}/${SRCFILE}
36 mirror://${PNAME}/${PVER}/${SRCFILE}
37 )
38
39 # fake
40 UP2DATE="echo ${PVER}"
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45
46 kde4_configure \
47 $(cmake_with alsa) \
48 $(cmake_with GStreamer) \
49 $(cmake_with GStreamerPlugins) \
50 $(cmake_with xine) \
51 $(cmake_with xcb) \
52 || die
53
54 mmake || die
55 }
56
57 preinstall()
58 {
59 if [[ -n $(magequery -n qt4-phonon) ]]
60 then
61 die "please uninstall x11-libs/qt4-phonon first!"
62 fi
63 }
64
65 postinstall()
66 {
67 # breaks compilation if the old phonon symlink from qt4-phonon exist
68 if [[ -L ${MROOT}/opt/qt4/$(mlibdir)/libphonon.so ]]
69 then
70 rm ${MROOT}/opt/qt44/$(mlibdir)/libphonon.so
71 fi
72 }