# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Since the tar.gz for the source have somewhat unorthodox datestamping, we # have to do this number shuffle. MY_PV="${PV:6:2}${PV:4:2}${PV:0:4}" MY_S="${WORKDIR}/${PN}-${MY_PV}" SRC_URI="http://mxhaard.free.fr/spca50x/Download/${PN}-${MY_PV}.tar.gz" DESCRIPTION="This is version 0.50 of the spca5xx video for linux (v4l) driver, providing support for webcams and digital cameras based on the spca5xx range of chips manufactured by SunPlus." HOMEPAGE="http://mxhaard.free.fr" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" S=${WORKDIR}/${PN}-${PV} src_compile() { cd ${MY_S} unset ARCH make || die "compile failed" } src_install() { # Do this manually since the Makefile does not support automake. cd ${MY_S} unset ARCH MODLIB=/lib/modules/${KV}/kernel/drivers/usb/media/ mkdir -p ${D}${MODLIB} install -c -m 0644 spca50x.ko ${D}${MODLIB} || die dodoc INSTALL README } pkg_postinst() { einfo "Use /dev/video0 to access the webcam. Create a symbolic link from " einfo "/dev/video to support applications that can not change the device." }