Contents of /trunk/extras/phonon/phonon-4.7.1-r1.smage2
Parent Directory | Revision Log
Revision 21137 -
(show annotations)
(download)
Wed Mar 12 15:46:08 2014 UTC (10 years, 3 months ago) by niro
File size: 1131 byte(s)
Wed Mar 12 15:46:08 2014 UTC (10 years, 3 months ago) by niro
File size: 1131 byte(s)
-disabled src_check()
1 | # $Id$ |
2 | |
3 | PNAME="phonon" |
4 | PVER="4.7.1" |
5 | PBUILD="r1" |
6 | |
7 | DESCRIPTION="KDE4 Multimedia API." |
8 | HOMEPAGE="http://phonon.kde.org/" |
9 | |
10 | DEPEND=">= dev-libs/glib2-2.38 |
11 | >= media-sound/libpulse-4.0 |
12 | >= x11-libs/qt4-core-4.8 |
13 | >= x11-libs/qt4-dbus-4.8 |
14 | >= x11-libs/qt4-gui-4.8 |
15 | >= x11-libs/qt4-test-4.8 |
16 | >= dev-libs/libqzeitgeist-0.8" |
17 | |
18 | SDEPEND=">= kde-base/automoc4-0.9.88" |
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}/${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 | src_compile() |
36 | { |
37 | cd ${SRCDIR} |
38 | |
39 | kde4_configure \ |
40 | $(cmake_with GLIB2) \ |
41 | $(cmake_with PulseAudio) \ |
42 | || die |
43 | |
44 | mmake || die |
45 | } |
46 | |
47 | preinstall() |
48 | { |
49 | if [[ -n $(magequery -n qt4-phonon) ]] |
50 | then |
51 | die "please uninstall x11-libs/qt4-phonon first!" |
52 | fi |
53 | } |
54 | |
55 | postinstall() |
56 | { |
57 | # breaks compilation if the old phonon symlink from qt4-phonon exist |
58 | if [[ -L ${MROOT}/opt/qt4/$(mlibdir)/libphonon.so ]] |
59 | then |
60 | rm ${MROOT}/opt/qt44/$(mlibdir)/libphonon.so |
61 | fi |
62 | } |