diff options
Diffstat (limited to 'media-video/reelbox-ehd-xine/reelbox-ehd-xine-12384-r1.ebuild')
-rw-r--r-- | media-video/reelbox-ehd-xine/reelbox-ehd-xine-12384-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/media-video/reelbox-ehd-xine/reelbox-ehd-xine-12384-r1.ebuild b/media-video/reelbox-ehd-xine/reelbox-ehd-xine-12384-r1.ebuild new file mode 100644 index 0000000..9698199 --- /dev/null +++ b/media-video/reelbox-ehd-xine/reelbox-ehd-xine-12384-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +RESTRICT="mirror" + +inherit eutils + +DESCRIPTION="Xine Plugin: for the Reel eHD PCI card" +HOMEPAGE="http://www.reel-multimedia.com" +SRC_URI="http://vdr.websitec.de/download/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="media-libs/xine-lib" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN/reelbox-}" + +src_prepare() { + + sed -i -e "s:^LINUX_DIR.*:LINUX_DIR = /usr/src/linux/include:g" Makefile || die "sed Makefile failed!" + sed -i -e "s:../driver/hdshm.h:hdshm.h:g" ../hdshm3/src/hostlib/hdshmlib.c || die "sed Makefile failed!" + + sed -e "s:/dev/fb0:/dev/fb_reel:" -i hde_base.h + + if has_version ">=media-libs/xine-lib-1.2" ; then + sed -i * -e "s:get_description:description:g" + sed -i * -e "s:get_identifier:identifier:g" + fi + + sed -i xplayer.c -e "s:hde-video:hde-video-aa:g" + +} + +src_compile() { + make -f Makefile || die "make failed!" + make -f Makefile xplayer || die "make xplayer failed!" +} + +src_install() { + dobin xplayer + + XINE_PLUGIN_DIR=$(xine-config --plugindir) + if [[ ${XINE_PLUGIN_DIR} = "" ]]; then + eerror "Could not find xine plugin dir" + die "Could not find xine plugin dir" + fi + cd "${S}" + insopts -m0755 + insinto "${XINE_PLUGIN_DIR}" + doins xineplug_hde.so +} |