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