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

80 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
2013-01-29 17:04:50 +01:00
inherit flag-o-matic toolchain-funcs vdr-plugin-2 eutils
2012-01-07 17:30:27 +01:00
2013-01-29 17:04:50 +01:00
if [ "${PV}" = "9999" ]; then
inherit git-2
EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-plugin-softhddevice.git"
KEYWORDS=""
2012-01-07 17:30:27 +01:00
else
2013-01-29 17:04:50 +01:00
SRC_URI="mirror://vdr-developerorg/889/${P}.tgz"
KEYWORDS="~amd64 ~x86"
2012-01-07 17:30:27 +01:00
fi
2013-01-29 17:04:50 +01:00
DESCRIPTION="Software and GPU emulated HD output device plugin for VDR"
2012-01-07 17:30:27 +01:00
HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-softhddevice"
LICENSE="AGPL-3"
SLOT="0"
2013-01-29 17:04:50 +01:00
IUSE="alsa oss vaapi vdpau yaepg xscreensaver debug"
RDEPEND=">=media-video/vdr-1.7
>=virtual/ffmpeg-0.7[vdpau?,vaapi?]
x11-libs/libX11
>=x11-libs/libxcb-1.8
x11-libs/xcb-util-wm
alsa? ( media-libs/alsa-lib )
vdpau? ( x11-libs/libvdpau )
vaapi? ( x11-libs/libva )
alsa? ( media-libs/alsa-lib )
yaepg? ( >=media-video/vdr-1.7[yaepg] )"
DEPEND="${RDEPEND}
x11-libs/xcb-util
sys-devel/gettext
virtual/pkgconfig
oss? ( sys-kernel/linux-headers )"
2012-01-07 17:30:27 +01:00
src_prepare() {
2013-01-29 17:04:50 +01:00
vdr-plugin-2_src_prepare
2012-01-07 17:30:27 +01:00
}
src_compile() {
2013-01-29 17:04:50 +01:00
local myconf
myconf+=" ALSA=$(usex alsa 1 0)"
myconf+=" OSS=$(usex oss 1 0)"
myconf+=" VDPAU=$(usex vdpau 1 0)"
myconf+=" VAAPI=$(usex vaapi 1 0)"
myconf+=" SCREENSAVER=$(usex xscreensaver 1 0)"
# FIXME: need to know, if libav or ffmpeg is used for virtual/ffmpeg
myconf+=" SWRESAMPLE=1"
2012-01-07 17:30:27 +01:00
2013-01-29 17:04:50 +01:00
append-cflags -DHAVE_PTHREAD_NAME
append-cxxflags -DHAVE_PTHREAD_NAME
tc-export CC CXX
2012-01-07 17:30:27 +01:00
2013-01-29 17:04:50 +01:00
#emake all LIBDIR="." $myconf || die
2012-01-07 17:30:27 +01:00
2013-01-29 17:04:50 +01:00
#vdr-plugin-2_src_compile
cd "${S}"
2012-01-08 14:19:48 +01:00
2013-01-29 17:04:50 +01:00
BUILD_TARGETS=${BUILD_TARGETS:-${VDRPLUGIN_MAKE_TARGET:-all}}
emake ${BUILD_PARAMS} ${myconf} \
${BUILD_TARGETS} \
LOCALEDIR="${TMP_LOCALE_DIR}" \
LIBDIR="${S}" \
TMPDIR="${T}" \
2012-11-30 20:46:13 +01:00
|| die "emake failed"
}
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
dodoc ChangeLog
2012-01-07 17:30:27 +01:00
}