Lines 6-59
Link Here
|
6 |
|
6 |
|
7 |
DESCRIPTION="ivtv driver for Hauppauge PVR PCI cards" |
7 |
DESCRIPTION="ivtv driver for Hauppauge PVR PCI cards" |
8 |
HOMEPAGE="http://www.ivtvdriver.org" |
8 |
HOMEPAGE="http://www.ivtvdriver.org" |
9 |
SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/0.10.x/${P}.tar.gz" |
9 |
SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/1.0.x/${P}.tar.gz" |
10 |
SLOT="0" |
10 |
SLOT="0" |
11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
12 |
KEYWORDS="~amd64 ~ppc ~x86" |
12 |
KEYWORDS="~amd64 ~ppc ~x86" |
13 |
IUSE="fbcon" |
13 |
IUSE="fbcon saa717x" |
14 |
RDEPEND="|| ( >=sys-fs/udev-103 sys-apps/hotplug )" |
14 |
RDEPEND="|| ( >=sys-fs/udev-103 sys-apps/hotplug )" |
15 |
DEPEND="app-arch/unzip" |
15 |
DEPEND="app-arch/unzip" |
16 |
PDEPEND="=media-tv/pvr-firmware-20070217" |
16 |
PDEPEND="=media-tv/pvr-firmware-20070217" |
17 |
|
17 |
|
18 |
pkg_setup() { |
18 |
pkg_setup() { |
19 |
|
19 |
|
20 |
MODULE_NAMES="ivtv(extra:${S}/driver) |
20 |
if ! ( kernel_is 2 6 22 ); then |
21 |
saa717x(extra:${S}/i2c-drivers)" |
21 |
eerror "IVTV version 1.x is only kernel 2.6.22 and up" |
22 |
BUILD_TARGETS="all" |
22 |
eerror "It only contains the ivtv-fb, saa717x modules" |
23 |
CONFIG_CHECK="EXPERIMENTAL KMOD VIDEO_DEV I2C VIDEO_V4L1_COMPAT VIDEO_V4L2 |
23 |
eerror "and ivtv utilities" |
24 |
!VIDEO_HELPER_CHIPS_AUTO |
|
|
25 |
FW_LOADER VIDEO_WM8775 VIDEO_MSP3400 VIDEO_CX25840 VIDEO_TUNER |
26 |
VIDEO_SAA711X VIDEO_CX2341X VIDEO_SAA7127 VIDEO_TVEEPROM" |
27 |
|
28 |
if use fbcon; then |
29 |
MODULE_NAMES="${MODULE_NAMES} ivtv-fb(extra:${S}/driver)" |
30 |
CONFIG_CHECK="${CONFIG_CHECK} FB FB_TRIDENT FRAMEBUFFER_CONSOLE FONTS" |
31 |
fi |
24 |
fi |
32 |
|
25 |
|
33 |
if ! ( kernel_is 2 6 18 || kernel_is 2 6 19 || kernel_is 2 6 20 \ |
26 |
if use saa717x; then |
34 |
|| kernel_is 2 6 21 ); then |
27 |
MODULE_NAMES="saa717x(extra:${S}/i2c-drivers)" |
35 |
eerror "Each IVTV driver branch will only work with a specific" |
28 |
BUILD_TARGETS="all" |
36 |
eerror "linux kernel branch." |
29 |
CONFIG_CHECK="FW_LOADER VIDEO_IVTV" |
37 |
eerror "" |
|
|
38 |
eerror "You will need to either:" |
39 |
eerror "a) emerge a different kernel" |
40 |
eerror "b) emerge a different ivtv driver" |
41 |
eerror "" |
42 |
eerror "See http://ivtvdriver.org/ for more information" |
43 |
die "This only works on kernels 2.6.18 through 2.6.21" |
44 |
fi |
45 |
|
46 |
if kernel_is 2 6 20; then |
47 |
ewarn |
48 |
ewarn "For 2.6.20.x kernels, this module will *only* work against" |
49 |
ewarn "these versions:" |
50 |
ewarn ">=sys-kernel/gentoo-sources-2.6.20-r1" |
51 |
ewarn ">=sys-kernel/vanilla-sources.2.6.20.2" |
52 |
ewarn "" |
53 |
epause 5 |
54 |
fi |
30 |
fi |
55 |
|
31 |
|
56 |
if use fbcon; then |
32 |
if use fbcon; then |
|
|
33 |
MODULE_NAMES="${MODULE_NAMES} ivtv-fb(extra:${S}/driver)" |
34 |
CONFIG_CHECK="${CONFIG_CHECK} FB FB_TRIDENT FRAMEBUFFER_CONSOLE FONTS" |
35 |
|
57 |
ewarn "" |
36 |
ewarn "" |
58 |
ewarn "From the README regarding framebuffer support:" |
37 |
ewarn "From the README regarding framebuffer support:" |
59 |
ewarn "" |
38 |
ewarn "" |
Lines 74-88
Link Here
|
74 |
ewarn "" |
53 |
ewarn "" |
75 |
fi |
54 |
fi |
76 |
|
55 |
|
77 |
linux-mod_pkg_setup |
56 |
if ( use fbcon || use saa717x ); then |
78 |
|
57 |
linux-mod_pkg_setup |
79 |
BUILD_PARAMS="KDIR=${KV_DIR}" |
58 |
BUILD_PARAMS="KDIR=${KV_DIR}" |
|
|
59 |
fi |
80 |
} |
60 |
} |
81 |
|
61 |
|
82 |
src_compile() { |
62 |
src_compile() { |
83 |
|
63 |
|
84 |
cd "${S}/driver" |
64 |
if ( use fbcon || use saa717x ); then |
85 |
linux-mod_src_compile || die "failed to build driver" |
65 |
cd "${S}/driver" |
|
|
66 |
linux-mod_src_compile || die "failed to build driver" |
67 |
fi |
86 |
|
68 |
|
87 |
cd "${S}/utils" |
69 |
cd "${S}/utils" |
88 |
emake INCDIR="${KV_DIR}/include" || die "failed to build utils " |
70 |
emake INCDIR="${KV_DIR}/include" || die "failed to build utils " |
Lines 96-103
Link Here
|
96 |
cd "${S}" |
78 |
cd "${S}" |
97 |
dodoc README* doc/* utils/README.X11 ChangeLog* utils/perl/README.ptune |
79 |
dodoc README* doc/* utils/README.X11 ChangeLog* utils/perl/README.ptune |
98 |
|
80 |
|
99 |
cd "${S}/driver" |
81 |
if ( use fbcon || use saa717x ); then |
100 |
linux-mod_src_install || die "failed to install modules" |
82 |
cd "${S}/driver" |
|
|
83 |
linux-mod_src_install || die "failed to install modules" |
84 |
fi |
101 |
|
85 |
|
102 |
# Add the aliases |
86 |
# Add the aliases |
103 |
insinto /etc/modules.d |
87 |
insinto /etc/modules.d |
Lines 106-149
Link Here
|
106 |
|
90 |
|
107 |
pkg_postinst() { |
91 |
pkg_postinst() { |
108 |
|
92 |
|
109 |
linux-mod_pkg_postinst |
93 |
if ( use fbcon || use saa717x ); then |
|
|
94 |
linux-mod_pkg_postinst |
95 |
fi |
110 |
|
96 |
|
111 |
elog "" |
97 |
ewarn "IMPORTANT: In case of problems first read this page:" |
112 |
elog "This version of the IVTV driver supports the following hardware:" |
98 |
ewarn "http://www.ivtvdriver.org/index.php/Troubleshooting" |
113 |
elog "Hauppauge WinTV PVR-250" |
99 |
ewarn "" |
114 |
elog "Hauppauge WinTV PVR-350" |
100 |
ewarn "If any of these conditions match your setup, you may want to look at the" |
115 |
elog "Hauppauge WinTV PVR-150" |
101 |
ewarn "README in /usr/share/doc/${PF}/" |
116 |
elog "Hauppauge WinTV PVR-500" |
102 |
ewarn "" |
117 |
elog "AVerMedia M179" |
103 |
ewarn " - Using MythTV, a PVR-350 and the ivtv-fb module" |
118 |
elog "Yuan MPG600/Kuroutoshikou iTVC16-STVLP" |
104 |
ewarn " - Using the ivtv X driver and the ivtv-fb module" |
119 |
elog "Yuan MPG160/Kuroutoshikou iTVC15-STVLP" |
105 |
ewarn " - You want to manually build ivtv against v4l-dvb" |
120 |
elog "Yuan PG600/DiamondMM PVR-550 (CX Falcon 2)" |
106 |
ewarn "" |
121 |
elog "Adaptec AVC-2410" |
107 |
ewarn "Also, the ivtv package comes with lots of documentation regarding setup," |
122 |
elog "Adaptec AVC-2010" |
108 |
ewarn "proper use and debugging utilities." |
123 |
elog "Nagase Transgear 5000TV" |
109 |
ewarn "They are also located in /usr/share/doc/${PF}/" |
124 |
elog "AOpen VA2000MAX-STN6" |
110 |
ewarn "" |
125 |
elog "Yuan MPG600GR/Kuroutoshikou CX23416GYC-STVLP" |
111 |
ewarn "For more information, see the IVTV driver homepage at:" |
126 |
elog "I/O Data GV-MVP/RX" |
112 |
ewarn "http://www.ivtvdriver.org/" |
127 |
elog "I/O Data GV-MVP/RX2E" |
|
|
128 |
elog "Gotview PCI DVD (preliminary support only)" |
129 |
elog "Gotview PCI DVD2 Deluxe" |
130 |
elog "Yuan MPC622" |
131 |
elog "" |
132 |
ewarn "" |
133 |
ewarn "IMPORTANT: In case of problems first read this page:" |
134 |
ewarn "http://www.ivtvdriver.org/index.php/Troubleshooting" |
135 |
ewarn "" |
136 |
ewarn "If any of these conditions match your setup, you may want to look at the" |
137 |
ewarn "README in /usr/share/doc/${PF}/" |
138 |
ewarn "" |
139 |
ewarn " - Using MythTV, a PVR-350 and the ivtv-fb module" |
140 |
ewarn " - Using the ivtv X driver and the ivtv-fb module" |
141 |
ewarn " - You want to manually build ivtv against v4l-dvb" |
142 |
ewarn "" |
143 |
ewarn "Also, the ivtv package comes with lots of documentation regarding setup," |
144 |
ewarn "proper use and debugging utilities." |
145 |
ewarn "They are also located in /usr/share/doc/${PF}/" |
146 |
ewarn "" |
147 |
ewarn "For more information, see the IVTV driver homepage at:" |
148 |
ewarn "http://www.ivtvdriver.org/" |
149 |
} |
113 |
} |