summaryrefslogtreecommitdiff
blob: 872248a62f5ab3b249d9d8e04f9b157afefa67cd (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libdts/libdts-0.0.2.ebuild,v 1.10 2005/04/11 15:09:31 luckyduck Exp $

inherit flag-o-matic

DESCRIPTION="library for decoding DTS Coherent Acoustics streams used in DVD"
HOMEPAGE="http://www.videolan.org/dtsdec.html"
SRC_URI="http://www.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc sparc amd64 hppa ppc64 ~alpha"
IUSE="oss debug"

RDEPEND="virtual/libc"
DEPEND="${RDEPEND}
	>=sys-devel/autoconf-2.52d-r1"

src_compile() {
	append-flags -fPIC

	econf `use_enable oss` `use_enable debug` || die
	emake || die "emake failed"
}

src_install() {
	# fails in 0.0.2: make DESTDIR=${D} docdir=${D}/usr/share/doc/${PF}/html || die
	einstall docdir=${D}/usr/share/doc/${PF}/html || die
	dodoc AUTHORS ChangeLog INSTALL NEWS README TODO doc/libdts.txt
}

src_test() { :; }