blob: bb41a2c7b542bf68b016b145fdda7b66aab635d6 (
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
|
# 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.0a.ebuild,v 1.1 2009/02/13 11:53:02 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.1"
IUSE="cairo htmlhandbook npp"
DEPEND="
>=dev-libs/expat-2.0.1
|| ( media-sound/phonon x11-libs/qt-phonon )
x11-libs/libXv
cairo? ( x11-libs/cairo )
!kdeprefix? ( !media-video/kmplayer:0 )
npp? ( >=dev-libs/nspr-4.6.7
x11-libs/gtk+ )
"
RDEPEND="${DEPEND}
media-video/mplayer"
S="${WORKDIR}/${MY_P}"
src_prepare() {
# fixup icon install
sed -i \
-e "s:add_subdirectory(icons):#add_subdirectory(icons):g" \
CMakeLists.txt || die "removing icons failed"
# fixup htmlhandbook
if ! use htmlhandbook; then
sed -i \
-e "s:add_subdirectory(doc):#add_subdirectory(doc):g" \
CMakeLists.txt || die "removing docs failed"
else
# fix the install dir for docs
sed -i \
-e "s:\${HTML_INSTALL_DIR}:\${HTML_INSTALL_DIR}/${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
}
|