Gentoo Archives: gentoo-commits

From: "Steve Dibb (beandog)" <beandog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mplayer: ChangeLog mplayer-1.0_rc2_p26300-r1.ebuild mplayer-1.0_rc2_p26300.ebuild
Date: Sun, 30 Mar 2008 14:50:03
Message-Id: E1Jfyr9-00052x-MD@stork.gentoo.org
1 beandog 08/03/30 14:49:59
2
3 Modified: ChangeLog
4 Added: mplayer-1.0_rc2_p26300-r1.ebuild
5 Removed: mplayer-1.0_rc2_p26300.ebuild
6 Log:
7 Build breaks on newer libdvdnav, add blocker to depend
8 (Portage version: 2.1.4.4)
9
10 Revision Changes Path
11 1.561 media-video/mplayer/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.561&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.561&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?r1=1.560&r2=1.561
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v
20 retrieving revision 1.560
21 retrieving revision 1.561
22 diff -u -r1.560 -r1.561
23 --- ChangeLog 29 Mar 2008 23:55:32 -0000 1.560
24 +++ ChangeLog 30 Mar 2008 14:49:59 -0000 1.561
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-video/mplayer
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.560 2008/03/29 23:55:32 beandog Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.561 2008/03/30 14:49:59 beandog Exp $
30 +
31 +*mplayer-1.0_rc2_p26300-r1 (30 Mar 2008)
32 +
33 + 30 Mar 2008; Steve Dibb <beandog@g.o>
34 + -mplayer-1.0_rc2_p26300.ebuild, +mplayer-1.0_rc2_p26300-r1.ebuild:
35 + Build breaks on newer libdvdnav, add blocker to depend
36
37 *mplayer-1.0_rc2_p26300 (29 Mar 2008)
38
39
40
41
42 1.1 media-video/mplayer/mplayer-1.0_rc2_p26300-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc2_p26300-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc2_p26300-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mplayer-1.0_rc2_p26300-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0_rc2_p26300-r1.ebuild,v 1.1 2008/03/30 14:49:59 beandog Exp $
52
53 EAPI="1"
54
55 inherit eutils flag-o-matic multilib
56
57 RESTRICT="strip"
58 IUSE="3dnow 3dnowext +a52 aac -aalib +alsa altivec amrnb amrwb -arts bidi bl
59 bindist -color-console cddb cdio cdparanoia cpudetection custom-cflags debug
60 dga doc dts dvb directfb +dvd dv enca encode esd -fbcon ftp -gif ggi gtk iconv
61 ipv6 jack joystick -jpeg kernel_linux ladspa -libcaca lirc live lzo +mad -md5sum
62 +mmx mmxext mp2 +mp3 musepack nas nemesi unicode +vorbis opengl openal oss -png
63 -pnm pulseaudio quicktime radio -rar real rtc -samba sdl speex srt sse sse2
64 ssse3 svga teletext tga +theora -tivo +truetype v4l v4l2 vidix win32codecs +X
65 x264 xanim xinerama +xscreensaver +xv xvid xvmc zoran"
66
67 VIDEO_CARDS="s3virge mga tdfx vesa"
68
69 for x in ${VIDEO_CARDS}; do
70 IUSE="${IUSE} video_cards_${x}"
71 done
72
73 BLUV="1.7"
74 SVGV="1.9.17"
75 AMR_URI="http://www.3gpp.org/ftp/Specs/archive"
76 SRC_URI="mirror://gentoo/${P}.tar.bz2
77 !truetype? ( mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
78 mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
79 mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 )
80 !iconv? ( mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
81 mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
82 mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 )
83 gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )
84 svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 )"
85
86 DESCRIPTION="Media Player for Linux"
87 HOMEPAGE="http://www.mplayerhq.hu/"
88
89 RDEPEND="sys-libs/ncurses
90 !bindist? (
91 x86? (
92 win32codecs? ( media-libs/win32codecs )
93 real? ( media-libs/win32codecs
94 media-video/realplayer )
95 )
96 amd64? ( real? ( media-libs/amd64codecs ) )
97 )
98 aalib? ( media-libs/aalib )
99 alsa? ( media-libs/alsa-lib )
100 amrnb? ( media-libs/amrnb )
101 amrwb? ( media-libs/amrwb )
102 arts? ( kde-base/arts )
103 openal? ( media-libs/openal )
104 bidi? ( dev-libs/fribidi )
105 cdio? ( dev-libs/libcdio )
106 cdparanoia? ( media-sound/cdparanoia )
107 directfb? ( dev-libs/DirectFB )
108 dga? ( x11-libs/libXxf86dga )
109 dts? ( media-libs/libdca )
110 dv? ( media-libs/libdv )
111 dvb? ( media-tv/linuxtv-dvb-headers )
112 encode? (
113 aac? ( media-libs/faac )
114 mp2? ( media-sound/twolame )
115 mp3? ( media-sound/lame )
116 x264? ( media-libs/x264-svn )
117 )
118 esd? ( media-sound/esound )
119 enca? ( app-i18n/enca )
120 gif? ( media-libs/giflib )
121 ggi? ( media-libs/libggi
122 media-libs/libggiwmh )
123 gtk? ( media-libs/libpng
124 x11-libs/libXxf86vm
125 x11-libs/libXext
126 x11-libs/libXi
127 =x11-libs/gtk+-2* )
128 jpeg? ( media-libs/jpeg )
129 ladspa? ( media-libs/ladspa-sdk )
130 libcaca? ( media-libs/libcaca )
131 lirc? ( app-misc/lirc )
132 lzo? ( >=dev-libs/lzo-2 )
133 mad? ( media-libs/libmad )
134 musepack? ( >=media-libs/libmpcdec-1.2.2 )
135 nas? ( media-libs/nas )
136 opengl? ( virtual/opengl )
137 png? ( media-libs/libpng )
138 pnm? ( media-libs/netpbm )
139 pulseaudio? ( media-sound/pulseaudio )
140 samba? ( net-fs/samba )
141 sdl? ( media-libs/libsdl )
142 speex? ( >=media-libs/speex-1.1.7 )
143 srt? ( >=media-libs/freetype-2.1
144 media-libs/fontconfig )
145 svga? ( media-libs/svgalib )
146 theora? ( media-libs/libtheora )
147 live? ( >=media-plugins/live-2007.02.20 )
148 truetype? ( >=media-libs/freetype-2.1
149 media-libs/fontconfig )
150 vidix? ( x11-libs/libXxf86vm
151 x11-libs/libXext )
152 xanim? ( media-video/xanim )
153 xinerama? ( x11-libs/libXinerama
154 x11-libs/libXxf86vm
155 x11-libs/libXext )
156 xscreensaver? ( x11-libs/libXScrnSaver )
157 xv? ( x11-libs/libXv
158 x11-libs/libXxf86vm
159 x11-libs/libXext
160 xvmc? ( x11-libs/libXvMC ) )
161 xvid? ( media-libs/xvid )
162 X? ( x11-libs/libXxf86vm
163 x11-libs/libXext
164 )"
165
166 DEPEND="${RDEPEND}
167 !>=media-libs/libdvdnav-4.1.1
168 doc? ( >=app-text/docbook-sgml-dtd-4.1.2
169 app-text/docbook-xml-dtd
170 >=app-text/docbook-xml-simple-dtd-1.50.0
171 dev-libs/libxslt )
172 dga? ( x11-proto/xf86dgaproto )
173 xinerama? ( x11-proto/xineramaproto )
174 xv? ( x11-proto/videoproto
175 x11-proto/xf86vidmodeproto )
176 gtk? ( x11-proto/xextproto
177 x11-proto/xf86vidmodeproto )
178 X? ( x11-proto/xextproto
179 x11-proto/xf86vidmodeproto )
180 xscreensaver? ( x11-proto/scrnsaverproto )
181 iconv? ( virtual/libiconv )"
182 # Make sure the assembler USE flags are unmasked on amd64
183 # Remove this once default-linux/amd64/2006.1 is deprecated
184 DEPEND="${DEPEND} amd64? ( >=sys-apps/portage-2.1.2 )
185 mp2? ( >=sys-apps/portage-2.1.2 )"
186
187 SLOT="0"
188 LICENSE="GPL-2"
189 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
190
191 pkg_setup() {
192
193 if [[ -n ${LINGUAS} ]]; then
194 elog "For MPlayer's language support, the configuration will"
195 elog "use your LINGUAS variable from /etc/make.conf. If you have more"
196 elog "than one language enabled, then the first one in the list will"
197 elog "be used to output the messages, if a translation is available."
198 elog "man pages will be created for all languages where translations"
199 elog "are also available."
200 fi
201
202 if use x86 || use amd64; then
203 if ! use mmx && use custom-cflags; then
204 ewarn "You have the 'mmx' use flag disabled for this package, which"
205 ewarn "means that no CPU optimizations will be used at all."
206 ewarn "The build will either break or encode very slowly. Check your"
207 ewarn "/proc/cpuinfo for possible CPU optimization flags that"
208 ewarn "apply to this ebuild (mmx, mmxext, 3dnow, 3dnowext, sse,"
209 ewarn "sse2)."
210 fi
211 fi
212
213 }
214
215 src_unpack() {
216 unpack ${A}
217
218 if ! use truetype ; then
219 unpack font-arial-iso-8859-1.tar.bz2 \
220 font-arial-iso-8859-2.tar.bz2 \
221 font-arial-cp1250.tar.bz2
222 fi
223
224 use gtk && unpack "Blue-${BLUV}.tar.bz2"
225
226 use svga && unpack "svgalib_helper-${SVGV}-mplayer.tar.bz2"
227
228 cd "${S}"
229
230 # Fix hppa compilation
231 use hppa && sed -i -e "s/-O4/-O1/" "${S}/configure"
232
233 if use svga; then
234 echo
235 einfo "Enabling vidix non-root mode."
236 einfo "(You need a proper svgalib_helper.o module for your kernel"
237 einfo "to actually use this)"
238 echo
239
240 mv "${WORKDIR}/svgalib_helper" "${S}/libdha"
241 fi
242
243 # Fix polish spelling errors
244 [[ -n ${LINGUAS} ]] && sed -e 's:Zarządano:Zażądano:' -i help/help_mp-pl.h
245 }
246
247 src_compile() {
248
249 local myconf=" --disable-tv-bsdbt848 \
250 --disable-faad-external"
251
252 # broken upstream, won't work with recent kernels
253 myconf="${myconf} --disable-ivtv --disable-pvr"
254
255 # MPlayer reads in the LINGUAS variable from make.conf, and sets
256 # the languages accordingly. Some will have to be altered to match
257 # upstream's naming scheme.
258 [[ -n $LINGUAS ]] && LINGUAS=${LINGUAS/da/dk}
259
260 ################
261 #Optional features#
262 ###############
263 use bidi || myconf="${myconf} --disable-fribidi"
264 use bl && myconf="${myconf} --enable-bl"
265 use color-console && myconf="${myconf} --enable-color-console"
266 use enca || myconf="${myconf} --disable-enca"
267 use ftp || myconf="${myconf} --disable-ftp"
268 use nemesi || myconf="${myconf} --disable-nemesi"
269 use tivo || myconf="${myconf} --disable-vstream"
270 use xscreensaver || myconf="${myconf} --disable-xss"
271
272 # libcdio support: prefer libcdio over cdparanoia
273 # don't check for cddb w/cdio
274 if use cdio; then
275 myconf="${myconf} --disable-cdparanoia"
276 else
277 myconf="${myconf} --disable-libcdio"
278 use cdparanoia || myconf="${myconf} --disable-cdparanoia"
279 use cddb || myconf="${myconf} --disable-cddb"
280 fi
281
282 # DVD support
283 # dvdread and libdvdcss are internal libs
284 # http://www.mplayerhq.hu/DOCS/HTML/en/dvd.html
285 # You can optionally use external dvdread support, but against
286 # upstream's suggestion. We don't.
287 if ! use dvd; then
288 myconf="${myconf} --disable-dvdnav --disable-dvdread"
289 use a52 || myconf="${myconf} --disable-liba52"
290 fi
291
292 if use encode; then
293 use aac || myconf="${myconf} --disable-faac"
294 use dv || myconf="${myconf} --disable-libdv"
295 use x264 || myconf="${myconf} --disable-x264"
296 else
297 myconf="${myconf} --disable-mencoder --disable-libdv --disable-x264 \
298 --disable-faac"
299 fi
300
301 # SRT (subtitles) requires freetype support
302 # freetype support requires iconv
303 # iconv optionally can use unicode
304 if ! use srt; then
305 myconf="${myconf} --disable-ass"
306 if ! use truetype; then
307 myconf="${myconf} --disable-freetype"
308 if ! use iconv; then
309 myconf="${myconf} --disable-iconv --charset=noconv"
310 fi
311 fi
312 fi
313 use iconv && use unicode && myconf="${myconf} --charset=UTF-8"
314
315 use lirc || myconf="${myconf} --disable-lirc --disable-lircc"
316 myconf="${myconf} $(use_enable joystick)"
317 use ipv6 || myconf="${myconf} --disable-inet6"
318 use rar || myconf="${myconf} --disable-unrarexec"
319 use rtc || myconf="${myconf} --disable-rtc"
320 use samba || myconf="${myconf} --disable-smb"
321
322 # DVB / Video4Linux / Radio support
323 if { use dvb || use v4l || use v4l2 || use radio; }; then
324 use dvb || myconf="${myconf} --disable-dvb --disable-dvbhead"
325 use v4l || myconf="${myconf} --disable-tv-v4l1"
326 use v4l2 || myconf="${myconf} --disable-tv-v4l2"
327 use teletext || myconf="${myconf} --disable-tv-teletext"
328 if use radio && { use dvb || use v4l || use v4l2; }; then
329 myconf="${myconf} --enable-radio $(use_enable encode radio-capture)"
330 else
331 myconf="${myconf} --disable-radio-v4l2 --disable-radio-bsdbt848"
332 fi
333 else
334 myconf="${myconf} --disable-tv --disable-tv-v4l1 --disable-tv-v4l2 \
335 --disable-radio --disable-radio-v4l2 --disable-radio-bsdbt848 \
336 --disable-dvb --disable-dvbhead --disable-tv-teletext"
337 fi
338
339 #########
340 # Codecs #
341 ########
342 for x in gif jpeg live mad musepack pnm speex tga theora xanim xvid; do
343 use ${x} || myconf="${myconf} --disable-${x}"
344 done
345 use aac || myconf="${myconf} --disable-faad-internal"
346 use amrnb || myconf="${myconf} --disable-libamr_nb"
347 use amrwb || myconf="${myconf} --disable-libamr_wb"
348 use dts || myconf="${myconf} --disable-libdca"
349 ! use png && ! use gtk && myconf="${myconf} --disable-png"
350 use lzo || myconf="${myconf} --disable-liblzo"
351 use encode && use mp2 || myconf="${myconf} --disable-twolame \
352 --disable-toolame"
353 use mp3 || myconf="${myconf} --disable-mp3lib"
354 use vorbis || myconf="${myconf} --disable-libvorbis"
355 use xanim && myconf="${myconf} --xanimcodecsdir=/usr/lib/xanim/mods"
356 if use x86 || use amd64; then
357 # Real codec support, only available on x86, amd64
358 if use real && use x86; then
359 myconf="${myconf} --realcodecsdir=/opt/RealPlayer/codecs"
360 elif use real && use amd64; then
361 myconf="${myconf} --realcodecsdir=/usr/$(get_libdir)/codecs"
362 else
363 myconf="${myconf} --disable-real"
364 fi
365 if ! use bindist && ! use real; then
366 myconf="${myconf} $(use_enable win32codecs win32dll)"
367 fi
368 fi
369 # bug 213836
370 if ! use x86 || { use x86 && use win32codecs; }; then
371 use quicktime || myconf="${myconf} --disable-qtx"
372 fi
373
374 #############
375 # Video Output #
376 #############
377 for x in directfb ggi md5sum sdl xinerama; do
378 use ${x} || myconf="${myconf} --disable-${x}"
379 done
380 use aalib || myconf="${myconf} --disable-aa"
381 use dga || myconf="${myconf} --disable-dga1 --disable-dga2"
382 use fbcon || myconf="${myconf} --disable-fbdev"
383 use fbcon && use video_cards_s3virge && myconf="${myconf} --enable-s3fb"
384 use libcaca || myconf="${myconf} --disable-caca"
385 use opengl || myconf="${myconf} --disable-gl"
386 use video_cards_vesa || myconf="${myconf} --disable-vesa"
387 use vidix || myconf="${myconf} --disable-vidix-internal \
388 --disable-vidix-external \
389 --disable-vidix-pcidb"
390 use zoran || myconf="${myconf} --disable-zr"
391
392 # GTK gmplayer gui
393 myconf="${myconf} $(use_enable gtk gui)"
394
395 if use xv; then
396 if use xvmc; then
397 myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCW"
398 else
399 myconf="${myconf} --disable-xvmc"
400 fi
401 else
402 myconf="${myconf} --disable-xv --disable-xvmc"
403 fi
404
405 if ! use kernel_linux && ! use video_cards_mga; then
406 myconf="${myconf} --disable-mga --disable-xmga"
407 fi
408
409 if use video_cards_tdfx; then
410 myconf="${myconf} $(use_enable video_cards_tdfx tdfxvid) \
411 $(use_enable fbcon tdfxfb)"
412 else
413 myconf="${myconf} --disable-3dfx --disable-tdfxvid --disable-tdfxfb"
414 fi
415
416 #############
417 # Audio Output #
418 #############
419 for x in alsa arts esd jack ladspa nas openal; do
420 use ${x} || myconf="${myconf} --disable-${x}"
421 done
422 use pulseaudio || myconf="${myconf} --disable-pulse"
423 if ! use radio; then
424 use oss || myconf="${myconf} --disable-ossaudio"
425 fi
426 #################
427 # Advanced Options #
428 #################
429 # Platform specific flags, hardcoded on amd64 (see below)
430 if use x86 || use amd64 || use ppc; then
431 if use cpudetection || use bindist; then
432 myconf="${myconf} --enable-runtime-cpudetection"
433 fi
434 fi
435 # Letting users turn off optimizations results in epic build fail
436 # across the board. MPlayer's build system by default will
437 # detect them and use them just fine, so don't let them change
438 # them unless they really know what they are doing anyway.
439 if use custom-cflags; then
440 if use mmx; then
441 for x in 3dnow 3dnowext mmxext sse sse2 ssse3; do
442 use ${x} || myconf="${myconf} --disable-${x}"
443 done
444 else
445 myconf="${myconf} --disable-mmx --disable-mmxext --disable-sse \
446 --disable-sse2 --disable-ssse3 --disable-3dnow \
447 --disable-3dnowext"
448 fi
449 fi
450
451 use debug && myconf="${myconf} --enable-debug=3"
452
453 myconf="${myconf} $(use_enable altivec)"
454
455 if use custom-cflags; then
456 # let's play the filtration game! MPlayer hates on all!
457 strip-flags
458 # ugly optimizations cause MPlayer to cry on x86 systems!
459 if use x86 || use x86-fbsd ; then
460 replace-flags -O* -O2
461 filter-flags -fPIC -fPIE
462
463 use debug || append-flags -fomit-frame-pointer
464 fi
465 append-flags -D__STDC_LIMIT_MACROS
466 else
467 unset CFLAGS CXXFLAGS
468 fi
469
470 myconf="--cc=$(tc-getCC) \
471 --host-cc=$(tc-getBUILD_CC) \
472 --prefix=/usr \
473 --confdir=/etc/mplayer \
474 --datadir=/usr/share/mplayer \
475 --libdir=/usr/$(get_libdir) \
476 --enable-menu \
477 --enable-network \
478 ${myconf}"
479 #echo "CFLAGS=\"${CFLAGS}\" ./configure ${myconf}"
480 CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died"
481
482 emake || die "Failed to build MPlayer!"
483 use doc && make -C DOCS/xml html-chunked
484 }
485
486 src_install() {
487
488 make prefix="${D}/usr" \
489 BINDIR="${D}/usr/bin" \
490 LIBDIR="${D}/usr/$(get_libdir)" \
491 CONFDIR="${D}/etc/mplayer" \
492 DATADIR="${D}/usr/share/mplayer" \
493 MANDIR="${D}/usr/share/man" \
494 install || die "Failed to install MPlayer!"
495
496 dodoc AUTHORS Changelog README
497 # Install the documentation; DOCS is all mixed up not just html
498 if use doc ; then
499 find "${S}/DOCS" -type d | xargs -- chmod 0755
500 find "${S}/DOCS" -type f | xargs -- chmod 0644
501 cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die "cp docs died"
502 fi
503
504 # Copy misc tools to documentation path, as they're not installed directly
505 # and yes, we are nuking the +x bit.
506 find "${S}/TOOLS" -type d | xargs -- chmod 0755
507 find "${S}/TOOLS" -type f | xargs -- chmod 0644
508 cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die "cp docs died"
509
510 # Install the default Skin and Gnome menu entry
511 if use gtk; then
512 dodir /usr/share/mplayer/skins
513 cp -r "${WORKDIR}/Blue" \
514 "${D}/usr/share/mplayer/skins/default" || die "cp skins died"
515
516 # Fix the symlink
517 rm -rf "${D}/usr/bin/gmplayer"
518 dosym mplayer /usr/bin/gmplayer
519 fi
520
521 if ! use srt && ! use truetype; then
522 dodir /usr/share/mplayer/fonts
523 local x=
524 # Do this generic, as the mplayer people like to change the structure
525 # of their zips ...
526 for x in $(find "${WORKDIR}/" -type d -name 'font-arial-*')
527 do
528 cp -pPR "${x}" "${D}/usr/share/mplayer/fonts"
529 done
530 # Fix the font symlink ...
531 rm -rf "${D}/usr/share/mplayer/font"
532 dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font
533 fi
534
535 insinto /etc/mplayer
536 newins "${S}/etc/example.conf" mplayer.conf
537
538 if use srt || use truetype; then
539 cat >> "${D}/etc/mplayer/mplayer.conf" << EOT
540 fontconfig=1
541 subfont-osd-scale=4
542 subfont-text-scale=3
543 EOT
544 fi
545
546 dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf
547
548 dobin "${D}/usr/share/doc/${PF}/TOOLS/midentify"
549
550 insinto /usr/share/mplayer
551 doins "${S}/etc/input.conf"
552 doins "${S}/etc/menu.conf"
553 }
554
555 pkg_preinst() {
556
557 if [[ -d ${ROOT}/usr/share/mplayer/Skin/default ]]
558 then
559 rm -rf "${ROOT}/usr/share/mplayer/Skin/default"
560 fi
561 }
562
563 pkg_postrm() {
564
565 # Cleanup stale symlinks
566 if [ -L "${ROOT}/usr/share/mplayer/font" -a \
567 ! -e "${ROOT}/usr/share/mplayer/font" ]
568 then
569 rm -f "${ROOT}/usr/share/mplayer/font"
570 fi
571
572 if [ -L "${ROOT}/usr/share/mplayer/subfont.ttf" -a \
573 ! -e "${ROOT}/usr/share/mplayer/subfont.ttf" ]
574 then
575 rm -f "${ROOT}/usr/share/mplayer/subfont.ttf"
576 fi
577 }
578
579
580
581 --
582 gentoo-commits@l.g.o mailing list