Magellan Linux

Annotation of /trunk/extras/amarok2/amarok2-2.2.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4968 - (hide annotations) (download)
Fri Feb 19 15:51:52 2010 UTC (14 years, 4 months ago) by niro
File size: 1916 byte(s)
-make sure /proc is mounted or qt bindings test for qtscript will segfault
1 niro 4965 # $Id$
2    
3     PNAME="amarok2"
4     PVER="2.2.2"
5     PBUILD="r1"
6    
7     PCATEGORIE="media-sound"
8     STATE="unstable"
9    
10     DESCRIPTION="amaroK2 is a soundsystem-independent music player for KDE4."
11     HOMEPAGE="http://amarok.kde.org/"
12    
13     DEPEND=">= app-misc/strigi-0.7
14     >= kde-base/kdelibs4-4.4
15     >= kde-base/kdebase4-runtime-4.4
16     >= kde-base/kdemultimedia4-kioslave-4.4
17     >= app-crypt/qca-2
18     >= dev-libs/glib2-2.22
19     >= dev-libs/libxml2-2.7
20     >= dev-libs/openssl-0.9.8
21     >= dev-db/mysql5-5.1
22     >= media-libs/taglib-1.6
23     >= media-libs/taglib-extras-1.0.1
24     >= media-libs/libgpod-0.7.2
25     >= media-libs/liblastfm-0.3.0
26     >= media-libs/libmtp-0.3.0
27     >= net-libs/loudmouth-1.4.3
28     >= net-misc/curl-7
29     >= sys-libs/zlib-1.2.3
30     >= x11-libs/qt4-core-4.6
31     >= x11-libs/qt4-dbus-4.6
32     >= x11-libs/qtscriptgenerator-0.1.0
33     >= virtual/phonon"
34    
35     SRCFILE="${PNAME/2/}-${PVER}.tar.bz2"
36     SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}"
37    
38     SRC_URI=(
39     kde://${PNAME/2/}/${PVER}/src/${SRCFILE}
40     mirror://${PNAME/2/}/${SRCFILE}
41     )
42    
43     sminclude kde4
44    
45 niro 4968 src_prepare()
46     {
47     # warn about /proc in chroot environments
48     # qtscript bindings test needs mounted /proc or it segfaults!
49     #
50     # test can be done via:
51     # cd /var/tmp/magebuild/amarok-2.2.2/cmake/modules/bindingstest
52     # mkdir build; cd build
53     # cmake ..
54     # make VERBOSE=1
55     # ./bindingstest; echo $?
56     # -> must return 0
57     # without mounted proc it segfaults:
58     # => frost64 build # ./bindingstest; echo $?
59     # => Segmentation fault
60     # => 139
61     [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments."
62    
63     munpack ${SRCFILE} || die
64     }
65    
66 niro 4965 src_compile()
67     {
68     cd ${SRCDIR}
69    
70     kde4_configure \
71     $(cmake_with PLAYER) \
72     $(cmake_with UTILITIES) \
73     $(cmake_with ipod) \
74     $(cmake_with Gdk) \
75     $(cmake_with LibLastFm) \
76     $(cmake_with mtp) \
77     $(cmake_with MP3Tunes) \
78     $(cmake_with QCA) \
79     || die
80    
81     mmake || die
82     }
83    
84     src_install()
85     {
86     kde4_src_install || die
87    
88     # provide a amarok2 symlink
89     mlink amarok ${KDEDIR}/bin/amarok2 || die
90     }

Properties

Name Value
svn:keywords Id