summaryrefslogtreecommitdiff
blob: e785532a054b4c4552fff6930213038a5600c20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/qc-usb/qc-usb-0.6.3.ebuild,v 1.8 2006/11/09 15:00:59 dsd Exp $

inherit linux-mod eutils multilib

DESCRIPTION="Logitech USB Quickcam Express Linux Driver Modules"
HOMEPAGE="http://qce-ga.sourceforge.net/"
SRC_URI="mirror://sourceforge/qce-ga/${P}.tar.gz"

IUSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~amd64"

CONFIG_CHECK="USB VIDEO_DEV"
MODULE_NAMES="quickcam(usb:)"
BUILD_TARGETS="all"

pkg_setup() {
	ABI=${KERNEL_ABI}
	linux-mod_pkg_setup
	BUILD_PARAMS="LINUX_DIR=${KV_DIR}"
}

src_unpack() {
	unpack ${A}
	cd ${S}

	# Linux 2.6.16 compatibility, bug #127018
	epatch ${FILESDIR}/${P}-linux-2.6.16.patch
	convert_to_m ${S}/Makefile
	epatch ${FILESDIR}/qc-usb-gcc4.patch
	epatch ${FILESDIR}/qc-usb-linux-2.6.18-1.patch
	epatch ${FILESDIR}/qc-usb-linux-2.6.18-2.patch
}

src_install() {
	linux-mod_src_install

	dobin qcset
	dodoc README* APPLICATIONS COPYING CREDITS TODO FAQ

	insinto /usr/share/doc/${PF}
	doins quickcam.sh debug.sh freeshm.sh
}