1 |
cardoe 08/06/02 15:53:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mythtv-0.21_p17435.ebuild |
5 |
Log: |
6 |
upstream revision bump. Remove OpenGL XvMC and OpenGL video support after discussions with upstream and how other distros are packaging MythTV. Support for those features is known to be an issue. Most users don't want it anyway since they have worse performance unless you've got a specific Quatro card. Additionally, we're always using XvMCW and requiring users to configure their XvMC provider via eselect-xvmc, based on patch from Rick Harris <rickfharris@×××××××××.au> on bug #220857 |
7 |
(Portage version: 2.1.5.3) |
8 |
|
9 |
Revision Changes Path |
10 |
1.240 media-tv/mythtv/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.240&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.240&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.239&r2=1.240 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
19 |
retrieving revision 1.239 |
20 |
retrieving revision 1.240 |
21 |
diff -u -r1.239 -r1.240 |
22 |
--- ChangeLog 29 May 2008 17:26:10 -0000 1.239 |
23 |
+++ ChangeLog 2 Jun 2008 15:53:58 -0000 1.240 |
24 |
@@ -1,6 +1,18 @@ |
25 |
# ChangeLog for media-tv/mythtv |
26 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.239 2008/05/29 17:26:10 hawking Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.240 2008/06/02 15:53:58 cardoe Exp $ |
29 |
+ |
30 |
+*mythtv-0.21_p17435 (02 Jun 2008) |
31 |
+ |
32 |
+ 02 Jun 2008; Doug Goldstein <cardoe@g.o> |
33 |
+ +mythtv-0.21_p17435.ebuild: |
34 |
+ upstream revision bump. Remove OpenGL XvMC and OpenGL video support after |
35 |
+ discussions with upstream and how other distros are packaging MythTV. |
36 |
+ Support for those features is known to be an issue. Most users don't want |
37 |
+ it anyway since they have worse performance unless you've got a specific |
38 |
+ Quatro card. Additionally, we're always using XvMCW and requiring users to |
39 |
+ configure their XvMC provider via eselect-xvmc, based on patch from Rick |
40 |
+ Harris <rickfharris@×××××××××.au> on bug #220857 |
41 |
|
42 |
29 May 2008; Ali Polatel <hawking@g.o> mythtv-0.21_p16867.ebuild, |
43 |
mythtv-0.21_p16926.ebuild, mythtv-0.21_p16944.ebuild, |
44 |
|
45 |
|
46 |
|
47 |
1.1 media-tv/mythtv/mythtv-0.21_p17435.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p17435.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p17435.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: mythtv-0.21_p17435.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2008 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_p17435.ebuild,v 1.1 2008/06/02 15:53:58 cardoe Exp $ |
57 |
|
58 |
EAPI=1 |
59 |
inherit flag-o-matic multilib eutils qt3 mythtv toolchain-funcs python confutils |
60 |
|
61 |
DESCRIPTION="Homebrew PVR project" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~ppc ~x86" |
64 |
|
65 |
IUSE_VIDEO_CARDS="video_cards_nvidia" |
66 |
IUSE="aac alsa altivec autostart debug directv dvb dvd fftw ieee1394 jack lcd \ |
67 |
lirc mmx opengl perl python x264 xvid xvmc ${IUSE_VIDEO_CARDS}" |
68 |
|
69 |
RDEPEND=">=media-libs/freetype-2.0 |
70 |
>=media-sound/lame-3.93.1 |
71 |
x11-libs/libX11 |
72 |
x11-libs/libXext |
73 |
x11-libs/libXinerama |
74 |
x11-libs/libXv |
75 |
x11-libs/libXrandr |
76 |
x11-libs/libXxf86vm |
77 |
>=x11-libs/qt-3.3:3 |
78 |
virtual/mysql |
79 |
virtual/opengl |
80 |
virtual/glu |
81 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 ) |
82 |
aac? ( media-libs/faac |
83 |
media-libs/faad2 ) |
84 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
85 |
autostart? ( net-dialup/mingetty |
86 |
x11-wm/evilwm |
87 |
x11-apps/xset ) |
88 |
directv? ( virtual/perl-Time-HiRes ) |
89 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
90 |
dvd? ( media-libs/libdvdnav ) |
91 |
fftw? ( sci-libs/fftw:3.0 ) |
92 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
93 |
>=sys-libs/libavc1394-0.5.3 |
94 |
>=media-libs/libiec61883-1.0.0 ) |
95 |
jack? ( media-sound/jack-audio-connection-kit ) |
96 |
lcd? ( app-misc/lcdproc ) |
97 |
lirc? ( app-misc/lirc ) |
98 |
perl? ( dev-perl/DBD-mysql ) |
99 |
python? ( dev-python/mysql-python ) |
100 |
x264? ( media-libs/x264 ) |
101 |
xvid? ( media-libs/xvid ) |
102 |
xvmc? ( x11-libs/libXvMC |
103 |
app-admin/eselect-xvmc )" |
104 |
|
105 |
DEPEND="${RDEPEND} |
106 |
x11-proto/xineramaproto |
107 |
x11-proto/xf86vidmodeproto |
108 |
x11-apps/xinit" |
109 |
|
110 |
PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*" |
111 |
|
112 |
S="${WORKDIR}/${PN}-${MY_PV}" |
113 |
|
114 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
115 |
|
116 |
pkg_setup() { |
117 |
|
118 |
confutils_require_built_with_all =x11-libs/qt-3 mysql opengl |
119 |
|
120 |
elog "This ebuild now uses a heavily stripped down version of your CFLAGS" |
121 |
|
122 |
if use xvmc && use video_cards_nvidia; then |
123 |
elog |
124 |
elog "For NVIDIA based cards, the XvMC renderer only works on" |
125 |
elog "the NVIDIA 4, 5, 6 & 7 series cards." |
126 |
fi |
127 |
|
128 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} \ |
129 |
|| die "Problem adding mythtv user" |
130 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
131 |
} |
132 |
|
133 |
src_unpack() { |
134 |
subversion_src_unpack |
135 |
|
136 |
# upstream wants the revision number in their version.cpp |
137 |
# since the subversion.eclass strips out the .svn directory |
138 |
# svnversion in MythTV's build doesn't work |
139 |
sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \ |
140 |
-i "${S}"/version.pro || die "svnversion sed failed" |
141 |
|
142 |
# Perl bits need to go into vender_perl and not site_perl |
143 |
sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
144 |
-i "${S}"/bindings/perl/perl.pro |
145 |
} |
146 |
|
147 |
src_compile() { |
148 |
local myconf="--prefix=/usr |
149 |
--mandir=/usr/share/man |
150 |
--libdir-name=$(get_libdir)" |
151 |
use aac && myconf="${myconf} --enable-libfaad --enable-libfaac" |
152 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
153 |
use altivec || myconf="${myconf} --disable-altivec" |
154 |
use fftw && myconf="${myconf} --enable-libfftw3" |
155 |
use jack || myconf="${myconf} --disable-audio-jack" |
156 |
use x264 && myconf="${myconf} --enable-libx264" |
157 |
use xvid && myconf="${myconf} --enable-libxvid" |
158 |
# let's give this a whirl from bug #220857 |
159 |
use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw \ |
160 |
--disable-xvmc-vld" |
161 |
#use xvmc && ! use video_cards_via && \ |
162 |
# myconf="${myconf} --enable-xvmc" |
163 |
#use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc \ |
164 |
# --enable-xvmc-pro --disable-xvmcw" |
165 |
# nvidia-drivers-71 don't support GLX 1.4 |
166 |
#use video_cards_nvidia && has_version =x11-drivers/nvidia-drivers-71* \ |
167 |
# && myconf="${myconf} --enable-glx-procaddrarb" |
168 |
# according to the Ubuntu guys, this works better always on |
169 |
myconf="${myconf} --enable-glx-procaddrarb" |
170 |
|
171 |
myconf="${myconf} |
172 |
$(use_enable dvb) |
173 |
$(use_enable ieee1394 firewire) |
174 |
(use_enable lirc) |
175 |
--disable-audio-arts |
176 |
--disable-directfb |
177 |
--dvb-path=/usr/include |
178 |
--enable-opengl-vsync |
179 |
--enable-libmp3lame |
180 |
--enable-xrandr |
181 |
--enable-xv |
182 |
--enable-x11" |
183 |
|
184 |
if use mmx || use amd64; then |
185 |
myconf="${myconf} --enable-mmx" |
186 |
else |
187 |
myconf="${myconf} --disable-mmx" |
188 |
fi |
189 |
|
190 |
if use perl && use python; then |
191 |
myconf="${myconf} --with-bindings=perl,python" |
192 |
elif use perl; then |
193 |
myconf="${myconf} --with-bindings=perl" |
194 |
elif use python; then |
195 |
myconf="${myconf} --with-bindings=python" |
196 |
else |
197 |
myconf="${myconf} --without-bindings=perl,python" |
198 |
fi |
199 |
|
200 |
if use debug; then |
201 |
myconf="${myconf} --compile-type=debug" |
202 |
else |
203 |
myconf="${myconf} --compile-type=profile" |
204 |
fi |
205 |
|
206 |
## CFLAG cleaning so it compiles |
207 |
MARCH=$(get-flag "march") |
208 |
MTUNE=$(get-flag "mtune") |
209 |
strip-flags |
210 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
211 |
filter-flags "-O" "-O?" |
212 |
|
213 |
if [[ -n "${MARCH}" ]]; then |
214 |
myconf="${myconf} --cpu=${MARCH}" |
215 |
fi |
216 |
if [[ -n "${MTUNE}" ]]; then |
217 |
myconf="${myconf} --tune=${MTUNE}" |
218 |
fi |
219 |
|
220 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
221 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
222 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
223 |
|
224 |
# let MythTV come up with our CFLAGS. Upstream will support this |
225 |
CFLAGS="" |
226 |
CXXFLAGS="" |
227 |
einfo "Running ./configure ${myconf}" |
228 |
./configure ${myconf} || die "configure died" |
229 |
|
230 |
eqmake3 mythtv.pro -o "Makefile" || die "eqmake3 failed" |
231 |
emake || die "emake failed" |
232 |
|
233 |
# firewire support should build the tester |
234 |
if use ieee1394; then |
235 |
cd contrib |
236 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \ |
237 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
238 |
die "failed to compile firewire_tester" |
239 |
|
240 |
cd channel_changers |
241 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \ |
242 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
243 |
die "failed to compile 6200ch" |
244 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \ |
245 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
246 |
die "failed to compile sa3250ch" |
247 |
fi |
248 |
|
249 |
cd "${S}"/contrib/channel_changers |
250 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \ |
251 |
die "failed to compile red_eye" |
252 |
} |
253 |
|
254 |
src_install() { |
255 |
|
256 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
257 |
dodoc AUTHORS FAQ UPGRADING README |
258 |
|
259 |
insinto /usr/share/mythtv/database |
260 |
doins database/* |
261 |
|
262 |
exeinto /usr/share/mythtv |
263 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
264 |
|
265 |
newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend |
266 |
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend |
267 |
|
268 |
dodoc keys.txt docs/*.{txt,pdf} |
269 |
dohtml docs/*.html |
270 |
|
271 |
keepdir /etc/mythtv |
272 |
chown -R mythtv "${D}"/etc/mythtv |
273 |
keepdir /var/log/mythtv |
274 |
chown -R mythtv "${D}"/var/log/mythtv |
275 |
|
276 |
insinto /etc/logrotate.d |
277 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
278 |
|
279 |
insinto /usr/share/mythtv/contrib |
280 |
doins -r contrib/* |
281 |
|
282 |
dobin "${FILESDIR}"/runmythfe |
283 |
|
284 |
if use autostart; then |
285 |
dodir /etc/env.d/ |
286 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv |
287 |
|
288 |
insinto /home/mythtv |
289 |
newins "${FILESDIR}"/bash_profile .bash_profile |
290 |
newins "${FILESDIR}"/xinitrc .xinitrc |
291 |
fi |
292 |
|
293 |
if use ieee1394; then |
294 |
dobin firewire_tester || die "failed to install firewire_tester" |
295 |
dodoc contrib/firewire_tester-README |
296 |
|
297 |
dobin 6200ch || die "failed to install 6200ch" |
298 |
dodoc contrib/channel_changers/6200ch-README |
299 |
|
300 |
dobin sa3250ch || die "failed to install sa3250ch" |
301 |
dodoc contrib/channel_changers/sa3250ch-README |
302 |
fi |
303 |
|
304 |
dobin red_eye || die "failed to install red_eye" |
305 |
dodoc contrib/channel_changers/red_eye-README |
306 |
|
307 |
if use directv; then |
308 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
309 |
dodoc contrib/channel_changers/d10control-README |
310 |
fi |
311 |
} |
312 |
|
313 |
pkg_preinst() { |
314 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
315 |
} |
316 |
|
317 |
pkg_postinst() { |
318 |
python_version |
319 |
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/MythTV |
320 |
|
321 |
echo |
322 |
elog "Want mythfrontend to start automatically?" |
323 |
elog "Set USE=autostart. Details can be found at:" |
324 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
325 |
|
326 |
elog |
327 |
elog "To always have MythBackend running and available run the following:" |
328 |
elog "rc-update add mythbackend default" |
329 |
elog |
330 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
331 |
ewarn "chown -R mythtv /path/to/store" |
332 |
|
333 |
if use xvmc && [ ! -f /etc/X11/XvMCConfig ] || \ |
334 |
[ -z `cat /etc/X11/XvMCConfig` ]; then |
335 |
ewarn |
336 |
ewarn "No XvMC implementation has been selected yet" |
337 |
ewarn "Use 'eselect xvmc list' for a list of available choices" |
338 |
ewarn "Then use 'eselect xvmc set <choice>' to choose" |
339 |
ewarn "'eselect xvmc set nvidia' for example" |
340 |
fi |
341 |
|
342 |
if use autostart; then |
343 |
elog |
344 |
elog "Please add the following to your /etc/inittab file at the end of" |
345 |
elog "the TERMINALS section" |
346 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
347 |
fi |
348 |
|
349 |
} |
350 |
|
351 |
pkg_postrm() |
352 |
{ |
353 |
python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/MythTV |
354 |
} |
355 |
|
356 |
pkg_info() { |
357 |
"${ROOT}"/usr/bin/mythfrontend --version |
358 |
} |
359 |
|
360 |
pkg_config() { |
361 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
362 |
echo "already exist. You will be prompted for your MySQL root password." |
363 |
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql |
364 |
} |
365 |
|
366 |
|
367 |
|
368 |
-- |
369 |
gentoo-commits@l.g.o mailing list |