blob: 1fedf0fe000338b05970ccbff563ddffc3a384d9 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/toxine/toxine-0.6.3.ebuild,v 1.4 2005/11/03 12:22:45 flameeyes Exp $
inherit eutils autotools
DESCRIPTION="Text user interface to xine media player"
HOMEPAGE="http://toxine.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="X ncurses aalib libcaca"
RDEPEND="sys-libs/readline
>=media-libs/xine-lib-1_rc3
aalib? ( media-libs/aalib )
libcaca? ( media-libs/libcaca )
ncurses? ( sys-libs/ncurses )
X? ( virtual/x11 )"
DEPEND="${RDEPEND}
sys-devel/autoconf
sys-devel/automake
sys-devel/libtool"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-configure.patch
epatch ${FILESDIR}/${P}-gcc4.patch
epatch ${FILESDIR}/${P}-nox.patch
AT_M4DIR="m4" eautoreconf
}
src_compile() {
econf \
$(use_with X x) \
$(use_with ncurses) \
$(use_with aalib) \
$(use_with libcaca) \
--disable-dependency-tracking \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc NEWS README AUTHORS ChangeLog
}
|