1 |
cardoe 07/09/11 14:28:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mythtv-0.20.2_p14472.ebuild |
5 |
mythtv-0.21_pre14480.ebuild |
6 |
Removed: mythtv-0.21_pre14358.ebuild |
7 |
mythtv-0.20.2_p14430.ebuild |
8 |
mythtv-0.20.2_p14357.ebuild |
9 |
Log: |
10 |
new 0.20 rev for xmltv fixes. new 0.21 for upstream trunk fixes. remove old versions |
11 |
(Portage version: 2.1.3.9) |
12 |
|
13 |
Revision Changes Path |
14 |
1.186 media-tv/mythtv/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.186&view=markup |
17 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.186&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.185&r2=1.186 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
23 |
retrieving revision 1.185 |
24 |
retrieving revision 1.186 |
25 |
diff -u -r1.185 -r1.186 |
26 |
--- ChangeLog 7 Sep 2007 21:14:03 -0000 1.185 |
27 |
+++ ChangeLog 11 Sep 2007 14:28:01 -0000 1.186 |
28 |
@@ -1,6 +1,16 @@ |
29 |
# ChangeLog for media-tv/mythtv |
30 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.185 2007/09/07 21:14:03 cardoe Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.186 2007/09/11 14:28:01 cardoe Exp $ |
33 |
+ |
34 |
+*mythtv-0.21_pre14480 (11 Sep 2007) |
35 |
+*mythtv-0.20.2_p14472 (11 Sep 2007) |
36 |
+ |
37 |
+ 11 Sep 2007; Doug Goldstein <cardoe@g.o> |
38 |
+ -mythtv-0.20.2_p14357.ebuild, -mythtv-0.20.2_p14430.ebuild, |
39 |
+ +mythtv-0.20.2_p14472.ebuild, -mythtv-0.21_pre14358.ebuild, |
40 |
+ +mythtv-0.21_pre14480.ebuild: |
41 |
+ new 0.20 rev for xmltv fixes. new 0.21 for upstream trunk fixes. remove old |
42 |
+ versions |
43 |
|
44 |
*mythtv-0.21_pre14450 (07 Sep 2007) |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
1.1 media-tv/mythtv/mythtv-0.20.2_p14472.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14472.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14472.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: mythtv-0.20.2_p14472.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2007 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.20.2_p14472.ebuild,v 1.1 2007/09/11 14:28:01 cardoe Exp $ |
59 |
|
60 |
inherit mythtv flag-o-matic multilib eutils qt3 subversion toolchain-funcs |
61 |
|
62 |
DESCRIPTION="Homebrew PVR project" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~ppc ~x86" |
65 |
|
66 |
IUSE_VIDEO_CARDS="video_cards_i810 video_cards_nvidia video_cards_via" |
67 |
|
68 |
IUSE="alsa altivec autostart backendonly crciprec dbox2 debug directv dts dvb dvd freebox frontendonly hdhomerun ieee1394 ivtv jack joystick lcd lirc mmx vorbis opengl perl xvmc ${IUSE_VIDEO_CARDS}" |
69 |
|
70 |
RDEPEND=">=media-libs/freetype-2.0 |
71 |
>=media-sound/lame-3.93.1 |
72 |
x11-libs/libX11 |
73 |
x11-libs/libXext |
74 |
x11-libs/libXinerama |
75 |
x11-libs/libXv |
76 |
x11-libs/libXrandr |
77 |
x11-libs/libXxf86vm |
78 |
xvmc? ( |
79 |
x11-libs/libXvMC |
80 |
video_cards_nvidia? ( x11-drivers/nvidia-drivers ) |
81 |
video_cards_via? ( x11-drivers/xf86-video-via ) |
82 |
video_cards_i810? ( x11-drivers/xf86-video-i810 ) |
83 |
) |
84 |
$(qt_min_version 3.3) |
85 |
virtual/mysql |
86 |
virtual/opengl |
87 |
virtual/glu |
88 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
89 |
dts? ( || ( media-libs/libdca media-libs/libdts ) ) |
90 |
dvd? ( media-libs/libdvdnav |
91 |
media-libs/libdts ) |
92 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
93 |
directv? ( virtual/perl-Time-HiRes ) |
94 |
ivtv? ( media-tv/ivtv ) |
95 |
jack? ( media-sound/jack-audio-connection-kit ) |
96 |
lcd? ( app-misc/lcdproc ) |
97 |
lirc? ( app-misc/lirc ) |
98 |
vorbis? ( media-libs/libvorbis ) |
99 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
100 |
>=sys-libs/libavc1394-0.5.0 |
101 |
>=media-libs/libiec61883-1.0.0 ) |
102 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 ) |
103 |
autostart? ( net-dialup/mingetty |
104 |
x11-wm/evilwm |
105 |
x11-apps/xset )" |
106 |
|
107 |
DEPEND="${RDEPEND} |
108 |
x11-proto/xineramaproto |
109 |
x11-proto/xf86vidmodeproto |
110 |
x11-apps/xinit" |
111 |
|
112 |
PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*" |
113 |
|
114 |
S="${WORKDIR}/${PN}-${MY_PV}" |
115 |
|
116 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
117 |
|
118 |
pkg_setup() { |
119 |
|
120 |
local rip=0 |
121 |
if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then |
122 |
echo |
123 |
eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled." |
124 |
eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set." |
125 |
echo |
126 |
rip=1 |
127 |
fi |
128 |
|
129 |
if use xvmc && use video_cards_nvidia; then |
130 |
echo |
131 |
ewarn "You enabled the 'xvmc' USE flag, you must have a GeForce 4 or" |
132 |
ewarn "greater to use this. Otherwise, you'll have crashes with MythTV" |
133 |
echo |
134 |
fi |
135 |
|
136 |
if use xvmc && ! ( use video_cards_i810 || use video_cards_nvidia || use video_cards_via ); then |
137 |
echo |
138 |
eerror "You enabled the XvMC USE flag but did not configure VIDEO_CARDS with either" |
139 |
eerror "an nVidia, Intel i810, or VIA video card." |
140 |
echo |
141 |
rip=1 |
142 |
fi |
143 |
|
144 |
if use autostart && use backendonly; then |
145 |
echo |
146 |
eerror "You can't have USE=autostart while having USE=backendonly." |
147 |
eerror "USE=autostart is for mythfrontend" |
148 |
echo |
149 |
rip=1 |
150 |
fi |
151 |
|
152 |
[[ $rip == 1 ]] && die "Please fix the above issues, before continuing." |
153 |
|
154 |
echo |
155 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
156 |
einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped" |
157 |
einfo "Only additional CFLAG issues that will be addressed are for binary" |
158 |
einfo "package building." |
159 |
echo |
160 |
} |
161 |
|
162 |
src_unpack() { |
163 |
subversion_src_unpack |
164 |
|
165 |
# As needed fix since they don't know how to write qmake let alone a real |
166 |
# make system |
167 |
epatch "${FILESDIR}"/${PN}-0.20-as-needed.patch |
168 |
|
169 |
# upstream wants the revision number in their version.cpp |
170 |
# since the subversion.eclass strips out the .svn directory |
171 |
# svnversion in MythTV's build doesn't work |
172 |
sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${SVNREV}:" \ |
173 |
-i "${S}"/version.pro || die "svnversion sed failed" |
174 |
} |
175 |
|
176 |
src_compile() { |
177 |
local myconf="--prefix=/usr |
178 |
--mandir=/usr/share/man |
179 |
--libdir-name=$(get_libdir)" |
180 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
181 |
use jack || myconf="${myconf} --disable-audio-jack" |
182 |
use dts || myconf="${myconf} --disable-dts" |
183 |
use freebox || myconf="${myconf} --disable-freebox" |
184 |
use dbox2 || myconf="${myconf} --disable-dbox2" |
185 |
use hdhomerun || myconf="${myconf} --disable-hdhomerun" |
186 |
use crciprec || myconf="${myconf} --disable-crciprec" |
187 |
use altivec || myconf="${myconf} --disable-altivec" |
188 |
use xvmc && myconf="${myconf} --enable-xvmc" |
189 |
use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc-pro" |
190 |
use perl && myconf="${myconf} --with-bindings=perl" |
191 |
myconf="${myconf} |
192 |
--disable-audio-arts |
193 |
$(use_enable lirc) |
194 |
$(use_enable joystick joystick-menu) |
195 |
$(use_enable dvb) |
196 |
--dvb-path=/usr/include |
197 |
$(use_enable opengl opengl-vsync) |
198 |
$(use_enable ieee1394 firewire) |
199 |
--enable-xrandr |
200 |
--enable-xv |
201 |
--disable-directfb |
202 |
--enable-x11 |
203 |
--enable-proc-opt" |
204 |
|
205 |
if use mmx || use amd64; then |
206 |
myconf="${myconf} --enable-mmx" |
207 |
else |
208 |
myconf="${myconf} --disable-mmx" |
209 |
fi |
210 |
|
211 |
if use debug; then |
212 |
myconf="${myconf} --compile-type=debug" |
213 |
else |
214 |
myconf="${myconf} --compile-type=release" |
215 |
fi |
216 |
|
217 |
## CFLAG cleaning so it compiles |
218 |
MARCH=$(get-flag "march") |
219 |
MTUNE=$(get-flag "mtune") |
220 |
MCPU=$(get-flag "mcpu") |
221 |
strip-flags |
222 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
223 |
filter-flags "-O" "-O?" |
224 |
|
225 |
if [[ -n "${MARCH}" ]]; then |
226 |
myconf="${myconf} --arch=${MARCH}" |
227 |
fi |
228 |
if [[ -n "${MTUNE}" ]]; then |
229 |
myconf="${myconf} --tune=${MTUNE}" |
230 |
fi |
231 |
if [[ -n "${MCPU}" ]]; then |
232 |
myconf="${myconf} --cpu=${MCPU}" |
233 |
fi |
234 |
|
235 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
236 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
237 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
238 |
|
239 |
if use frontendonly; then |
240 |
##Backend Removal |
241 |
ewarn |
242 |
ewarn "You are using the experimental feature for only installing the frontend." |
243 |
ewarn "You will not get Gentoo support nor support from MythTV upstream for this." |
244 |
ewarn "If this breaks, you own both pieces." |
245 |
ewarn |
246 |
myconf="${myconf} --disable-backend" |
247 |
fi |
248 |
|
249 |
if use backendonly; then |
250 |
##Frontend Removal |
251 |
ewarn |
252 |
ewarn "You are using the experimental feature for only installing the backend." |
253 |
ewarn "You will not get Gentoo support nor support from MythTV upstream for this." |
254 |
ewarn "If this breaks, you own both pieces." |
255 |
ewarn |
256 |
myconf="${myconf} --disable-frontend" |
257 |
fi |
258 |
|
259 |
# let MythTV come up with our CFLAGS. Upstream will support this |
260 |
CFLAGS="" |
261 |
CXXFLAGS="" |
262 |
einfo "Running ./configure ${myconf}" |
263 |
./configure ${myconf} || die "configure died" |
264 |
|
265 |
${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die "qmake failed" |
266 |
emake || die "emake failed" |
267 |
|
268 |
# firewire support should build the tester |
269 |
if use ieee1394; then |
270 |
cd contrib |
271 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \ |
272 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
273 |
die "failed to compile firewire_tester" |
274 |
|
275 |
cd channel_changers |
276 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \ |
277 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
278 |
die "failed to compile 6200ch" |
279 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \ |
280 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
281 |
die "failed to compile sa3250ch" |
282 |
# LDLIBS="-liec61883 -lraw1394" CC=$(tc-getCC) emake firewire_tester || \ |
283 |
# die "failed to compile firewire_tester" |
284 |
fi |
285 |
|
286 |
cd ${S}/contrib/channel_changers |
287 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \ |
288 |
die "failed to compile red_eye" |
289 |
} |
290 |
|
291 |
src_install() { |
292 |
|
293 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
294 |
for doc in AUTHORS FAQ UPGRADING ChangeLog README; do |
295 |
test -e "${doc}" && dodoc ${doc} |
296 |
done |
297 |
|
298 |
if ! use frontendonly; then |
299 |
insinto /usr/share/mythtv/database |
300 |
doins database/* |
301 |
|
302 |
exeinto /usr/share/mythtv |
303 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
304 |
|
305 |
newinitd ${FILESDIR}/mythbackend-0.18.2.rc mythbackend |
306 |
newconfd ${FILESDIR}/mythbackend-0.18.2.conf mythbackend |
307 |
fi |
308 |
|
309 |
dodoc keys.txt docs/*.{txt,pdf} |
310 |
dohtml docs/*.html |
311 |
|
312 |
keepdir /etc/mythtv |
313 |
chown -R mythtv "${D}"/etc/mythtv |
314 |
keepdir /var/log/mythtv |
315 |
chown -R mythtv "${D}"/var/log/mythtv |
316 |
|
317 |
insinto /etc/logrotate.d |
318 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
319 |
|
320 |
insinto /usr/share/mythtv/contrib |
321 |
doins -r contrib/* |
322 |
|
323 |
insinto /usr/share/mythtv/configfiles |
324 |
doins configfiles/* |
325 |
|
326 |
if ! use backendonly; then |
327 |
dobin "${FILESDIR}"/runmythfe |
328 |
|
329 |
if use autostart; then |
330 |
dodir /etc/env.d/ |
331 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > ${D}/etc/env.d/95mythtv |
332 |
|
333 |
insinto /home/mythtv |
334 |
newins "${FILESDIR}"/bash_profile .bash_profile |
335 |
newins "${FILESDIR}"/xinitrc .xinitrc |
336 |
fi |
337 |
fi |
338 |
|
339 |
if use ieee1394; then |
340 |
dobin firewire_tester || die "failed to install firewire_tester" |
341 |
dodoc contrib/firewire_tester-README |
342 |
|
343 |
dobin 6200ch || die "failed to install 6200ch" |
344 |
dodoc contrib/channel_changers/6200ch-README |
345 |
|
346 |
dobin sa3250ch || die "failed to install sa3250ch" |
347 |
dodoc contrib/channel_changers/sa3250ch-README |
348 |
fi |
349 |
|
350 |
dobin red_eye || die "failed to install red_eye" |
351 |
dodoc contrib/channel_changers/red_eye-README |
352 |
|
353 |
if use directv; then |
354 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
355 |
dodoc contrib/channel_changers/d10control-README |
356 |
fi |
357 |
} |
358 |
|
359 |
pkg_preinst() { |
360 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user" |
361 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
362 |
|
363 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
364 |
} |
365 |
|
366 |
pkg_postinst() { |
367 |
if ! use backendonly; then |
368 |
echo |
369 |
elog "Want mythfrontend to start automatically?" |
370 |
elog "Set USE=autostart. Details can be found at:" |
371 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
372 |
fi |
373 |
|
374 |
if ! use frontendonly; then |
375 |
elog |
376 |
elog "To always have MythBackend running and available run the following:" |
377 |
elog "rc-update add mythbackend default" |
378 |
elog |
379 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
380 |
ewarn "chown -R mythtv /path/to/store" |
381 |
fi |
382 |
|
383 |
if use autostart; then |
384 |
elog |
385 |
elog "Please add the following to your /etc/inittab file at the end of" |
386 |
elog "the TERMINALS section" |
387 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
388 |
fi |
389 |
|
390 |
} |
391 |
|
392 |
pkg_info() { |
393 |
/usr/bin/mythfrontend --version |
394 |
} |
395 |
|
396 |
pkg_config() { |
397 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
398 |
echo "already exist. You will be prompted for your MySQL root password." |
399 |
/usr/bin/mysql -u root -p < /usr/share/mythtv/database/mc.sql |
400 |
} |
401 |
|
402 |
|
403 |
|
404 |
1.1 media-tv/mythtv/mythtv-0.21_pre14480.ebuild |
405 |
|
406 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_pre14480.ebuild?rev=1.1&view=markup |
407 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_pre14480.ebuild?rev=1.1&content-type=text/plain |
408 |
|
409 |
Index: mythtv-0.21_pre14480.ebuild |
410 |
=================================================================== |
411 |
# Copyright 1999-2007 Gentoo Foundation |
412 |
# Distributed under the terms of the GNU General Public License v2 |
413 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_pre14480.ebuild,v 1.1 2007/09/11 14:28:01 cardoe Exp $ |
414 |
|
415 |
inherit flag-o-matic multilib eutils qt3 mythtv subversion toolchain-funcs |
416 |
|
417 |
DESCRIPTION="Homebrew PVR project" |
418 |
SLOT="0" |
419 |
KEYWORDS="~amd64 ~ppc ~x86" |
420 |
|
421 |
IUSE_VIDEO_CARDS="video_cards_i810 video_cards_nvidia video_cards_via" |
422 |
|
423 |
IUSE="alsa altivec autostart dbox2 debug directv dts dvb dvd hdhomerun ieee1394 iptv ivtv jack joystick lcd lirc mmx vorbis opengl perl xvmc ${IUSE_VIDEO_CARDS}" |
424 |
|
425 |
RDEPEND=">=media-libs/freetype-2.0 |
426 |
>=media-sound/lame-3.93.1 |
427 |
x11-libs/libX11 |
428 |
x11-libs/libXext |
429 |
x11-libs/libXinerama |
430 |
x11-libs/libXv |
431 |
x11-libs/libXrandr |
432 |
x11-libs/libXxf86vm |
433 |
xvmc? ( |
434 |
x11-libs/libXvMC |
435 |
video_cards_nvidia? ( x11-drivers/nvidia-drivers ) |
436 |
video_cards_via? ( x11-drivers/xf86-video-via ) |
437 |
video_cards_i810? ( x11-drivers/xf86-video-i810 ) |
438 |
) |
439 |
$(qt_min_version 3.3) |
440 |
virtual/mysql |
441 |
virtual/opengl |
442 |
virtual/glu |
443 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
444 |
dts? ( media-libs/libdts ) |
445 |
dvd? ( media-libs/libdvdnav |
446 |
media-libs/libdts ) |
447 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
448 |
directv? ( virtual/perl-Time-HiRes ) |
449 |
ivtv? ( media-tv/ivtv ) |
450 |
jack? ( media-sound/jack-audio-connection-kit ) |
451 |
lcd? ( app-misc/lcdproc ) |
452 |
lirc? ( app-misc/lirc ) |
453 |
vorbis? ( media-libs/libvorbis ) |
454 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
455 |
>=sys-libs/libavc1394-0.5.0 |
456 |
>=media-libs/libiec61883-1.0.0 ) |
457 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 ) |
458 |
autostart? ( net-dialup/mingetty |
459 |
x11-wm/evilwm |
460 |
x11-apps/xset )" |
461 |
|
462 |
DEPEND="${RDEPEND} |
463 |
x11-proto/xineramaproto |
464 |
x11-proto/xf86vidmodeproto |
465 |
x11-apps/xinit" |
466 |
|
467 |
PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*" |
468 |
|
469 |
S="${WORKDIR}/${PN}-${MY_PV}" |
470 |
|
471 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
472 |
|
473 |
pkg_setup() { |
474 |
|
475 |
local rip=0 |
476 |
if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then |
477 |
echo |
478 |
eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled." |
479 |
eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set." |
480 |
echo |
481 |
rip=1 |
482 |
fi |
483 |
|
484 |
if use xvmc && use video_cards_nvidia; then |
485 |
echo |
486 |
ewarn "You enabled the 'xvmc' USE flag, you must have a GeForce 4 or" |
487 |
ewarn "greater to use this. Otherwise, you'll have crashes with MythTV" |
488 |
echo |
489 |
fi |
490 |
|
491 |
if use xvmc && ! ( use video_cards_i810 || use video_cards_nvidia || use video_cards_via ); then |
492 |
echo |
493 |
eerror "You enabled the XvMC USE flag but did not configure VIDEO_CARDS with either" |
494 |
eerror "an nVidia, Intel i810, or VIA video card." |
495 |
echo |
496 |
rip=1 |
497 |
fi |
498 |
|
499 |
[[ $rip == 1 ]] && die "Please fix the above issues, before continuing." |
500 |
|
501 |
echo |
502 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
503 |
einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped" |
504 |
einfo "Only additional CFLAG issues that will be addressed are for binary" |
505 |
einfo "package building." |
506 |
echo |
507 |
} |
508 |
|
509 |
src_unpack() { |
510 |
subversion_src_unpack |
511 |
|
512 |
# As needed fix since they don't know how to write qmake let alone a real |
513 |
# make system. And they won't accept this upstream since it comes from |
514 |
# Gentoo |
515 |
#epatch "${FILESDIR}"/${PN}-0.20-as-needed.patch |
516 |
|
517 |
# upstream wants the revision number in their version.cpp |
518 |
# since the subversion.eclass strips out the .svn directory |
519 |
# svnversion in MythTV's build doesn't work |
520 |
sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${SVNREV}:" \ |
521 |
-i "${S}"/version.pro || die "svnversion sed failed" |
522 |
} |
523 |
|
524 |
src_compile() { |
525 |
local myconf="--prefix=/usr |
526 |
--mandir=/usr/share/man |
527 |
--libdir-name=$(get_libdir)" |
528 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
529 |
use jack || myconf="${myconf} --disable-audio-jack" |
530 |
use dts && myconf="${myconf} --enable-libdts" |
531 |
use dbox2 || myconf="${myconf} --disable-dbox2" |
532 |
use hdhomerun || myconf="${myconf} --disable-hdhomerun" |
533 |
use altivec || myconf="${myconf} --disable-altivec" |
534 |
use xvmc && myconf="${myconf} --enable-xvmc" |
535 |
use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc-pro" |
536 |
use xvmc && ! use video_cards_nvidia && myconf="${myconf} --disable-xvmc-opengl" |
537 |
use perl && myconf="${myconf} --with-bindings=perl" |
538 |
myconf="${myconf} |
539 |
--disable-audio-arts |
540 |
$(use_enable lirc) |
541 |
$(use_enable joystick joystick-menu) |
542 |
$(use_enable dvb) |
543 |
--dvb-path=/usr/include |
544 |
$(use_enable opengl opengl-vsync) |
545 |
$(use_enable ieee1394 firewire) |
546 |
$(use_enable iptv) |
547 |
--enable-xrandr |
548 |
--enable-xv |
549 |
--disable-directfb |
550 |
--enable-x11 |
551 |
--enable-proc-opt" |
552 |
|
553 |
if use mmx || use amd64; then |
554 |
myconf="${myconf} --enable-mmx" |
555 |
else |
556 |
myconf="${myconf} --disable-mmx" |
557 |
fi |
558 |
|
559 |
if use debug; then |
560 |
myconf="${myconf} --compile-type=debug" |
561 |
else |
562 |
myconf="${myconf} --compile-type=release" |
563 |
fi |
564 |
|
565 |
## CFLAG cleaning so it compiles |
566 |
MARCH=$(get-flag "march") |
567 |
MTUNE=$(get-flag "mtune") |
568 |
MCPU=$(get-flag "mcpu") |
569 |
strip-flags |
570 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
571 |
filter-flags "-O" "-O?" |
572 |
|
573 |
if [[ -n "${MARCH}" ]]; then |
574 |
myconf="${myconf} --arch=${MARCH}" |
575 |
fi |
576 |
if [[ -n "${MTUNE}" ]]; then |
577 |
myconf="${myconf} --tune=${MTUNE}" |
578 |
fi |
579 |
if [[ -n "${MCPU}" ]]; then |
580 |
myconf="${myconf} --cpu=${MCPU}" |
581 |
fi |
582 |
|
583 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
584 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
585 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
586 |
|
587 |
# let MythTV come up with our CFLAGS. Upstream will support this |
588 |
CFLAGS="" |
589 |
CXXFLAGS="" |
590 |
einfo "Running ./configure ${myconf}" |
591 |
./configure ${myconf} || die "configure died" |
592 |
|
593 |
${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die "qmake failed" |
594 |
emake || die "emake failed" |
595 |
|
596 |
# firewire support should build the tester |
597 |
if use ieee1394; then |
598 |
cd contrib |
599 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \ |
600 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
601 |
die "failed to compile firewire_tester" |
602 |
|
603 |
cd channel_changers |
604 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \ |
605 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
606 |
die "failed to compile 6200ch" |
607 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \ |
608 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
609 |
die "failed to compile sa3250ch" |
610 |
# LDLIBS="-liec61883 -lraw1394" CC=$(tc-getCC) emake firewire_tester || \ |
611 |
# die "failed to compile firewire_tester" |
612 |
fi |
613 |
|
614 |
cd ${S}/contrib/channel_changers |
615 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \ |
616 |
die "failed to compile red_eye" |
617 |
} |
618 |
|
619 |
src_install() { |
620 |
|
621 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
622 |
for doc in AUTHORS FAQ UPGRADING ChangeLog README; do |
623 |
test -e "${doc}" && dodoc ${doc} |
624 |
done |
625 |
|
626 |
insinto /usr/share/mythtv/database |
627 |
doins database/* |
628 |
|
629 |
exeinto /usr/share/mythtv |
630 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
631 |
|
632 |
newinitd ${FILESDIR}/mythbackend-0.18.2.rc mythbackend |
633 |
newconfd ${FILESDIR}/mythbackend-0.18.2.conf mythbackend |
634 |
|
635 |
dodoc keys.txt docs/*.{txt,pdf} |
636 |
dohtml docs/*.html |
637 |
|
638 |
keepdir /etc/mythtv |
639 |
chown -R mythtv "${D}"/etc/mythtv |
640 |
keepdir /var/log/mythtv |
641 |
chown -R mythtv "${D}"/var/log/mythtv |
642 |
|
643 |
insinto /etc/logrotate.d |
644 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
645 |
|
646 |
insinto /usr/share/mythtv/contrib |
647 |
doins -r contrib/* |
648 |
|
649 |
insinto /usr/share/mythtv/configfiles |
650 |
doins configfiles/* |
651 |
|
652 |
dobin "${FILESDIR}"/runmythfe |
653 |
|
654 |
if use autostart; then |
655 |
dodir /etc/env.d/ |
656 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > ${D}/etc/env.d/95mythtv |
657 |
|
658 |
insinto /home/mythtv |
659 |
newins "${FILESDIR}"/bash_profile .bash_profile |
660 |
newins "${FILESDIR}"/xinitrc .xinitrc |
661 |
fi |
662 |
|
663 |
if use ieee1394; then |
664 |
dobin firewire_tester || die "failed to install firewire_tester" |
665 |
dodoc contrib/firewire_tester-README |
666 |
|
667 |
dobin 6200ch || die "failed to install 6200ch" |
668 |
dodoc contrib/channel_changers/6200ch-README |
669 |
|
670 |
dobin sa3250ch || die "failed to install sa3250ch" |
671 |
dodoc contrib/channel_changers/sa3250ch-README |
672 |
fi |
673 |
|
674 |
dobin red_eye || die "failed to install red_eye" |
675 |
dodoc contrib/channel_changers/red_eye-README |
676 |
|
677 |
if use directv; then |
678 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
679 |
dodoc contrib/channel_changers/d10control-README |
680 |
fi |
681 |
} |
682 |
|
683 |
pkg_preinst() { |
684 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user" |
685 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
686 |
|
687 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
688 |
} |
689 |
|
690 |
pkg_postinst() { |
691 |
echo |
692 |
elog "Want mythfrontend to start automatically?" |
693 |
elog "Set USE=autostart. Details can be found at:" |
694 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
695 |
|
696 |
echo |
697 |
elog "To always have MythBackend running and available run the following:" |
698 |
elog "rc-update add mythbackend default" |
699 |
echo |
700 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
701 |
ewarn "chown -R mythtv /path/to/store" |
702 |
|
703 |
if use autostart; then |
704 |
echo |
705 |
elog "Please add the following to your /etc/inittab file at the end of" |
706 |
elog "the TERMINALS section" |
707 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
708 |
fi |
709 |
|
710 |
} |
711 |
|
712 |
pkg_info() { |
713 |
/usr/bin/mythfrontend --version |
714 |
} |
715 |
|
716 |
pkg_config() { |
717 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
718 |
echo "already exist. You will be prompted for your MySQL root password." |
719 |
/usr/bin/mysql -u root -p < /usr/share/mythtv/database/mc.sql |
720 |
} |
721 |
|
722 |
|
723 |
|
724 |
-- |
725 |
gentoo-commits@g.o mailing list |