# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/ogmtools/ogmtools-0.973.ebuild,v 1.2 2003/09/07 00:06:06 msterret Exp $

IUSE="dvd"

DESCRIPTION="These tools allow information about (ogminfo) or extraction from (ogmdemux) or creation of (ogmmerge) OGG media streams."
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
HOMEPAGE="http://www.bunkus.org/videotools/ogmtools/"
SRC_URI="http://www.bunkus.org/videotools/${PN}/${P}.tar.bz2"

DEPEND="dvd? ( media-libs/libdvdread )
		>=sys-devel/automake-1.6.0
		media-sound/vorbis-tools"


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

src_install() {
	into /usr
	dobin ogmmerge ogmdemux ogminfo ogmsplit ogmcat dvdxchap
	into /usr/share
	dodoc INSTALL TODO README COPYING ChangeLog
	doman dvdxchap.1  ogmcat.1  ogmdemux.1  ogminfo.1  ogmmerge.1  ogmsplit.1
}