vdr-plugin-softhddevice/vdr-softhddevice-9999.ebuild

71 lines
1.6 KiB
Bash
Raw Normal View History

2014-01-30 10:42:17 +01:00
# Copyright 1999-2014 Gentoo Foundation
2012-01-07 17:30:27 +01:00
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
2012-01-07 17:30:27 +01:00
2014-01-30 10:42:17 +01:00
inherit vdr-plugin-2 git-2
2012-01-07 17:30:27 +01:00
2014-01-30 10:42:17 +01:00
RESTRICT="test"
2012-01-07 17:30:27 +01:00
2014-01-30 10:42:17 +01:00
EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-plugin-softhddevice.git"
KEYWORDS=""
DESCRIPTION="VDR Plugin: Software and GPU emulated HD output device"
2012-01-07 17:30:27 +01:00
HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-softhddevice"
LICENSE="AGPL-3"
SLOT="0"
2014-01-30 10:42:17 +01:00
IUSE="alsa +debug opengl oss vaapi vdpau xscreensaver"
2013-01-29 17:04:50 +01:00
2014-01-30 10:42:17 +01:00
RDEPEND=">=media-video/vdr-2
2013-01-29 17:04:50 +01:00
x11-libs/libX11
>=x11-libs/libxcb-1.8
x11-libs/xcb-util-wm
2014-01-30 10:42:17 +01:00
x11-libs/xcb-util-keysyms
x11-libs/xcb-util-renderutil
2013-01-29 17:04:50 +01:00
alsa? ( media-libs/alsa-lib )
2013-04-17 16:35:51 +02:00
opengl? ( virtual/opengl )
2014-01-30 10:42:17 +01:00
vaapi? ( x11-libs/libva
virtual/ffmpeg[vaapi] )
vdpau? ( x11-libs/libvdpau
virtual/ffmpeg[vdpau] )"
2013-01-29 17:04:50 +01:00
DEPEND="${RDEPEND}
virtual/pkgconfig
2014-01-30 10:42:17 +01:00
x11-libs/xcb-util"
REQUIRED_USE="opengl? ( vaapi )
|| ( vaapi vdpau )
|| ( alsa oss )"
VDR_CONFD_FILE="${FILESDIR}/confd-0.6.0"
VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.6.0.sh"
2012-01-07 17:30:27 +01:00
2014-01-30 10:42:17 +01:00
pkg_setup() {
vdr-plugin-2_pkg_setup
2012-01-07 17:30:27 +01:00
2014-01-30 10:42:17 +01:00
append-cppflags -DHAVE_PTHREAD_NAME
use debug && append-cppflags -DDEBUG -DOSD_DEBUG
}
src_prepare() {
vdr-plugin-2_src_prepare
BUILD_PARAMS+=" ALSA=$(usex alsa 1 0)"
BUILD_PARAMS+=" OPENGL=$(usex opengl 1 0)"
BUILD_PARAMS+=" OSS=$(usex oss 1 0)"
BUILD_PARAMS+=" VAAPI=$(usex vaapi 1 0)"
BUILD_PARAMS+=" VDPAU=$(usex vdpau 1 0)"
BUILD_PARAMS+=" SCREENSAVER=$(usex xscreensaver 1 0)"
if has_version ">=media-video/ffmpeg-0.8"; then
BUILD_PARAMS+=" SWRESAMPLE=1"
fi
2012-11-30 20:46:13 +01:00
}
2012-01-08 14:19:48 +01:00
2012-11-30 20:46:13 +01:00
src_install() {
2013-01-29 17:04:50 +01:00
vdr-plugin-2_src_install
2014-01-30 10:42:17 +01:00
nonfatal dodoc ChangeLog Todo
2012-01-07 17:30:27 +01:00
}