# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
#
# Ebuild by Jeremy Huddleston <jeremyhu@cory.eecs.berkeley.edu>

DESCRIPTION="Navigation-Capable (S)VCD Plugin for Xine movie player."
HOMEPAGE="http://xine.sourceforge.net/"
LICENSE="GPL-2"

DEPEND=">=media-libs/xine-lib-1_rc0
        >=media-libs/libcdio-0.62
	>=media-video/vcdimager-0.7.17"

RDEPEND="${DEPEND}"

IUSE=""

SLOT="0"
KEYWORDS="x86"

S=${WORKDIR}/${PN}-${PV/_/-}
SRC_URI="mirror://sourceforge/xine/${PN}-${PV/_/-}.tar.gz"

src_unpack() {
	unpack ${A}
}

src_compile() {
	econf || die
	emake || die
}

src_install() {
	
	make DESTDIR=${D} \
		docdir=/usr/share/doc/${PF} \
		docsdir=/usr/share/doc/${PF} \
		install || die

	dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO
}