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

Contents of /media-video/mplayer/mplayer-1.0_rc4_p20120405.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20