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

Contents of /media-video/mplayer/mplayer-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.133 - (show annotations) (download)
Thu Jun 21 08:10:42 2012 UTC (21 months, 4 weeks ago) by yngwin
Branch: MAIN
Changes since 1.132: +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-9999.ebuild,v 1.132 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.11.1
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 ~ppc ~ppc64 ~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 pkg_setup() {
195 if [[ ${PV} == *9999* ]]; then
196 elog
197 elog "This is a live ebuild which installs the latest from upstream's"
198 elog "subversion repository, and is unsupported by Gentoo."
199 elog "Everything but bugs in the ebuild itself will be ignored."
200 elog
201 fi
202
203 if use cpudetection; then
204 ewarn
205 ewarn "You've enabled the cpudetection flag. This feature is"
206 ewarn "included mainly for people who want to use the same"
207 ewarn "binary on another system with a different CPU architecture."
208 ewarn "MPlayer will already detect your CPU settings by default at"
209 ewarn "buildtime; this flag is used for runtime detection."
210 ewarn "You won't need this turned on if you are only building"
211 ewarn "mplayer for this system. Also, if your compile fails, try"
212 ewarn "disabling this use flag."
213 fi
214 }
215
216 src_unpack() {
217 if [[ ${PV} = *9999* ]]; then
218 subversion_src_unpack
219 cd "${WORKDIR}"
220 rm -rf "${WORKDIR}/${P}/ffmpeg/"
221 ( S="${WORKDIR}/${P}/ffmpeg/" git-2_src_unpack )
222 else
223 unpack ${A}
224 fi
225
226 if [[ ${PV} = *9999* ]] || [[ "${PV%_rc*}" = "${PV}" ]]; then
227 cd "${S}"
228 cp "${FILESDIR}/dump_ffmpeg.sh" . || die
229 chmod +x dump_ffmpeg.sh
230 ./dump_ffmpeg.sh || die
231 fi
232
233 if ! use truetype; then
234 unpack font-arial-iso-8859-1.tar.bz2 \
235 font-arial-iso-8859-2.tar.bz2 \
236 font-arial-cp1250.tar.bz2
237 fi
238 }
239
240 src_prepare() {
241 local svf=snapshot_version
242 if [[ ${PV} = *9999* ]]; then
243 # Set SVN version manually
244 subversion_wc_info
245 printf "${ESVN_WC_REVISION}" > $svf
246 fi
247 if [ ! -f VERSION ] ; then
248 [ -f "$svf" ] || die "Missing ${svf}. Did you generate your snapshot with prepare_mplayer.sh?"
249 local sv=$(<$svf)
250 printf "SVN-r${sv} (Gentoo)" > VERSION
251 fi
252
253 # fix path to bash executable in configure scripts
254 sed -i -e "1c\#!${EPREFIX}/bin/bash" configure version.sh || die
255
256 base_src_prepare
257 }
258
259 src_configure() {
260 local myconf=""
261 local uses i
262
263 # set LINGUAS
264 [[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
265
266 # mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
267 # compilation in almost every situation. The reason for this is
268 # because if --enable is used, it will force the build of that option,
269 # regardless of whether the dependency is available or not.
270
271 ###################
272 #Optional features#
273 ###################
274 # disable svga since we don't want it
275 # disable arts since we don't have kde3
276 # always disable internal ass
277 myconf+="
278 --disable-svga --disable-svgalib_helper
279 --disable-ass-internal
280 --disable-arts
281 --disable-kai
282 $(use_enable network networking)
283 $(use_enable joystick)
284 "
285 uses="bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
286 myconf+=" --disable-nemesi" # nemesi automagic disable
287 for i in ${uses}; do
288 use ${i} || myconf+=" --disable-${i}"
289 done
290 use bidi || myconf+=" --disable-fribidi"
291 use ipv6 || myconf+=" --disable-inet6"
292 use libass || myconf+=" --disable-ass"
293 use nut || myconf+=" --disable-libnut"
294 use rar || myconf+=" --disable-unrarexec"
295 use samba || myconf+=" --disable-smb"
296 use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir"
297
298 # libcdio support: prefer libcdio over cdparanoia
299 # don't check for cddb w/cdio
300 if use cdio; then
301 myconf+=" --disable-cdparanoia"
302 else
303 myconf+=" --disable-libcdio"
304 use cdparanoia || myconf+=" --disable-cdparanoia"
305 use cddb || myconf+=" --disable-cddb"
306 fi
307
308 ################################
309 # DVD read, navigation support #
310 ################################
311 #
312 # dvdread - accessing a DVD
313 # dvdnav - navigation of menus
314 #
315 # use external libdvdcss, dvdread and dvdnav
316 myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
317 use dvd || myconf+=" --disable-dvdread"
318 use dvdnav || myconf+=" --disable-dvdnav"
319
320 #############
321 # Subtitles #
322 #############
323 #
324 # SRT/ASS/SSA (subtitles) requires freetype support
325 # freetype support requires iconv
326 # iconv optionally can use unicode
327 use truetype || myconf+=" --disable-freetype"
328 use iconv || myconf+=" --disable-iconv --charset=noconv"
329 use iconv && use unicode && myconf+=" --charset=UTF-8"
330
331 #####################################
332 # DVB / Video4Linux / Radio support #
333 #####################################
334 myconf+=" --disable-tv-bsdbt848"
335 # broken upstream, won't work with recent kernels
336 myconf+=" --disable-ivtv"
337 # gone since linux-headers-2.6.38
338 myconf+=" --disable-tv-v4l1"
339 if { use dvb || use v4l || use pvr || use radio; }; then
340 use dvb || myconf+=" --disable-dvb"
341 use pvr || myconf+=" --disable-pvr"
342 use v4l || myconf+=" --disable-tv-v4l2"
343 if use radio && { use dvb || use v4l; }; then
344 myconf+="
345 --enable-radio
346 $(use_enable encode radio-capture)
347 "
348 else
349 myconf+="
350 --disable-radio-v4l2
351 --disable-radio-bsdbt848
352 "
353 fi
354 else
355 myconf+="
356 --disable-tv
357 --disable-tv-v4l2
358 --disable-radio
359 --disable-radio-v4l2
360 --disable-radio-bsdbt848
361 --disable-dvb
362 --disable-v4l2
363 --disable-pvr"
364 fi
365
366 ##########
367 # Codecs #
368 ##########
369 myconf+=" --disable-musepack" # Use internal musepack codecs for SV7 and SV8 support
370 myconf+=" --disable-libmpeg2-internal" # always use system media-libs/libmpeg2
371 use dts || myconf+=" --disable-libdca"
372 # Disable internal mp3lib, bug #384849
373 # Samuli Suominen: Looks like MPlayer in Portage is using internal mp3lib by
374 # default, where as mpg123 upstream has incorporated all the optimizations
375 # from mplayer's mp3lib in libmpg123 and more.
376 # It makes very little sense to use the internal copy as default anymore.
377 myconf+=" --disable-mp3lib"
378 if ! use mp3; then
379 myconf+="
380 --disable-mp3lame
381 --disable-mpg123
382 "
383 fi
384 uses="a52 bs2b dv gsm lzo rtmp"
385 for i in ${uses}; do
386 use ${i} || myconf+=" --disable-lib${i}"
387 done
388
389 uses="faad gif jpeg libmpeg2 live mad mng png pnm speex tga theora xanim"
390 for i in ${uses}; do
391 use ${i} || myconf+=" --disable-${i}"
392 done
393 use jpeg2k || myconf+=" --disable-libopenjpeg"
394 if use vorbis || use tremor; then
395 use tremor || myconf+=" --disable-tremor-internal"
396 use vorbis || myconf+=" --disable-libvorbis"
397 else
398 myconf+="
399 --disable-tremor-internal
400 --disable-tremor
401 --disable-libvorbis
402 "
403 fi
404 # Encoding
405 uses="faac x264 xvid toolame twolame"
406 if use encode; then
407 for i in ${uses}; do
408 use ${i} || myconf+=" --disable-${i}"
409 done
410 else
411 myconf+=" --disable-mencoder"
412 for i in ${uses}; do
413 myconf+=" --disable-${i}"
414 use ${i} && elog "Useflag \"${i}\" will only be useful for encoding, i.e., with \"encode\" useflag enabled."
415 done
416 fi
417
418 #################
419 # Binary codecs #
420 #################
421 # bug 213836
422 if ! use x86 || ! use win32codecs; then
423 use quicktime || myconf+=" --disable-qtx"
424 fi
425
426 ######################
427 # RealPlayer support #
428 ######################
429 # Realplayer support shows up in four places:
430 # - libavcodec (internal)
431 # - win32codecs
432 # - realcodecs (win32codecs libs)
433 # - realcodecs (realplayer libs)
434
435 # internal
436 use real || myconf+=" --disable-real"
437
438 # Real binary codec support only available on x86, amd64
439 if use real; then
440 use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
441 use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
442 fi
443 myconf+=" $(use_enable win32codecs win32dll)"
444
445 ################
446 # Video Output #
447 ################
448 uses="directfb md5sum sdl"
449 for i in ${uses}; do
450 use ${i} || myconf+=" --disable-${i}"
451 done
452 use aalib || myconf+=" --disable-aa"
453 use fbcon || myconf+=" --disable-fbdev"
454 use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
455 use libcaca || myconf+=" --disable-caca"
456 use zoran || myconf+=" --disable-zr"
457
458 if ! use kernel_linux || ! use video_cards_mga; then
459 myconf+=" --disable-mga --disable-xmga"
460 fi
461
462 if use video_cards_tdfx; then
463 myconf+="
464 $(use_enable video_cards_tdfx tdfxvid)
465 $(use_enable fbcon tdfxfb)
466 "
467 else
468 myconf+="
469 --disable-3dfx
470 --disable-tdfxvid
471 --disable-tdfxfb
472 "
473 fi
474
475 # sun card, disable by default, see bug #258729
476 myconf+=" --disable-xvr100"
477
478 ################
479 # Audio Output #
480 ################
481 myconf+=" --disable-esd"
482 uses="alsa jack ladspa nas openal"
483 for i in ${uses}; do
484 use ${i} || myconf+=" --disable-${i}"
485 done
486 use pulseaudio || myconf+=" --disable-pulse"
487 if ! use radio; then
488 use oss || myconf+=" --disable-ossaudio"
489 fi
490
491 ####################
492 # Advanced Options #
493 ####################
494 # Platform specific flags, hardcoded on amd64 (see below)
495 use cpudetection && myconf+=" --enable-runtime-cpudetection"
496
497 uses="3dnow 3dnowext altivec mmx mmxext shm sse sse2 ssse3"
498 for i in ${uses}; do
499 myconf+=" $(use_enable ${i})"
500 done
501
502 use debug && myconf+=" --enable-debug=3"
503
504 if use x86 && gcc-specs-pie; then
505 filter-flags -fPIC -fPIE
506 append-ldflags -nopie
507 fi
508
509 ###########################
510 # X enabled configuration #
511 ###########################
512 myconf+=" --disable-gui"
513 myconf+=" --disable-vesa"
514 uses="dxr3 ggi vdpau xinerama xv"
515 for i in ${uses}; do
516 use ${i} || myconf+=" --disable-${i}"
517 done
518 use dga || myconf+=" --disable-dga1 --disable-dga2"
519 use opengl || myconf+=" --disable-gl"
520 use osdmenu && myconf+=" --enable-menu"
521 use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb"
522 use xscreensaver || myconf+=" --disable-xss"
523 use X || myconf+=" --disable-x11"
524 if use xvmc; then
525 myconf+=" --enable-xvmc --with-xvmclib=XvMCW"
526 else
527 myconf+=" --disable-xvmc"
528 fi
529
530 ############################
531 # OSX (aqua) configuration #
532 ############################
533 if use aqua; then
534 myconf+="
535 --enable-macosx-finder
536 --enable-macosx-bundle
537 "
538 fi
539
540 ./configure \
541 --cc="$(tc-getCC)" \
542 --host-cc="$(tc-getBUILD_CC)" \
543 --prefix="${EPREFIX}/usr" \
544 --bindir="${EPREFIX}/usr/bin" \
545 --libdir="${EPREFIX}/usr/$(get_libdir)" \
546 --confdir="${EPREFIX}/etc/mplayer" \
547 --datadir="${EPREFIX}/usr/share/mplayer${namesuf}" \
548 --mandir="${EPREFIX}/usr/share/man" \
549 --disable-ffmpeg_a \
550 ${myconf} || die
551 }
552
553 src_compile() {
554 base_src_compile
555 # Build only user-requested docs if they're available.
556 if use doc ; then
557 # select available languages from $LINGUAS
558 LINGUAS=${LINGUAS/zh/zh_CN}
559 local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN"
560 local BUILT_DOCS=""
561 for i in ${LINGUAS} ; do
562 has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}"
563 done
564 if [[ -z $BUILT_DOCS ]]; then
565 emake -j1 html-chunked
566 else
567 for i in ${BUILT_DOCS}; do
568 emake -j1 html-chunked-${i}
569 done
570 fi
571 fi
572 }
573
574 src_install() {
575 local i
576
577 emake \
578 DESTDIR="${D}" \
579 INSTALLSTRIP="" \
580 install
581
582 dodoc AUTHORS Changelog Copyright README etc/codecs.conf
583
584 docinto tech/
585 dodoc DOCS/tech/{*.txt,MAINTAINERS,mpsub.sub,playtree,TODO,wishlist}
586 docinto TOOLS/
587 dodoc -r TOOLS
588 if use real; then
589 docinto tech/realcodecs/
590 dodoc DOCS/tech/realcodecs/*
591 fi
592 docinto tech/mirrors/
593 dodoc DOCS/tech/mirrors/*
594
595 if use doc; then
596 docinto html/
597 dohtml -r "${S}"/DOCS/HTML/*
598 fi
599
600 if ! use truetype; then
601 dodir /usr/share/mplayer/fonts
602 # Do this generic, as the mplayer people like to change the structure
603 # of their zips ...
604 for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
605 cp -pPR "${i}" "${ED}/usr/share/mplayer/fonts"
606 done
607 # Fix the font symlink ...
608 rm -rf "${ED}/usr/share/mplayer/font"
609 dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font
610 fi
611
612 insinto /etc/mplayer
613 newins "${S}/etc/example.conf" mplayer.conf
614 cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
615 # Config options can be section specific, global
616 # options should go in the default section
617 [default]
618 _EOF_
619 doins "${S}/etc/input.conf"
620 if use osdmenu; then
621 doins "${S}/etc/menu.conf"
622 fi
623
624 if use truetype; then
625 cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
626 fontconfig=1
627 subfont-osd-scale=4
628 subfont-text-scale=3
629 _EOF_
630 fi
631
632 # bug 256203
633 if use rar; then
634 cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
635 unrarexec=${EPREFIX}/usr/bin/unrar
636 _EOF_
637 fi
638
639 dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf
640 newbin "${S}/TOOLS/midentify.sh" midentify
641 }
642
643 pkg_preinst() {
644 [[ -d ${EROOT}/usr/share/mplayer/Skin/default ]] && \
645 rm -rf "${EROOT}/usr/share/mplayer/Skin/default"
646 }
647
648 pkg_postrm() {
649 # Cleanup stale symlinks
650 [ -L "${EROOT}/usr/share/mplayer/font" -a \
651 ! -e "${EROOT}/usr/share/mplayer/font" ] && \
652 rm -f "${EROOT}/usr/share/mplayer/font"
653
654 [ -L "${EROOT}/usr/share/mplayer/subfont.ttf" -a \
655 ! -e "${EROOT}/usr/share/mplayer/subfont.ttf" ] && \
656 rm -f "${EROOT}/usr/share/mplayer/subfont.ttf"
657 }

  ViewVC Help
Powered by ViewVC 1.1.20