# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ ECVS_SERVER="cvs.sourceforge.net:/cvsroot/usbvision" ECVS_MODULE="usbvision" ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}" S=${WORKDIR}/${ECVS_MODULE} inherit cvs DESCRIPTION="This is a driver for the video grabber USBVision - used in things like Hauppauge WINTV-USB" HOMEPAGE="http://usbvision.sourceforge.net/" SLOT="0" KEYWORDS="~x86" LICENSE="GPL" DEPEND="virtual/linux-sources" RDEPEND="${DEPEND}" src_compile() { epatch ${FILESDIR}/Makefile.patch check_KV mv Makefile Makefile.orig sed -e "s|uname -r|$KV|" \ < Makefile.orig \ > Makefile emake || die } src_install() { # The driver goes into the standard modules location insinto /lib/modules/${KV}/misc doins usbvision.o } pkg_postinst() { einfo "This driver requires Video4Linux support in the kernel or as a module." einfo "if you want to load this module on boot:" echo einfo "echo usbvision >> /etc/modules.autoload" echo einfo "This driver requires a v4l viewer like xawtv" }