diff options
author | hd.brummy <> | 2014-01-30 10:42:17 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2014-01-30 10:42:17 +0100 |
commit | b3f0fe9fea6bb4cb68164f84b49d2903a661368a (patch) | |
tree | f1b28a1cd04365d9b5727aef5d1dc36978d0e1fe /vdr-softhddevice-9999.ebuild | |
parent | f73f7a28f3d4c4e8d9848fbc195f3db76adc79b2 (diff) | |
download | vdr-plugin-softhddevice-b3f0fe9fea6bb4cb68164f84b49d2903a661368a.tar.gz vdr-plugin-softhddevice-b3f0fe9fea6bb4cb68164f84b49d2903a661368a.tar.bz2 |
Update gentoo ebuild.
Diffstat (limited to 'vdr-softhddevice-9999.ebuild')
-rw-r--r-- | vdr-softhddevice-9999.ebuild | 83 |
1 files changed, 43 insertions, 40 deletions
diff --git a/vdr-softhddevice-9999.ebuild b/vdr-softhddevice-9999.ebuild index 2365a52..d8a2c53 100644 --- a/vdr-softhddevice-9999.ebuild +++ b/vdr-softhddevice-9999.ebuild @@ -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 # $Header: $ EAPI="5" -inherit flag-o-matic toolchain-funcs vdr-plugin-2 eutils +inherit vdr-plugin-2 git-2 -if [ "${PV}" = "9999" ]; then - inherit git-2 - EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-plugin-softhddevice.git" - KEYWORDS="" -else - SRC_URI="mirror://vdr-developerorg/889/${P}.tgz" - KEYWORDS="~amd64 ~x86" -fi +RESTRICT="test" -DESCRIPTION="Software and GPU emulated HD output device plugin for VDR" +EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-plugin-softhddevice.git" +KEYWORDS="" + +DESCRIPTION="VDR Plugin: Software and GPU emulated HD output device" HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-softhddevice" LICENSE="AGPL-3" 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 - >=virtual/ffmpeg-0.7[vdpau?,vaapi?] +RDEPEND=">=media-video/vdr-2 x11-libs/libX11 >=x11-libs/libxcb-1.8 x11-libs/xcb-util-wm + x11-libs/xcb-util-keysyms + x11-libs/xcb-util-renderutil alsa? ( media-libs/alsa-lib ) - vdpau? ( x11-libs/libvdpau ) - vaapi? ( x11-libs/libva ) opengl? ( virtual/opengl ) - alsa? ( media-libs/alsa-lib ) - yaepg? ( >=media-video/vdr-1.7[yaepg] )" + vaapi? ( x11-libs/libva + virtual/ffmpeg[vaapi] ) + vdpau? ( x11-libs/libvdpau + virtual/ffmpeg[vdpau] )" DEPEND="${RDEPEND} - x11-libs/xcb-util - sys-devel/gettext virtual/pkgconfig - oss? ( sys-kernel/linux-headers )" - -src_compile() { - local myconf - - 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 - myconf+=" SWRESAMPLE=1" - fi + 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" - append-cflags -DHAVE_PTHREAD_NAME -D_GNU_SOURCE - append-cxxflags -DHAVE_PTHREAD_NAME -D_GNU_SOURCE - tc-export CC CXX +pkg_setup() { + vdr-plugin-2_pkg_setup - BUILD_PARAMS="${myconf}" - vdr-plugin-2_src_compile + 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 } src_install() { vdr-plugin-2_src_install - dodoc ChangeLog README.txt + nonfatal dodoc ChangeLog Todo } |