# 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 }