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