blob: 46b92c07434ebd7e128456358a9561747ab69d56 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit vdr-plugin
S="${WORKDIR}/${PN}-3"
DESCRIPTION="VDR Plugin: for the Reel eHD PCI card"
HOMEPAGE="http://www.reel-multimedia.com"
SRC_URI="http://vdr.websitec.de/download/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
S="${WORKDIR}/${PN}-3"
DEPEND=">=media-video/vdr-1.6.0
>=media-video/reelbox-ehd-headers-${PV}
media-video/ffmpeg
media-libs/libmad
media-libs/libpng
media-libs/alsa-lib"
RDEPEND=${DEPEND}
src_prepare() {
vdr-plugin_src_prepare
# small compile fix
sed -e "s:char\* fs453_settings_tab:const char\* fs453_settings_tab:" -i "${S}"/fs453settings.c
epatch "${FILESDIR}/reelbox-${PV}_makefile.diff"
epatch "${FILESDIR}/gcc-4.3.x_${PV}.diff"
epatch "${FILESDIR}/save-setup_${PV}.diff"
sed -i "${WORKDIR}"/bspshm/hostlib/bspshmlib.c \
-e "s:\"../driver/bspshm.h\":<bspshm.h>:"
sed -i "${WORKDIR}"/hdshm3/src/hostlib/hdshmlib.c \
-e "s:\"../driver/hdshm.h\":<hdshm.h>:"
if has_version ">=media-video/ffmpeg-0.4.9_p20070616"; then
sed -i Makefile -e "s:# -lswscale: -lswscale:g"
fi
if has_version ">=media-plugins/vdr-osdpip-0.1.10261"; then
epatch "${FILESDIR}/vdr-reelbox-pip.diff"
fi
if [ ! -z "$EHD_FRAMEBUFFER" ]; then
einfo "Changing framebuffer device to $EHD_FRAMEBUFFER"
find . -type f -exec sed -i "s:/dev/fb0:${EHD_FRAMEBUFFER}:g" {} \;
fi
}
|