summaryrefslogtreecommitdiff
blob: 6f1fe7076918fe76007c5784932a4ba274001db8 (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
34
35
36
37
38
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/libdvb/libdvb-0.5.0.ebuild,v 1.2 2003/10/05 10:43:40 lordvan Exp $

IUSE=""

S=${WORKDIR}/${P}
DESCRIPTION="libdvb package with added CAM library and libdvbmpegtools as well as dvb-mpegtools"
HOMEPAGE="http://www.metzlerbros.org/dvb/"
SRC_URI="http://www.metzlerbros.org/dvb/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND=">=sys-apps/sed-4
	>=media-tv/linuxtv-dvb-1.0.1"

src_compile() {
    # applying a patch to DVB.cc (compile error)
    patch -p0 ${S}/libdvb/DVB.cc < ${FILESDIR}/DVB.cc-0.5.0.patch
    # patch to Makefile 
    #(disable compilation of sample programs because of a compile error)
    patch -p0 ${S}/Makefile < ${FILESDIR}/Makefile-0.5.0.patch
    # patch to dvb-mpegtools Makefile to make correct links
    patch -p0 ${S}/dvb-mpegtools/Makefile < ${FILESDIR}/dvb-mpegtools-Makefile-0.5.0.patch
    emake || die
}

src_install() {
    make DESTDIR=${D} PREFIX=/usr install || die
    dodoc README
    insinto /usr/doc/${P}/sample_progs
    doins sample_progs/*
    insinto /usr/doc/${P}/samplerc
    doins samplerc/*
}