blob: 47e0efa4472f0f3b4fba25ca20caaa0baf63f41c (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/linux-uvc/linux-uvc-0.0.1_pre51.ebuild,v 1.3 2006/10/02 10:47:35 genstef Exp $
inherit eutils linux-mod
DESCRIPTION="Linux driver and user-space tools for USB Video Class devices."
HOMEPAGE="http://linux-uvc.berlios.de/"
SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.bz2"
#ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk/"
#ESVN_OPTIONS="-r ${PV/*_pre}"
#svn co http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk linux-uvc-0.0.1_pre
#rm -r linux-uvc-0.0.1_pre*/.svn
LICENSE="GPL-2"
KEYWORDS="~x86"
SLOT="0"
IUSE="isight"
DEPEND=">=dev-libs/libusb-0.1.12"
MODULE_NAMES="uvcvideo(usb/media)"
BUILD_TARGETS="uvcvideo"
CONFIG_CHECK="VIDEO_DEV"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERNEL_DIR=${KV_DIR}"
if use isight; then
MODULESD_UVCVIDEO_ENABLED="yes"
MODULESD_UVCVIDEO_ADDITIONS=( "pre-install uvcvideo /sbin/isight-firmware-tool /lib/firmware/AppleUSBVideoSupport; sleep 2" )
fi
}
src_unpack() {
unpack ${A}
cd ${S}
use isight && epatch ${FILESDIR}/41-001-isight.patch
kernel_is ge 2 6 18 && epatch ${FILESDIR}/uvc-2.6.18.diff
}
src_compile() {
use isight && emake extract
linux-mod_src_compile
}
src_install() {
into /
use isight && newsbin extract isight-firmware-tool
linux-mod_src_install
}
pkg_postinst() {
linux-mod_pkg_postinst
ewarn "This is SVN checkout build -- against revision: ${PV/*_pre}"
ewarn "If something is broken, you should get involved, and report"
ewarn "back to the mailing list linux-uvc-devel@lists.berlios.de"
if use isight; then
elog "Using iSight cameras, you *must* install the firmware to /lib/firmware, for e.g:"
elog " mkdir -p /lib/firmware"
elog " cp /\${OSX_MOUNT}/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport /lib/firmware"
elog "Check /etc/modules.d/uvcvideo for more info."
fi
}
|