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

75 lines
1.8 KiB
Bash
Raw Normal View History

2012-01-07 17:30:27 +01:00
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
2012-11-30 20:46:13 +01:00
EAPI="4"
2012-01-07 17:30:27 +01:00
2012-11-30 20:46:13 +01:00
inherit eutils vdr-plugin-2
2012-01-07 17:30:27 +01:00
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"
2012-09-15 21:40:04 +02:00
IUSE="vaapi vdpau alsa oss yaepg opengl debug"
2012-01-07 17:30:27 +01:00
DEPEND=">=x11-libs/libxcb-1.8
2012-01-07 17:30:27 +01:00
x11-libs/xcb-util
x11-libs/xcb-util-wm
x11-libs/xcb-util-keysyms
x11-libs/xcb-util-renderutil
x11-libs/libX11
2012-01-16 16:39:23 +01:00
opengl? ( virtual/opengl )
>=virtual/ffmpeg-0.7
2012-01-07 17:30:27 +01:00
sys-devel/gettext
sys-devel/make
2012-01-08 14:19:48 +01:00
dev-util/pkgconfig
yaepg? ( >=media-video/vdr-1.7.23[yaepg] )
!yaepg? ( >=media-video/vdr-1.7.23 )
vdpau? ( x11-libs/libvdpau virtual/ffmpeg[vdpau] )
vaapi? ( x11-libs/libva virtual/ffmpeg[vaapi] )
2012-01-07 17:30:27 +01:00
alsa? ( media-libs/alsa-lib )
2012-01-16 23:55:45 +01:00
oss? ( sys-kernel/linux-headers )
2012-01-07 17:30:27 +01:00
"
src_prepare() {
2012-11-30 20:46:13 +01:00
vdr-plugin-2_src_prepare
2012-01-07 17:30:27 +01:00
}
src_compile() {
local myconf
2012-01-25 15:30:22 +01:00
myconf="-DHAVE_PTHREAD_NAME"
2012-01-07 17:30:27 +01:00
use vdpau && myconf="${myconf} -DUSE_VDPAU"
use vaapi && myconf="${myconf} -DUSE_VAAPI"
use alsa && myconf="${myconf} -DUSE_ALSA"
use oss && myconf="${myconf} -DUSE_OSS"
2012-09-15 21:40:04 +02:00
use debug && myconf="${myconf} -DDEBUG"
2012-01-07 17:30:27 +01:00
2012-11-30 20:46:13 +01:00
#vdr-plugin-2_src_compile
cd "${S}"
2012-01-07 17:30:27 +01:00
2012-11-30 20:46:13 +01:00
BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all}}
2012-01-08 14:19:48 +01:00
2012-11-30 20:46:13 +01:00
emake ${BUILD_PARAMS} CONFIG="${myconf}" \
${BUILD_TARGETS} \
LOCALEDIR="${TMP_LOCALE_DIR}" \
LIBDIR="${S}" \
TMPDIR="${T}" \
|| die "emake failed"
}
2012-01-08 14:19:48 +01:00
2012-11-30 20:46:13 +01:00
src_install() {
vdr-plugin-2_src_install
2012-01-07 17:30:27 +01:00
}