blob: e90e0b7cb3a0474248dc893fc8237a888f9af709 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/mmsv2/mmsv2-1.0.8_rc2.ebuild,v 1.1 2006/08/29 20:49:46 arj Exp $
inherit eutils
DESCRIPTION="Menu system for easy movie and audio playback and image viewing."
HOMEPAGE="http://mms.sunsite.dk/"
MY_P="${P/-1.0.8_rc/-1.0.8-rc}"
SRC_URI="http://mms.sunsite.dk/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug lirc svga sdl dvb dxr3"
RDEPEND="media-libs/imlib2
x11-libs/libXScrnSaver
media-libs/taglib
>=dev-libs/libpcre-4.3
=dev-db/sqlite-2*
media-tv/xmltv
media-libs/xine-lib
media-video/cxfe
lirc? ( app-misc/lirc )
svga? ( media-libs/svgalib )
sdl? ( media-libs/libsdl )
dxr3? ( media-video/em8300-libraries )"
DEPEND="${RDEPEND}
sys-devel/autoconf
sys-devel/automake"
S="${WORKDIR}/mmsv2-1.0.8-rc2"
src_compile() {
local myconf=
( use debug ) \
&& myconf="${myconf} --enable-debug"
( use lirc ) \
&& myconf="${myconf} --enable-lirc"
( use svga ) \
&& myconf="${myconf} --enable-vgagl"
( ! use sdl ) \
&& myconf="${myconf} --disable-sdl"
( use dxr3 ) \
&& myconf="${myconf} --enable-dxr3"
( use dvb ) \
&& myconf="${myconf} --enable-dvb"
cd ${S}
./configure --prefix=/usr --enable-xine-audio \
${myconf} || die
emake -j1 || die
}
src_install() {
cd ${S}
make PREFIX=${D}/usr \
BINDIR=${D}/usr/bin \
CONFIGDIR=${D}/etc/mms \
DATADIR=${D}/usr/share/mms \
install || die "Failed to install mmsv2!"
dodoc doc/BUGS doc/Changelog doc/LICENSE doc/README doc/TODO
}
pkg_postinst() {
einfo "Be sure to change /etc/mms/config and /etc/mms/input* to your needs"
einfo "You also need to place a TV.xml file in /etc/mms for epg to work"
einfo
einfo "Documentation is available online: http://mms.sunsite.dk/doc/index.html"
}
|