summaryrefslogtreecommitdiff
blob: 2962bf8ab576e5472273250baff40f61eea0ba87 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit vdr-plugin

RESTRICT="mirror"

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-12384
	    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-3.12384_makefile.diff"

	epatch "${FILESDIR}/reelbox-3.12384_reelbox_c.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
		# ffmpeg-0.4.9_p20081219
		#epatch "${FILESDIR}/vdr-reelbox-ffmpeg.diff"

		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 has_version ">=media-video/vdr-1.7.4"
	then
		epatch "${FILESDIR}/reelbox-3.12384-vdr-1.7.4.diff"
	else
		epatch "${FILESDIR}/save-setup_3.12384.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

}