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