summaryrefslogtreecommitdiff
path: root/vdr-softhddevice-9999.ebuild
blob: 578a681f48015627ca1e9f154e92fd416eb34101 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

inherit eutils vdr-plugin

if [[ ${PV} == "9999" ]] ; then
		inherit git-2
		EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-plugin-softhddevice.git"
else
		SRC_URI="http://projects.vdr-developer.org/attachments/download/838/${P}.tgz"
fi


DESCRIPTION="A software and GPU emulated HD output device plugin for VDR."
HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-softhddevice"
SRC_URI=""

LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="vaapi vdpau alsa oss yaepg opengl"

DEPEND=">=x11-libs/libxcb-1.7
		x11-libs/xcb-util
		x11-libs/xcb-util-wm
		x11-libs/xcb-util-keysyms
		x11-libs/xcb-util-renderutil
		x11-libs/libX11
		opengl? ( virtual/opengl )
		>=media-video/ffmpeg-0.7
		sys-devel/gettext
		sys-devel/make
		dev-util/pkgconfig
		yaepg? ( >=media-video/vdr-1.7[yaepg] )
		!yaepg? ( >=media-video/vdr-1.7 )
		vdpau? ( x11-libs/libvdpau )
		vaapi? ( x11-libs/libva )
		alsa? ( media-libs/alsa-lib )
		oss? ( sys-kernel/linux-headers )
"

src_prepare() {
		vdr-plugin_src_prepare
}

src_compile() {
		local myconf

		myconf=""
		use vdpau && myconf="${myconf} -DUSE_VDPAU"
		use vaapi && myconf="${myconf} -DUSE_VAAPI"
		use alsa && myconf="${myconf} -DUSE_ALSA"
		use oss && myconf="${myconf} -DUSE_OSS"

		emake all CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
			LDFLAGS="${LDFLAGS}" CONFIG="${myconf}" LIBDIR="." || die
}

src_install() {
		vdr-plugin_src_install

		dodir /etc/vdr/plugins || die

		insinto /etc/vdr/plugins
		fowners -R vdr:vdr /etc/vdr || die

		#insinto /etc/conf.d
		#doins vdr.softhddevice
}