Magellan Linux

Contents of /branches/magellan-next/extras/phonon/phonon-4.4.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6898 - (show annotations) (download)
Fri Sep 24 08:15:55 2010 UTC (13 years, 7 months ago) by niro
File size: 1422 byte(s)
auto added: ver bump to 4.4.2-r2
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="r2"
6
7 STATE="unstable"
8
9 DESCRIPTION="KDE4 Multimedia API."
10 HOMEPAGE="http://phonon.kde.org/"
11
12 DEPEND=">= sys-apps/dbus-1.3
13 >= dev-libs/glib2-2.24
14 >= virtual/opengl
15 >= dev-libs/libxml2-2.7
16 >= media-libs/alsa-lib-1.0.23
17 >= media-libs/gstreamer-0.10.30
18 >= media-libs/gst-plugins-base-0.10.30
19 >= media-libs/gst-plugins-good-0.10.25
20 >= media-libs/xine-lib-1.1.19
21 >= x11-libs/libxcb-1.7
22 >= x11-libs/qt4-core-4.7
23 >= x11-libs/qt4-dbus-4.7
24 >= x11-libs/qt4-gui-4.7
25 >= x11-libs/qt4-opengl-4.7"
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 UP2DATE="updatecmd -listonly http://ftp.gwdg.de/pub/x11/kde/stable/${PNAME} | sed -n 's:.*\/\(.*\)\/:\1:;$ p'"
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44
45 kde4_configure \
46 $(cmake_with alsa) \
47 $(cmake_with GStreamer) \
48 $(cmake_with GStreamerPlugins) \
49 $(cmake_with xine) \
50 $(cmake_with xcb) \
51 || die
52
53 mmake || die
54 }
55
56 preinstall()
57 {
58 if [[ -n $(magequery -n qt4-phonon) ]]
59 then
60 die "please uninstall x11-libs/qt4-phonon first!"
61 fi
62 }
63
64 postinstall()
65 {
66 # breaks compilation if the old phonon symlink from qt4-phonon exist
67 if [[ -L ${MROOT}/opt/qt4/$(mlibdir)/libphonon.so ]]
68 then
69 rm ${MROOT}/opt/qt44/$(mlibdir)/libphonon.so
70 fi
71 }