# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils linux-info linux-mod toolchain-funcs MY_P=ov511-${PV} S=${WORKDIR}/${MY_P} DESCRIPTION="OV511 webcam v4l driver (devel version)" HOMEPAGE="http://alpha.dyndns.org/ov511/" SRC_URI="http://alpha.dyndns.org/ov511/download/2.xx/distros/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND=">virtual/linux-sources-2.6" src_unpack() { unpack ${A} cd ${S} } pkg_setup() { linux-mod_pkg_setup } src_compile() { set_arch_to_kernel addwrite "/usr/src/${FK}" make } src_install() { linux-mod_src_install insinto /lib/modules/${KV}/kernel/drivers/usb/media/ doins *.ko insinto /usr/share/doc/${MY_P}/ doins COPYING README ov511.txt dodir /etc/modules.d echo "# compression enabled webcam : " > ${D}/etc/modules.d/ov511 echo "options ov511 compress=1" >> ${D}/etc/modules.d/ov511 einfo "As of version 2.21, the camera chip code is in a separate module (ovcamchip)." einfo "If you have a camera, this must be loaded either before or after loading the" einfo "ov511 or ovfx2 drivers:" einfo "modprobe ovcamchip" einfo "or, if you have a video-capture box from Lifeview (USB CapView):" einfo "modprobe saa7111-new" einfo "If the box also has a TV tuner (Lifeview USB LifeTV):" einfo "modprobe tda7313 (audio chip driver)" einfo "insmod tuner.o (TV tuner driver. This is different from the" einfo " tuner.o that's in the kernel, and may conflict)" einfo "Finally, load the driver itself. For OV511, OV511+, OV518, and OV518+ cameras:" einfo "modprobe ov511" einfo "or, for the Orange Micro iBot2:" einfo "modprobe ovfx2" ewarn "run modules-update in order modprobe to take care of compression" } pkg_postinst() { linux-mod_pkg_postinst }