blob: cd29a630e41c0edd2f9e5fb20b492ba9dd1c20bd (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/kmplayer/kmplayer-0.9.3.ebuild,v 1.10 2007/01/05 20:36:39 flameeyes Exp $
inherit kde eutils
MY_P="${P/_/-}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="KMPlayer is a Video player plugin for Konqueror and basic MPlayer/Xine/ffmpeg/ffserver/VDR frontend for KDE."
HOMEPAGE="http://kmplayer.kde.org/"
SRC_URI="http://kmplayer.kde.org/pkgs/${MY_P}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="gstreamer mplayer xine"
DEPEND="xine? ( >=media-libs/xine-lib-1.1.1 )
gstreamer? ( || ( =media-libs/gst-plugins-base-0.10* =media-libs/gst-plugins-0.8* ) )
x11-libs/libXv"
RDEPEND="mplayer? ( || ( media-video/mplayer media-video/mplayer-bin ) )
xine? ( >=media-libs/xine-lib-1.1.1 )
gstreamer? ( || ( =media-libs/gst-plugins-base-0.10* =media-libs/gst-plugins-0.8* ) )"
need-kde 3.5.4
pkg_setup() {
if ! use mplayer && ! use xine && ! use gstreamer; then
echo
ewarn "Neither the mplayer, xine or gstreamer use flags have been set."
ewarn "One is needed, you can install mplayer later, though.\n"
fi
}
src_unpack() {
kde_src_unpack
if use mplayer && use amd64 && ! has_version media-video/mplayer; then
#epatch "${FILESDIR}/${P}-use32bitbin.diff"
elog 'NOTICE: From this version the patch so that mplayer-bin is used'
elog 'NOTICE: instead of mplayer is applied no longer. Now you can'
elog 'NOTICE: configure kmplayer to use mplayer-bin from within the'
elog 'NOTICE: application.'
fi
}
src_compile(){
local myconf="$(use_with gstreamer) $(use_with xine)"
kde_src_compile
}
src_install() {
kde_src_install
# Remove this, as kdelibs 3.5.4 provides it
rm -f "${D}/usr/share/mimelnk/application/x-mplayer2.desktop"
}
|