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