# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator MY_PV=$(get_version_component_range 3) MY_P="${PN}-${MY_PV}" S="${WORKDIR}/${PN/reelbox-}" 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}" src_unpack () { unpack ${A} cd "${S}" 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!" if [ ! -z "$EHD_FRAMEBUFFER" ] then einfo "Changing framebuffer device to $EHD_FRAMEBUFFER" find . -type f -exec sed -i "s:/dev/fb0:${EHD_FRAMEBUFFER}:g" {} \; fi } src_compile () { make -f Makefile || die "make failed!" } src_install() { 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 }