blob: e5130c63b37966d876c23ca5887f0f5a9875969b (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
KMNAME="extragear/multimedia"
inherit kde4-base
DESCRIPTION="KMPlayer is a Video player plugin for Konqueror and basic MPlayer/Xine/ffmpeg/ffserver/VDR frontend."
HOMEPAGE="http://kmplayer.kde.org/"
LICENSE="GPL-2"
KEYWORDS=""
SLOT="4"
IUSE="cairo debug expat npp"
DEPEND="
expat? ( >=dev-libs/expat-2.0.1 )
cairo? (
x11-libs/cairo
x11-libs/pango
)
npp? (
dev-libs/dbus-glib
>=x11-libs/gtk+-2.10.14
)
"
RDEPEND="${DEPEND}
!media-video/kmplayer:4.1
|| (
media-video/mplayer
media-video/mplayer-bin
)
"
pkg_setup() {
if has_version "media-video/mplayer-bin"; then
echo
elog 'NOTICE: You have mplayer-bin installed; you may need to configure'
elog 'NOTICE: kmplayer to use it from within the application.'
echo
fi
kde4-base_pkg_setup
}
src_prepare() {
# fixup icon install
sed -i \
-e "s:add_subdirectory(icons):#add_subdirectory(icons):g"\
CMakeLists.txt || die "removing icons failed"
kde4-base_src_prepare
}
src_configure() {
mycmakeargs="${mycmakeargs}
$(cmake-utils_use cairo KMPLAYER_BUILT_WITH_CAIRO)
$(cmake-utils_use expat KMPLAYER_BUILT_WITH_EXPAT)
$(cmake-utils_use npp KMPLAYER_BUILT_WITH_NPP)"
kde4-base_src_configure
}
|