Contents of /branches/magellan-next/extras/phonon/phonon-4.4.2-r2.smage2
Parent Directory | Revision Log
Revision 6899 -
(show annotations)
(download)
Fri Sep 24 08:38:39 2010 UTC (14 years ago) by niro
File size: 1677 byte(s)
Fri Sep 24 08:38:39 2010 UTC (14 years ago) by niro
File size: 1677 byte(s)
-fixed compilation
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 | mirror://${PNAME}/${PNAME}-${PVER}-glib2.patch |
38 | ) |
39 | |
40 | UP2DATE="updatecmd -listonly http://ftp.gwdg.de/pub/x11/kde/stable/${PNAME} | sed -n 's:.*\/\(.*\)\/:\1:;$ p'" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | cd ${SRCDIR} |
46 | |
47 | # fix build on 64bit systems against newer glib2 |
48 | # see: https://bugs.kde.org/show_bug.cgi?id=247546 |
49 | mpatch ${PNAME}-${PVER}-glib2.patch || die |
50 | } |
51 | |
52 | src_compile() |
53 | { |
54 | cd ${SRCDIR} |
55 | |
56 | kde4_configure \ |
57 | $(cmake_with alsa) \ |
58 | $(cmake_with GStreamer) \ |
59 | $(cmake_with GStreamerPlugins) \ |
60 | $(cmake_with xine) \ |
61 | $(cmake_with xcb) \ |
62 | || die |
63 | |
64 | mmake || die |
65 | } |
66 | |
67 | preinstall() |
68 | { |
69 | if [[ -n $(magequery -n qt4-phonon) ]] |
70 | then |
71 | die "please uninstall x11-libs/qt4-phonon first!" |
72 | fi |
73 | } |
74 | |
75 | postinstall() |
76 | { |
77 | # breaks compilation if the old phonon symlink from qt4-phonon exist |
78 | if [[ -L ${MROOT}/opt/qt4/$(mlibdir)/libphonon.so ]] |
79 | then |
80 | rm ${MROOT}/opt/qt44/$(mlibdir)/libphonon.so |
81 | fi |
82 | } |