# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: inherit linux-mod DESCRIPTION="spca5xx driver for webcams." HOMEPAGE="http://mxhaard.free.fr/spca5xx.html" SRC_URI="!usbfix? ( http://mxhaard.free.fr/spca50x/Download/${P}.tar.gz ) usbfix? ( http://www.geode-blackbox.de/Downloads/spca5xx-${PV}VodunVibeFix.tar.gz )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="usbfix" RESTRICT="" DEPEND="" RDEPEND="" MODULE_NAMES="spca5xx(usb/video:)" BUILD_TARGETS="default" CONFIG_CHECK="VIDEO_DEV" pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERNELDIR=${KV_DIR}" } src_unpack() { unpack ${A} if use usbfix; then mv ${WORKDIR}/spca5xx-${PV}VodunVibeFix ${WORKDIR}/${P} fi convert_to_m ${S}/Makefile cd ${S} epatch ${FILESDIR}/spca-20060501-defines.patch } src_install() { dodoc CHANGELOG INSTALL README linux-mod_src_install } pkg_postinst() { if use !usbfix; then ewarn "If you get messages like this:" ewarn "Unable to open /dev/video0 (No space left on device)" ewarn "Set the usbfix USE flag and this message will disapear!" fi }