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