blob: 3b97b061a8b6f13b868deb0e40b32bc7e5ee889c (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/kmplayer/kmplayer-0.11.1.ebuild,v 1.1 2009/05/28 12:44:48 scarabeus Exp $
EAPI="2"
inherit kde4-base
MY_P="${P/_/-}"
DESCRIPTION="KMPlayer is a Video player plugin for Konqueror and basic MPlayer/Xine/ffmpeg/ffserver/VDR frontend."
HOMEPAGE="http://kmplayer.kde.org/"
SRC_URI="http://${PN}.kde.org/pkgs/${MY_P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="4"
IUSE="cairo doc npp"
DEPEND="
>=dev-libs/expat-2.0.1
|| ( media-sound/phonon x11-libs/qt-phonon )
x11-libs/libXv
cairo? ( x11-libs/cairo )
npp? (
>=dev-libs/nspr-4.6.7
x11-libs/gtk+
)
"
RDEPEND="${DEPEND}
!${CATEGORY}/${PN}:0
!${CATEGORY}/${PN}:4.1
media-video/mplayer"
S="${WORKDIR}/${MY_P}"
src_prepare() {
# remove duplicate icons (only app icon that is already in oxygen)
sed -i \
-e "/add_subdirectory(icons)/ s/^/#DONOTINSTALL /" \
CMakeLists.txt || die "removing icons failed"
# install handbook only when requested
if ! use doc; then
sed -i \
-e "/add_subdirectory(doc)/ s/^/#DONOTINSTALL /" \
CMakeLists.txt || die "removing docs failed"
else
# fix the install dir for docs
sed -i \
-e "s:\${HTML_INSTALL_DIR}/en:\${HTML_INSTALL_DIR}/en/${PF}:g" \
doc/CMakeLists.txt || die "fixing target dir failed"
fi
kde4-base_src_prepare
}
src_configure() {
mycmakeargs="${mycmakeargs}
$(cmake-utils_use_with cairo CAIRO)
$(cmake-utils_use_with npp NPP)"
kde4-base_src_configure
}
|