blob: 4db9293d0556fe3865c09bd8e977f154e0b6b375 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv-utils/ivtv-utils-1.3.0.ebuild,v 1.1 2008/10/21 21:48:41 cardoe Exp $
inherit eutils linux-mod
DESCRIPTION="ivtv driver for Hauppauge PVR PCI cards"
HOMEPAGE="http://www.ivtvdriver.org"
SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/1.3.x/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="perl"
RDEPEND=">=sys-fs/udev-103"
DEPEND="app-arch/unzip"
PDEPEND=">=media-tv/ivtv-firmware-20070217
perl? (
dev-perl/Video-Frequencies
dev-perl/Video-ivtv
dev-perl/Config-IniFiles
virtual/perl-Getopt-Long
dev-perl/perl-tk )"
pkg_setup() {
MODULE_NAMES="saa717x(extra:${S}/i2c-drivers)"
BUILD_TARGETS="all"
CONFIG_CHECK="EXPERIMENTAL KMOD HAS_IOMEM FW_LOADER I2C I2C_ALGOBIT
VIDEO_DEV VIDEO_CAPTURE_DRIVERS VIDEO_V4L1 VIDEO_V4L2
!VIDEO_HELPER_CHIPS_AUTO VIDEO_IVTV"
if ! ( kernel_is ge 2 6 26 ); then
eerror "This package is only for the fully in-kernel"
eerror "IVTV driver shipping with kernel 2.6.26 and higher"
eerror ""
eerror "You will need to either:"
eerror "a) emerge a different kernel"
eerror "b) emerge ivtv"
eerror ""
eerror "See http://ivtvdriver.org/ for more information"
die "This only works on 2.6.26 and newer kernels"
fi
ewarn ""
ewarn "Make sure that your I2C and V4L kernel drivers are loaded as"
ewarn "modules, and not compiled into the kernel, or IVTV will not"
ewarn "work."
ewarn ""
linux-mod_pkg_setup
BUILD_PARAMS="KDIR=${KV_DIR}"
}
src_compile() {
emake || die "failed to build"
}
src_install() {
make DESTDIR="${D}" PREFIX="/usr" install || die "failed to install"
use perl && dobin perl/*.pl
cd "${S}"
dodoc README doc/* ChangeLog
use perl && dodoc utils/perl/README.ptune
}
pkg_postinst() {
elog ""
elog "This version of the IVTV utils supports the following hardware:"
elog "Hauppauge WinTV PVR-250"
elog "Hauppauge WinTV PVR-350"
elog "Hauppauge WinTV PVR-150"
elog "Hauppauge WinTV PVR-500"
elog "AVerMedia M179"
elog "Yuan MPG600/Kuroutoshikou iTVC16-STVLP"
elog "Yuan MPG160/Kuroutoshikou iTVC15-STVLP"
elog "Yuan PG600/DiamondMM PVR-550 (CX Falcon 2)"
elog "Adaptec AVC-2410"
elog "Adaptec AVC-2010"
elog "Nagase Transgear 5000TV"
elog "AOpen VA2000MAX-STN6"
elog "Yuan MPG600GR/Kuroutoshikou CX23416GYC-STVLP"
elog "I/O Data GV-MVP/RX"
elog "I/O Data GV-MVP/RX2E"
elog "Gotview PCI DVD (preliminary support only)"
elog "Gotview PCI DVD2 Deluxe"
elog "Yuan MPC622"
elog ""
ewarn ""
ewarn "IMPORTANT: In case of problems first read this page:"
ewarn "http://www.ivtvdriver.org/index.php/Troubleshooting"
ewarn ""
ewarn "If any of these conditions match your setup, you may want to look at the"
ewarn "README in /usr/share/doc/${PF}/"
ewarn ""
ewarn " - Using MythTV, a PVR-350 and the ivtvfb module"
ewarn " - Using the ivtv X driver and the ivtvfb module"
ewarn " - You want to manually build ivtv against v4l-dvb"
ewarn ""
ewarn "Also, the ivtv package comes with lots of documentation regarding setup,"
ewarn "proper use and debugging utilities."
ewarn "They are also located in /usr/share/doc/${PF}/"
ewarn ""
ewarn "For more information, see the IVTV driver homepage at:"
ewarn "http://www.ivtvdriver.org/"
}
|