summaryrefslogtreecommitdiff
blob: 67a60402d1f3659f490b596bdfe2033d809428c3 (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
39
40
41
42
43
44
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

RESTRICT="mirror"

inherit eutils

DESCRIPTION="eHD PCI card: headers svn r${PN}"
HOMEPAGE="http://www.reel-multimedia.com"
SRC_URI="http://vdr.websitec.de/download/${PN}/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}
		>=media-video/vdr-1.7.12"

S=${WORKDIR}

src_prepare() {

	sed -e "s:\#include \"../driver/:\#include \":" \
		-i "${S}"/bspshm/include/bspshmlib.h \
		-i "${S}"/hdshm3/src/include/hdshmlib.h
}

src_install() {

	insinto /usr/include
	doins "${S}"/bspshm/include/*.h
	doins "${S}"/bspshm/driver/*.h
	doins "${S}"/hdshm3/src/include/*.h
	doins "${S}"/hdshm3/src/driver/*.h
	doins "${S}"/vdr-reelbox-3/*.h

	insinto /usr/include/vdr
	doins "${WORKDIR}"/vdr-1.4/*
	doins "${FILESDIR}"/Make.common
}