Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mplayer2: mplayer2-9999.ebuild mplayer2-2.0_p20120902.ebuild ChangeLog
Date: Sun, 02 Sep 2012 10:14:36
Message-Id: 20120902101423.C3F1820FB1@flycatcher.gentoo.org
1 scarabeus 12/09/02 10:14:23
2
3 Modified: mplayer2-9999.ebuild ChangeLog
4 Added: mplayer2-2.0_p20120902.ebuild
5 Log:
6 Add new snapshot. Update bit live ebuild wrt aqua use.
7
8 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.43 media-video/mplayer2/mplayer2-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild?rev=1.43&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild?rev=1.43&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild?r1=1.42&r2=1.43
16
17 Index: mplayer2-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild,v
20 retrieving revision 1.42
21 retrieving revision 1.43
22 diff -u -r1.42 -r1.43
23 --- mplayer2-9999.ebuild 13 Aug 2012 13:19:20 -0000 1.42
24 +++ mplayer2-9999.ebuild 2 Sep 2012 10:14:23 -0000 1.43
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2012 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild,v 1.42 2012/08/13 13:19:20 scarabeus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-9999.ebuild,v 1.43 2012/09/02 10:14:23 scarabeus Exp $
30
31 EAPI=4
32
33 @@ -59,7 +59,7 @@
34 dvdnav? ( dvd )
35 dxr3? ( X )
36 ggi? ( X )
37 - opengl? ( X )
38 + opengl? ( || ( X aqua ) )
39 radio? ( || ( dvb v4l ) )
40 truetype? ( iconv )
41 vdpau? ( X )
42
43
44
45 1.64 media-video/mplayer2/ChangeLog
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/ChangeLog?rev=1.64&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/ChangeLog?rev=1.64&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/ChangeLog?r1=1.63&r2=1.64
50
51 Index: ChangeLog
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v
54 retrieving revision 1.63
55 retrieving revision 1.64
56 diff -u -r1.63 -r1.64
57 --- ChangeLog 13 Aug 2012 13:19:20 -0000 1.63
58 +++ ChangeLog 2 Sep 2012 10:14:23 -0000 1.64
59 @@ -1,6 +1,12 @@
60 # ChangeLog for media-video/mplayer2
61 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
62 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.63 2012/08/13 13:19:20 scarabeus Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.64 2012/09/02 10:14:23 scarabeus Exp $
64 +
65 +*mplayer2-2.0_p20120902 (02 Sep 2012)
66 +
67 + 02 Sep 2012; Tomáš Chvátal <scarabeus@g.o>
68 + +mplayer2-2.0_p20120902.ebuild, mplayer2-9999.ebuild:
69 + Add new snapshot. Update bit live ebuild wrt aqua use.
70
71 13 Aug 2012; Tomáš Chvátal <scarabeus@g.o>
72 +files/mplayer2-py2compat.patch, mplayer2-9999.ebuild:
73
74
75
76 1.1 media-video/mplayer2/mplayer2-2.0_p20120902.ebuild
77
78 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20120902.ebuild?rev=1.1&view=markup
79 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20120902.ebuild?rev=1.1&content-type=text/plain
80
81 Index: mplayer2-2.0_p20120902.ebuild
82 ===================================================================
83 # Copyright 1999-2012 Gentoo Foundation
84 # Distributed under the terms of the GNU General Public License v2
85 # $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20120902.ebuild,v 1.1 2012/09/02 10:14:23 scarabeus Exp $
86
87 EAPI=4
88
89 [[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
90
91 inherit toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
92
93 NAMESUF="${PN/mplayer/}"
94 DESCRIPTION="Media Player for Linux"
95 HOMEPAGE="http://www.mplayer2.org/"
96
97 if [[ ${PV} == *9999* ]]; then
98 EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
99 else
100 RELEASE_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz"
101 fi
102 SRC_URI="${RELEASE_URI}
103 !truetype? (
104 mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
105 mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
106 mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
107 )
108 "
109
110 LICENSE="GPL-3"
111 SLOT="0"
112 if [[ ${PV} == *9999* ]]; then
113 KEYWORDS=""
114 else
115 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
116 fi
117 IUSE="+a52 aalib +alsa aqua bidi bindist bl bluray bs2b cddb +cdio
118 cpudetection debug directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +faad
119 fbcon ftp gif ggi +iconv ipv6 jack joystick jpeg kernel_linux ladspa
120 +libass libcaca lirc mad md5sum mng +mp3 nas +network nut +opengl oss png pnm
121 portaudio postproc pulseaudio pvr +quicktime radio +rar +real +rtc samba
122 sdl +speex tga +theora +truetype +unicode v4l vdpau +vorbis win32codecs +X
123 xanim xinerama +xscreensaver +xv xvid"
124 IUSE+=" symlink"
125
126 CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3"
127 for x in ${CPU_FEATURES}; do
128 IUSE+=" ${x}"
129 done
130
131 VIDEO_CARDS="s3virge mga tdfx"
132 for x in ${VIDEO_CARDS}; do
133 IUSE+=" video_cards_${x}"
134 done
135
136 # bindist does not cope with win32codecs, which are nonfree
137 REQUIRED_USE="
138 libass? ( truetype )
139 bindist? ( !win32codecs )
140 cddb? ( cdio network )
141 dvdnav? ( dvd )
142 dxr3? ( X )
143 ggi? ( X )
144 opengl? ( || ( X aqua ) )
145 radio? ( || ( dvb v4l ) )
146 truetype? ( iconv )
147 vdpau? ( X )
148 xinerama? ( X )
149 xscreensaver? ( X )
150 xv? ( X )
151 "
152
153 # Rar: althrought -gpl version is nice, it cant do most functions normal rars can
154 # nemesi? ( net-libs/libnemesi )
155 RDEPEND+="
156 sys-libs/ncurses
157 sys-libs/zlib
158 !bindist? (
159 x86? (
160 win32codecs? ( media-libs/win32codecs )
161 )
162 )
163 X? (
164 x11-libs/libXext
165 x11-libs/libXxf86vm
166 ggi? (
167 media-libs/libggi
168 media-libs/libggiwmh
169 )
170 opengl? ( virtual/opengl )
171 vdpau? ( x11-libs/libvdpau )
172 xinerama? ( x11-libs/libXinerama )
173 xscreensaver? ( x11-libs/libXScrnSaver )
174 xv? (
175 x11-libs/libXv
176 )
177 )
178 a52? ( media-libs/a52dec )
179 aalib? ( media-libs/aalib )
180 alsa? ( media-libs/alsa-lib )
181 bidi? ( dev-libs/fribidi )
182 bluray? ( media-libs/libbluray )
183 bs2b? ( media-libs/libbs2b )
184 cdio? ( dev-libs/libcdio )
185 directfb? ( dev-libs/DirectFB )
186 dts? ( media-libs/libdca )
187 dv? ( media-libs/libdv )
188 dvb? ( virtual/linuxtv-dvb-headers )
189 dvd? (
190 >=media-libs/libdvdread-4.1.3
191 dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
192 )
193 enca? ( app-i18n/enca )
194 faad? ( media-libs/faad2 )
195 gif? ( media-libs/giflib )
196 iconv? ( virtual/libiconv )
197 jack? ( media-sound/jack-audio-connection-kit )
198 jpeg? ( virtual/jpeg )
199 ladspa? ( media-libs/ladspa-sdk )
200 libass? ( >=media-libs/libass-0.9.10[enca?,fontconfig] )
201 libcaca? ( media-libs/libcaca )
202 lirc? ( app-misc/lirc )
203 mad? ( media-libs/libmad )
204 mng? ( media-libs/libmng )
205 mp3? ( media-sound/mpg123 )
206 nas? ( media-libs/nas )
207 nut? ( >=media-libs/libnut-661 )
208 png? ( media-libs/libpng )
209 pnm? ( media-libs/netpbm )
210 portaudio? ( >=media-libs/portaudio-19_pre20111121 )
211 postproc? ( || ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg ) )
212 pulseaudio? ( media-sound/pulseaudio )
213 rar? (
214 || (
215 app-arch/unrar
216 app-arch/rar
217 )
218 )
219 samba? ( net-fs/samba )
220 sdl? ( media-libs/libsdl )
221 speex? ( media-libs/speex )
222 theora? ( media-libs/libtheora )
223 truetype? (
224 media-libs/fontconfig
225 >=media-libs/freetype-2.2.1:2
226 virtual/ttf-fonts
227 )
228 vorbis? ( media-libs/libvorbis )
229 xanim? ( media-video/xanim )
230 xvid? ( media-libs/xvid )
231 >=virtual/ffmpeg-0.10.2
232 symlink? ( !media-video/mplayer )
233 "
234 ASM_DEP="dev-lang/yasm"
235 DEPEND="${RDEPEND}
236 virtual/pkgconfig
237 >=dev-lang/python-2.6
238 sys-devel/gettext
239 X? (
240 x11-proto/videoproto
241 x11-proto/xf86vidmodeproto
242 dxr3? ( media-video/em8300-libraries )
243 xinerama? ( x11-proto/xineramaproto )
244 xscreensaver? ( x11-proto/scrnsaverproto )
245 )
246 amd64? ( ${ASM_DEP} )
247 doc? (
248 dev-libs/libxslt app-text/docbook-xml-dtd
249 app-text/docbook-xsl-stylesheets
250 )
251 x86? ( ${ASM_DEP} )
252 x86-fbsd? ( ${ASM_DEP} )
253 "
254
255 PATCHES=(
256 "${FILESDIR}/${PN}-py2compat.patch"
257 )
258
259 pkg_setup() {
260 if [[ ${PV} == *9999* ]]; then
261 elog
262 elog "This is a live ebuild which installs the latest from upstream's"
263 elog "${VCS_ECLASS} repository, and is unsupported by Gentoo."
264 elog "Everything but bugs in the ebuild itself will be ignored."
265 elog
266 fi
267
268 if use cpudetection; then
269 ewarn
270 ewarn "You've enabled the cpudetection flag. This feature is"
271 ewarn "included mainly for people who want to use the same"
272 ewarn "binary on another system with a different CPU architecture."
273 ewarn "MPlayer will already detect your CPU settings by default at"
274 ewarn "buildtime; this flag is used for runtime detection."
275 ewarn "You won't need this turned on if you are only building"
276 ewarn "mplayer for this system. Also, if your compile fails, try"
277 ewarn "disabling this use flag."
278 fi
279
280 einfo "For various format support you need to enable the support on your ffmpeg package:"
281 einfo " media-video/libav or media-video/ffmpeg"
282 }
283
284 src_prepare() {
285 # fix path to bash executable in configure scripts
286 local bash_scripts="configure version.sh"
287 sed -i -e "1c\#!${EPREFIX}/bin/bash" \
288 ${bash_scripts} || die
289
290 if [[ -n ${NAMESUF} ]]; then
291 sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
292 -i configure || die
293 sed -e "\, -m 644 DOCS/man/en/mplayer,i\ mv DOCS/man/en/mplayer.1 DOCS/man/en/${PN}.1" \
294 -e "\, -m 644 DOCS/man/\$(lang)/mplayer,i\ mv DOCS/man/\$(lang)/mplayer.1 DOCS/man/\$(lang)/${PN}.1" \
295 -e "s/er.1/er${NAMESUF}.1/g" \
296 -i Makefile || die
297 sed -e "s/mplayer/${PN}/" \
298 -i TOOLS/midentify.sh || die
299 fi
300
301 base_src_prepare
302 }
303
304 src_configure() {
305 local myconf=""
306 local uses i
307
308 # set LINGUAS
309 [[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
310
311 # mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
312 # compilation in almost every situation. The reason for this is
313 # because if --enable is used, it will force the build of that option,
314 # regardless of whether the dependency is available or not.
315
316 ###################
317 #Optional features#
318 ###################
319 # disable svga since we don't want it
320 # disable tremor, it needs libvorbisidec and is for FPU-less systems only
321 myconf+="
322 --disable-svga
323 --disable-tremor
324 $(use_enable network networking)
325 $(use_enable joystick)
326 "
327 uses="bl bluray enca ftp libass rtc" # nemesi <- not working with in-tree ebuild
328 myconf+=" --disable-nemesi" # nemesi automagic disable
329 for i in ${uses}; do
330 use ${i} || myconf+=" --disable-${i}"
331 done
332 use bidi || myconf+=" --disable-fribidi"
333 use ipv6 || myconf+=" --disable-inet6"
334 use nut || myconf+=" --disable-libnut"
335 use rar || myconf+=" --disable-unrarexec"
336 use samba || myconf+=" --disable-smb"
337 if ! use lirc; then
338 myconf+="
339 --disable-lirc
340 --disable-lircc
341 --disable-apple-ir
342 "
343 fi
344
345 ########
346 # CDDA #
347 ########
348 use cddb || myconf+=" --disable-cddb"
349 use cdio || myconf+=" --disable-libcdio"
350
351 ################################
352 # DVD read, navigation support #
353 ################################
354 #
355 # dvdread - accessing a DVD
356 # dvdnav - navigation of menus
357 #
358 # use external libdvdcss, dvdread and dvdnav
359 myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
360 use dvd || myconf+=" --disable-dvdread"
361 use dvdnav || myconf+=" --disable-dvdnav"
362
363 #############
364 # Subtitles #
365 #############
366 # SRT/ASS/SSA (subtitles) requires freetype support
367 # freetype support requires iconv
368 # iconv optionally can use unicode
369 use truetype || myconf+=" --disable-freetype"
370 use iconv || myconf+=" --disable-iconv --charset=noconv"
371 use iconv && use unicode && myconf+=" --charset=UTF-8"
372
373 #####################################
374 # DVB / Video4Linux / Radio support #
375 #####################################
376 myconf+=" --disable-tv-bsdbt848"
377 # broken upstream, won't work with recent kernels
378 myconf+=" --disable-ivtv"
379 # v4l1 is gone since linux-headers-2.6.38
380 myconf+=" --disable-tv-v4l1"
381 if { use dvb || use v4l || use pvr || use radio; }; then
382 use dvb || myconf+=" --disable-dvb"
383 use pvr || myconf+=" --disable-pvr"
384 use v4l || myconf+=" --disable-tv-v4l2"
385 if use radio && { use dvb || use v4l; }; then
386 myconf+="
387 --enable-radio
388 --disable-radio-capture
389 "
390 else
391 myconf+="
392 --disable-radio-v4l2
393 --disable-radio-bsdbt848
394 "
395 fi
396 else
397 myconf+="
398 --disable-tv
399 --disable-tv-v4l2
400 --disable-radio
401 --disable-radio-v4l2
402 --disable-radio-bsdbt848
403 --disable-dvb
404 --disable-v4l2
405 --disable-pvr"
406 fi
407
408 ##########
409 # Codecs #
410 ##########
411 myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred
412 use dts || myconf+=" --disable-libdca"
413 use mp3 || myconf+=" --disable-mpg123"
414 uses="a52 bs2b dv vorbis"
415 for i in ${uses}; do
416 use ${i} || myconf+=" --disable-lib${i}"
417 done
418 uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
419 for i in ${uses}; do
420 use ${i} || myconf+=" --disable-${i}"
421 done
422 myconf+=" --disable-live" # >=live-2012 are broken
423
424 #################
425 # Binary codecs #
426 #################
427 # bug 213836
428 if ! use x86 || ! use win32codecs; then
429 use quicktime || myconf+=" --disable-qtx"
430 fi
431
432 ######################
433 # RealPlayer support #
434 ######################
435 # Realplayer support shows up in four places:
436 # - libavcodec (internal)
437 # - win32codecs
438 # - realcodecs (win32codecs libs)
439 # - realcodecs (realplayer libs)
440
441 # internal
442 use real || myconf+=" --disable-real"
443
444 # Real binary codec support only available on x86, amd64
445 if use real; then
446 use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
447 use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
448 fi
449 myconf+=" $(use_enable win32codecs win32dll)"
450
451 ################
452 # Video Output #
453 ################
454 uses="directfb md5sum sdl"
455 for i in ${uses}; do
456 use ${i} || myconf+=" --disable-${i}"
457 done
458 use aalib || myconf+=" --disable-aa"
459 use fbcon || myconf+=" --disable-fbdev"
460 use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
461 use libcaca || myconf+=" --disable-caca"
462 use postproc || myconf+=" --disable-libpostproc"
463
464 if ! use kernel_linux || ! use video_cards_mga; then
465 myconf+=" --disable-mga --disable-xmga"
466 fi
467
468 if use video_cards_tdfx; then
469 myconf+="
470 $(use_enable video_cards_tdfx tdfxvid)
471 $(use_enable fbcon tdfxfb)
472 "
473 else
474 myconf+="
475 --disable-3dfx
476 --disable-tdfxvid
477 --disable-tdfxfb
478 "
479 fi
480
481 # sun card, disable by default, see bug #258729
482 myconf+=" --disable-xvr100"
483
484 ################
485 # Audio Output #
486 ################
487 myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
488 uses="alsa jack ladspa nas portaudio"
489 for i in ${uses}; do
490 use ${i} || myconf+=" --disable-${i}"
491 done
492 #use openal && myconf+=" --enable-openal" # build fails
493 use pulseaudio || myconf+=" --disable-pulse"
494 if ! use radio; then
495 use oss || myconf+=" --disable-ossaudio"
496 fi
497
498 ####################
499 # Advanced Options #
500 ####################
501 # Platform specific flags, hardcoded on amd64 (see below)
502 use cpudetection && myconf+=" --enable-runtime-cpudetection"
503
504 for i in ${CPU_FEATURES}; do
505 myconf+=" $(use_enable ${i/+/})"
506 done
507
508 use debug && myconf+=" --enable-debug=3"
509
510 if use x86 && gcc-specs-pie; then
511 filter-flags -fPIC -fPIE
512 append-ldflags -nopie
513 fi
514
515 ###########################
516 # X enabled configuration #
517 ###########################
518 myconf+=" --disable-dga1 --disable-dga2 --disable-vesa"
519 uses="dxr3 ggi vdpau xinerama xv"
520 for i in ${uses}; do
521 use ${i} || myconf+=" --disable-${i}"
522 done
523 use opengl || myconf+=" --disable-gl"
524 use xscreensaver || myconf+=" --disable-xss"
525
526 ############################
527 # OSX (aqua) configuration #
528 ############################
529 if use aqua; then
530 myconf+="
531 --enable-macosx-finder
532 --enable-macosx-bundle
533 "
534 fi
535
536 ./configure \
537 --cc="$(tc-getCC)" \
538 --pkg-config="$(tc-getPKG_CONFIG)" \
539 --prefix="${EPREFIX}"/usr \
540 --bindir="${EPREFIX}"/usr/bin \
541 --libdir="${EPREFIX}"/usr/$(get_libdir) \
542 --confdir="${EPREFIX}"/etc/${PN} \
543 --datadir="${EPREFIX}"/usr/share/${PN} \
544 --mandir="${EPREFIX}"/usr/share/man \
545 --localedir="${EPREFIX}"/usr/share/locale \
546 --enable-translation \
547 ${myconf} || die
548 }
549
550 src_compile() {
551 base_src_compile
552 # Build only user-requested docs if they're available.
553 if use doc ; then
554 # select available languages from $LINGUAS
555 LINGUAS=${LINGUAS/zh/zh_CN}
556 local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN"
557 local BUILT_DOCS=""
558 for i in ${LINGUAS} ; do
559 has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}"
560 done
561 if [[ -z $BUILT_DOCS ]]; then
562 emake -j1 -C DOCS/xml html-chunked
563 else
564 for i in ${BUILT_DOCS}; do
565 emake -j1 -C DOCS/xml html-chunked-${i}
566 done
567 fi
568 fi
569 }
570
571 src_install() {
572 local i
573
574 emake \
575 DESTDIR="${D}" \
576 INSTALLSTRIP="" \
577 install
578
579 dodoc AUTHORS Copyright README etc/codecs.conf
580
581 docinto tech/
582 dodoc DOCS/tech/{*.txt,mpsub.sub,playtree}
583 docinto TOOLS/
584 dodoc -r TOOLS
585 if use real; then
586 docinto tech/realcodecs/
587 dodoc DOCS/tech/realcodecs/*
588 fi
589
590 if use doc; then
591 docinto html/
592 dohtml -r "${S}"/DOCS/HTML/*
593 fi
594
595 if ! use truetype; then
596 dodir /usr/share/${PN}/fonts
597 # Do this generic, as the mplayer people like to change the structure
598 # of their zips ...
599 for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
600 cp -pPR "${i}" "${ED}/usr/share/${PN}/fonts"
601 done
602 # Fix the font symlink ...
603 rm -rf "${ED}/usr/share/${PN}/font"
604 dosym fonts/font-arial-14-iso-8859-1 /usr/share/${PN}/font
605 fi
606
607 insinto /etc/${PN}
608 newins "${S}/etc/example.conf" mplayer.conf
609 cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
610 # Config options can be section specific, global
611 # options should go in the default section
612 [default]
613 _EOF_
614 doins "${S}/etc/input.conf"
615
616 # set unrar path when required
617 if use rar; then
618 cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
619 unrarexec=${EPREFIX}/usr/bin/unrar
620 _EOF_
621 fi
622 dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
623
624 newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
625
626 if [[ -n ${NAMESUF} ]] && use symlink; then
627 dosym "${PN}" /usr/bin/mplayer
628 dosym "midentify${NAMESUF}" /usr/bin/midentify
629 fi
630 }