Update gentoo ebuild.

This commit is contained in:
hd.brummy 2014-01-30 10:42:17 +01:00 committed by Johns
parent f73f7a28f3
commit b3f0fe9fea
2 changed files with 48 additions and 40 deletions

View File

@ -1,5 +1,10 @@
User hd.brummy
Date: Thu Jan 30 10:40:49 CET 2014
Update gentoo ebuild.
User johns User johns
Date: Date: Thu Jan 30 10:36:53 CET 2014
Fix spelling in arguments help. Fix spelling in arguments help.
Add Workaround for alsa blocking audio device. Add Workaround for alsa blocking audio device.

View File

@ -1,67 +1,70 @@
# Copyright 1999-2012 Gentoo Foundation # Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: $
EAPI="5" EAPI="5"
inherit flag-o-matic toolchain-funcs vdr-plugin-2 eutils inherit vdr-plugin-2 git-2
RESTRICT="test"
if [ "${PV}" = "9999" ]; then
inherit git-2
EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-plugin-softhddevice.git" EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-plugin-softhddevice.git"
KEYWORDS="" KEYWORDS=""
else
SRC_URI="mirror://vdr-developerorg/889/${P}.tgz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="Software and GPU emulated HD output device plugin for VDR" DESCRIPTION="VDR Plugin: Software and GPU emulated HD output device"
HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-softhddevice" HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-softhddevice"
LICENSE="AGPL-3" LICENSE="AGPL-3"
SLOT="0" SLOT="0"
IUSE="alsa oss vaapi vdpau opengl yaepg xscreensaver debug" IUSE="alsa +debug opengl oss vaapi vdpau xscreensaver"
RDEPEND=">=media-video/vdr-1.7 RDEPEND=">=media-video/vdr-2
>=virtual/ffmpeg-0.7[vdpau?,vaapi?]
x11-libs/libX11 x11-libs/libX11
>=x11-libs/libxcb-1.8 >=x11-libs/libxcb-1.8
x11-libs/xcb-util-wm x11-libs/xcb-util-wm
x11-libs/xcb-util-keysyms
x11-libs/xcb-util-renderutil
alsa? ( media-libs/alsa-lib ) alsa? ( media-libs/alsa-lib )
vdpau? ( x11-libs/libvdpau )
vaapi? ( x11-libs/libva )
opengl? ( virtual/opengl ) opengl? ( virtual/opengl )
alsa? ( media-libs/alsa-lib ) vaapi? ( x11-libs/libva
yaepg? ( >=media-video/vdr-1.7[yaepg] )" virtual/ffmpeg[vaapi] )
vdpau? ( x11-libs/libvdpau
virtual/ffmpeg[vdpau] )"
DEPEND="${RDEPEND} DEPEND="${RDEPEND}
x11-libs/xcb-util
sys-devel/gettext
virtual/pkgconfig virtual/pkgconfig
oss? ( sys-kernel/linux-headers )" x11-libs/xcb-util"
src_compile() { REQUIRED_USE="opengl? ( vaapi )
local myconf || ( vaapi vdpau )
|| ( alsa oss )"
VDR_CONFD_FILE="${FILESDIR}/confd-0.6.0"
VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.6.0.sh"
pkg_setup() {
vdr-plugin-2_pkg_setup
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)"
myconf+=" ALSA=$(usex alsa 1 0)"
myconf+=" OSS=$(usex oss 1 0)"
myconf+=" VDPAU=$(usex vdpau 1 0)"
myconf+=" OPENGL=$(usex opengl 1 0)"
myconf+=" VAAPI=$(usex vaapi 1 0)"
myconf+=" SCREENSAVER=$(usex xscreensaver 1 0)"
if has_version ">=media-video/ffmpeg-0.8"; then if has_version ">=media-video/ffmpeg-0.8"; then
myconf+=" SWRESAMPLE=1" BUILD_PARAMS+=" SWRESAMPLE=1"
fi fi
append-cflags -DHAVE_PTHREAD_NAME -D_GNU_SOURCE
append-cxxflags -DHAVE_PTHREAD_NAME -D_GNU_SOURCE
tc-export CC CXX
BUILD_PARAMS="${myconf}"
vdr-plugin-2_src_compile
} }
src_install() { src_install() {
vdr-plugin-2_src_install vdr-plugin-2_src_install
dodoc ChangeLog README.txt nonfatal dodoc ChangeLog Todo
} }