blob: d078f858404591d82628df1a7dcc9615f860c58f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/amarok/amarok-2.0.1.1.ebuild,v 1.5 2009/01/13 15:07:05 alexxy Exp $
EAPI="2"
OPENGL_REQUIRED="optional"
KDE_LINGUAS="ar be bg ca cs csb da de el eo es et eu fi fr ga gl he is it ja km
ko ku lt lv nb nds ne nl nn oc pa pl pt pt_BR ro ru se si sk sl sv
th tr uk zh_CN zh_TW"
inherit kde4-base
DESCRIPTION="Advanced audio player based on KDE framework."
HOMEPAGE="http://amarok.kde.org/"
LICENSE="GPL-2"
KEYWORDS="~x86"
SLOT="2"
IUSE="daap debug ifp ipod mp3tunes mp4 mtp njb +semantic-desktop"
SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.bz2"
DEPEND=">=app-misc/strigi-0.5.7
|| (
>=dev-db/mysql-5.0[embedded,-minimal]
>=dev-db/mysql-community-5.0[embedded,-minimal]
)
>=media-libs/taglib-1.5
|| ( media-sound/phonon x11-libs/qt-phonon:4 )
>=kde-base/kdelibs-${KDE_MINIMAL}[opengl?,semantic-desktop?]
>=kde-base/plasma-workspace-${KDE_MINIMAL}
x11-libs/qt-webkit:4
ifp? ( media-libs/libifp )
ipod? ( >=media-libs/libgpod-0.4.2 )
mp3tunes? (
dev-libs/libxml2
dev-libs/openssl
net-libs/loudmouth
net-misc/curl
)
mp4? ( media-libs/libmp4v2 )
mtp? ( >=media-libs/libmtp-0.3.0 )
njb? ( >=media-libs/libnjb-2.2.4 )
semantic-desktop? ( dev-libs/soprano[sesame2] )"
RDEPEND="${DEPEND}
app-arch/unzip
daap? ( www-servers/mongrel )"
pkg_setup() {
if use amd64 ; then
ewarn
ewarn "Compilation will fail if dev-db/mysql[-community] is built without -fPIC in your CFLAGS!"
ewarn "Related bug: http://bugs.gentoo.org/show_bug.cgi?id=238487"
ewarn
ewarn "To fix this, and to avoid using -fPIC globally in your make.conf (which is not recommended),"
ewarn "put the following into /etc/portage/env/dev-db/mysql (or mysql-community, depending on which you use;"
ewarn "create dirs and the file if they don't exist):"
ewarn
ewarn "CFLAGS=\"${CFLAGS} -DPIC -fPIC\""
ewarn "CXXFLAGS=\"${CXXFLAGS} -DPIC -fPIC\""
ewarn
fi
kde4-base_pkg_setup
}
src_configure() {
if use debug; then
mycmakeargs="${mycmakeargs} -DCMAKE_BUILD_TYPE=debugfull"
fi
if ! use mp3tunes; then
sed -e'/mp3tunes/ s:^:#DONOTWANT :' \
-i "${S}"/src/services/CMakeLists.txt \
|| die "Deactivating mp3tunes failed."
fi
# Remove superfluous QT_WEBKIT
sed -e 's/ -DQT_WEBKIT//g' \
-i "${S}"/src/scriptengine/generator/generator/CMakeLists.txt \
|| die "Removing unnecessary -DQT_WEBKIT failed."
mycmakeargs="${mycmakeargs}
$(cmake-utils_use_with ipod Ipod)
$(cmake-utils_use_with ifp Ifp)
$(cmake-utils_use_with mp4 Mp4v2)
$(cmake-utils_use_with mtp Mtp)
$(cmake-utils_use_with njb Njb)
$(cmake-utils_use_with semantic-desktop Nepomuk)
$(cmake-utils_use_with semantic-desktop Soprano)"
kde4-base_src_configure
}
|