/[gentoo-x86]/media-video/mplayer/mplayer-1.1-r1.ebuild
Gentoo

Contents of /media-video/mplayer/mplayer-1.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jun 21 08:10:42 2012 UTC (2 years, 2 months ago) by yngwin
Branch: MAIN
Changes since 1.2: +2 -2 lines
Fix libass usage, bug #422251

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20