| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild,v 1.9 2008/05/04 04:33:41 zzam Exp $
|
| 4 |
|
| 5 |
WANT_AUTOMAKE="latest"
|
| 6 |
WANT_AUTOCONF="latest"
|
| 7 |
|
| 8 |
inherit eutils autotools
|
| 9 |
|
| 10 |
DESCRIPTION="libdvb package with added CAM library and libdvbmpegtools as well as dvb-mpegtools"
|
| 11 |
HOMEPAGE="http://www.metzlerbros.org/dvb/"
|
| 12 |
SRC_URI="http://www.metzlerbros.org/dvb/${P}.tar.gz"
|
| 13 |
|
| 14 |
LICENSE="GPL-2"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="amd64 ppc x86"
|
| 17 |
IUSE="doc"
|
| 18 |
|
| 19 |
DEPEND="virtual/linuxtv-dvb-headers"
|
| 20 |
|
| 21 |
src_unpack() {
|
| 22 |
unpack ${A}
|
| 23 |
cd "${S}"
|
| 24 |
|
| 25 |
epatch "${FILESDIR}/${P}-autotools.patch"
|
| 26 |
epatch "${FILESDIR}/${P}-rename-analyze.patch"
|
| 27 |
epatch "${FILESDIR}/${P}-gcc43.patch"
|
| 28 |
|
| 29 |
eautoreconf
|
| 30 |
}
|
| 31 |
|
| 32 |
src_install() {
|
| 33 |
#einstall DESTDIR="${D}" || die "Install problem"
|
| 34 |
insinto /usr/$(get_libdir)
|
| 35 |
make DESTDIR="${D}" PREFIX=/usr LIBDIR=$(get_libdir) install || die "Problem at make install"
|
| 36 |
|
| 37 |
cd "${D}"/usr/bin
|
| 38 |
mv dia dia_dvb
|
| 39 |
|
| 40 |
cd "${S}"
|
| 41 |
if use doc; then
|
| 42 |
insinto "/usr/share/doc/${PF}/sample_progs"
|
| 43 |
doins sample_progs/*
|
| 44 |
insinto "/usr/share/doc/${PF}/samplerc"
|
| 45 |
doins samplerc/*
|
| 46 |
fi
|
| 47 |
|
| 48 |
elog "The script called 'dia' has been installed as dia_dvb"
|
| 49 |
elog "so that it doesn't overwrite the binary of app-office/dia."
|
| 50 |
elog "analyze has been renamed to analyze_mpg."
|
| 51 |
|
| 52 |
dodoc README
|
| 53 |
}
|