Gentoo Archives: gentoo-commits

From: "Maxim Koltsov (maksbotan)" <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mplayer2: mplayer2-2.0_p20131009.ebuild ChangeLog
Date: Fri, 02 May 2014 19:28:47
Message-Id: 20140502192840.997D92004C@flycatcher.gentoo.org
1 maksbotan 14/05/02 19:28:40
2
3 Modified: ChangeLog
4 Added: mplayer2-2.0_p20131009.ebuild
5 Log:
6 Bump to new snapshot, change SRC_URI to dev.gentoo.org as googlecode no longer accepts downloads.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE)
9
10 Revision Changes Path
11 1.120 media-video/mplayer2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/ChangeLog?rev=1.120&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/ChangeLog?rev=1.120&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/ChangeLog?r1=1.119&r2=1.120
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v
20 retrieving revision 1.119
21 retrieving revision 1.120
22 diff -u -r1.119 -r1.120
23 --- ChangeLog 1 May 2014 20:17:09 -0000 1.119
24 +++ ChangeLog 2 May 2014 19:28:40 -0000 1.120
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-video/mplayer2
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.119 2014/05/01 20:17:09 maksbotan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/ChangeLog,v 1.120 2014/05/02 19:28:40 maksbotan Exp $
30 +
31 +*mplayer2-2.0_p20131009 (02 May 2014)
32 +
33 + 02 May 2014; Maxim Koltsov <maksbotan@g.o>
34 + +mplayer2-2.0_p20131009.ebuild:
35 + Bump to new snapshot, change SRC_URI to dev.gentoo.org as googlecode no longer
36 + accepts downloads.
37
38 01 May 2014; Maxim Koltsov <maksbotan@g.o>
39 mplayer2-2.0_p20130428-r1.ebuild, mplayer2-9999.ebuild:
40
41
42
43 1.1 media-video/mplayer2/mplayer2-2.0_p20131009.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20131009.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20131009.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mplayer2-2.0_p20131009.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20131009.ebuild,v 1.1 2014/05/02 19:28:40 maksbotan Exp $
53
54 EAPI=5
55
56 # https://bugs.gentoo.org/show_bug.cgi?id=434356#c4
57 PYTHON_COMPAT=( python{2_7,3_2,3_3} )
58
59 EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
60
61 inherit toolchain-funcs flag-o-matic multilib eutils python-any-r1
62 [[ ${PV} == *9999* ]] && inherit git-2
63
64 NAMESUF="${PN/mplayer/}"
65 DESCRIPTION="Media Player for Linux"
66 HOMEPAGE="http://www.mplayer2.org/"
67 [[ ${PV} == *9999* ]] || \
68 SRC_URI="http://dev.gentoo.org/~maksbotan/${P}.tar.xz"
69
70 LICENSE="GPL-3"
71 SLOT="0"
72 [[ ${PV} == *9999* ]] || \
73 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
74 IUSE="+alsa aqua bluray bs2b cddb +cdio cpudetection debug directfb doc dvb +dvd
75 +dvdnav +enca ftp gif +iconv ipv6 jack joystick jpeg ladspa lcms +libass libcaca
76 lirc md5sum mng +mp3 +network +opengl oss png pnm portaudio +postproc pulseaudio
77 pvr +quvi radio samba selinux +shm tga +threads +unicode v4l vcd vdpau +X xinerama
78 +xscreensaver +xv yuv4mpeg"
79 IUSE+=" symlink"
80
81 CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext sse sse2 ssse3"
82 for x in ${CPU_FEATURES}; do
83 IUSE+=" ${x}"
84 done
85
86 REQUIRED_USE="
87 cddb? ( cdio network )
88 dvdnav? ( dvd )
89 enca? ( iconv )
90 lcms? ( opengl )
91 libass? ( iconv )
92 opengl? ( || ( aqua X ) )
93 portaudio? ( threads )
94 pvr? ( v4l )
95 radio? ( v4l || ( alsa oss ) )
96 v4l? ( threads )
97 vdpau? ( X )
98 xinerama? ( X )
99 xscreensaver? ( X )
100 xv? ( X )
101 "
102
103 RDEPEND+="
104 sys-libs/ncurses
105 sys-libs/zlib
106 X? (
107 x11-libs/libXext
108 x11-libs/libXxf86vm
109 opengl? ( virtual/opengl )
110 lcms? ( media-libs/lcms:2 )
111 vdpau? ( x11-libs/libvdpau )
112 xinerama? ( x11-libs/libXinerama )
113 xscreensaver? ( x11-libs/libXScrnSaver )
114 xv? ( x11-libs/libXv )
115 )
116 alsa? ( media-libs/alsa-lib )
117 bluray? ( media-libs/libbluray )
118 bs2b? ( media-libs/libbs2b )
119 cdio? (
120 || (
121 dev-libs/libcdio-paranoia
122 <dev-libs/libcdio-0.90[-minimal]
123 )
124 )
125 directfb? ( dev-libs/DirectFB )
126 dvb? ( virtual/linuxtv-dvb-headers )
127 dvd? (
128 >=media-libs/libdvdread-4.1.3
129 dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
130 )
131 enca? ( app-i18n/enca )
132 gif? ( media-libs/giflib )
133 iconv? ( virtual/libiconv )
134 jack? ( media-sound/jack-audio-connection-kit )
135 jpeg? ( virtual/jpeg )
136 ladspa? ( media-libs/ladspa-sdk )
137 libass? (
138 >=media-libs/libass-0.9.10[enca?,fontconfig]
139 virtual/ttf-fonts
140 )
141 libcaca? ( media-libs/libcaca )
142 lirc? ( app-misc/lirc )
143 mng? ( media-libs/libmng )
144 mp3? ( media-sound/mpg123 )
145 png? ( media-libs/libpng )
146 pnm? ( media-libs/netpbm )
147 portaudio? ( >=media-libs/portaudio-19_pre20111121 )
148 postproc? (
149 || (
150 media-libs/libpostproc
151 media-video/ffmpeg:0
152 )
153 )
154 pulseaudio? ( media-sound/pulseaudio )
155 quvi? ( >=media-libs/libquvi-0.4.1 <media-libs/libquvi-0.9 )
156 samba? ( net-fs/samba )
157 selinux? ( sec-policy/selinux-mplayer )
158 >=virtual/ffmpeg-9[threads?,vdpau?]
159 symlink? ( !media-video/mplayer )
160 "
161 DEPEND="${RDEPEND}
162 virtual/pkgconfig
163 ${PYTHON_DEPS}
164 dev-python/docutils
165 X? (
166 x11-proto/videoproto
167 x11-proto/xf86vidmodeproto
168 xinerama? ( x11-proto/xineramaproto )
169 xscreensaver? ( x11-proto/scrnsaverproto )
170 )
171 doc? (
172 dev-libs/libxslt
173 app-text/docbook-xml-dtd
174 app-text/docbook-xsl-stylesheets
175 )
176 "
177 DOCS=( AUTHORS Copyright README etc/example.conf etc/input.conf etc/codecs.conf )
178
179 pkg_setup() {
180 if [[ ${PV} == *9999* ]]; then
181 elog
182 elog "This is a live ebuild which installs the latest from upstream's"
183 elog "git repository, and is unsupported by Gentoo."
184 elog "Everything but bugs in the ebuild itself will be ignored."
185 elog
186 fi
187
188 if use !libass; then
189 ewarn
190 ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
191 fi
192
193 if use cpudetection; then
194 ewarn
195 ewarn "You've enabled the cpudetection flag. This feature is"
196 ewarn "included mainly for people who want to use the same"
197 ewarn "binary on another system with a different CPU architecture."
198 ewarn "MPlayer will already detect your CPU settings by default at"
199 ewarn "buildtime; this flag is used for runtime detection."
200 ewarn "You won't need this turned on if you are only building"
201 ewarn "mplayer for this system. Also, if your compile fails, try"
202 ewarn "disabling this use flag."
203 fi
204
205 einfo "For various format support you need to enable the support on your ffmpeg package:"
206 einfo " media-video/libav or media-video/ffmpeg"
207
208 python-any-r1_pkg_setup
209 }
210
211 src_prepare() {
212 epatch "${FILESDIR}/${PN}-py2compat.patch"
213 epatch_user
214
215 # fix path to bash executable in configure scripts
216 sed -i -e "1c\#!${EPREFIX}/bin/bash" \
217 configure version.sh || die
218
219 sed -e 's/ $(INSTALLSTRIP)//' \
220 -e '/$(INSTALL) -d $(LIBDIR)/d' \
221 -i Makefile || die
222
223 if [[ -n ${NAMESUF} ]]; then
224 sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
225 -i configure || die
226 sed -e "s/mplayer/${PN}/" \
227 -i TOOLS/midentify.sh || die
228 fi
229 }
230
231 src_configure() {
232 local myconf=""
233 local uses i
234
235 # ebuild uses "use foo || --disable-foo" to forcibly disable
236 # compilation in almost every situation. The reason for this is
237 # because if --enable is used, it will force the build of that option,
238 # regardless of whether the dependency is available or not.
239
240 #####################
241 # Optional features #
242 #####################
243 # rtc is useless and /dev/rtc0 is only readable for root
244 myconf+=" --disable-rtc"
245 # SDL output is fallback for platforms where nothing better is available
246 myconf+=" --disable-sdl"
247 myconf+="
248 $(use_enable network networking)
249 $(use_enable joystick)
250 "
251 uses="bluray ftp vcd"
252 for i in ${uses}; do
253 use ${i} || myconf+=" --disable-${i}"
254 done
255 use ipv6 || myconf+=" --disable-inet6"
256 use quvi || myconf+=" --disable-libquvi"
257 use samba || myconf+=" --disable-smb"
258 use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir"
259
260 ########
261 # CDDA #
262 ########
263 use cddb || myconf+=" --disable-cddb"
264 use cdio || myconf+=" --disable-libcdio"
265
266 ################################
267 # DVD read, navigation support #
268 ################################
269 #
270 # dvdread - accessing a DVD
271 # dvdnav - navigation of menus
272 #
273 # use external libdvdcss, dvdread and dvdnav
274 myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
275 use dvd || myconf+=" --disable-dvdread"
276 use dvdnav || myconf+=" --disable-dvdnav"
277
278 #############
279 # Subtitles #
280 #############
281 uses="enca libass"
282 for i in ${uses}; do
283 use ${i} || myconf+=" --disable-${i}"
284 done
285 # iconv optionally can use unicode
286 use iconv || myconf+=" --disable-iconv --charset=noconv"
287 use iconv && use unicode && myconf+=" --charset=UTF-8"
288 # obscure and not maintained feature
289 myconf+=" --disable-unrarexec"
290
291 #####################################
292 # DVB / Video4Linux / Radio support #
293 #####################################
294 # BSD legacy TV/radio support, FreeBSD actually supports V4L2, and V4L2 supports this chip.
295 myconf+=" --disable-tv-bsdbt848 --disable-radio-bsdbt848"
296 use dvb || myconf+=" --disable-dvb"
297 use pvr || myconf+=" --disable-pvr"
298 use v4l || myconf+=" --disable-tv --disable-tv-v4l2 --disable-v4l2"
299 if use radio; then
300 myconf+=" --enable-radio --enable-radio-capture"
301 else
302 myconf+=" --disable-radio-v4l2"
303 fi
304
305 ##########
306 # Codecs #
307 ##########
308 # better demuxers and decoders are provided by libav and ffmpeg
309 uses="faad liba52 libdca libdv libnut libvorbis mad musepack speex theora tremor xanim xvid"
310 for i in ${uses}; do
311 myconf+=" --disable-${i}"
312 done
313 use mp3 || myconf+=" --disable-mpg123"
314 uses="gif jpeg mng png pnm tga"
315 for i in ${uses}; do
316 use ${i} || myconf+=" --disable-${i}"
317 done
318
319 #################
320 # Binary codecs #
321 #################
322 myconf+=" --disable-qtx --disable-real --disable-win32dll"
323
324 ################
325 # Video Output #
326 ################
327 uses="directfb md5sum yuv4mpeg"
328 for i in ${uses}; do
329 use ${i} || myconf+=" --disable-${i}"
330 done
331 use libcaca || myconf+=" --disable-caca"
332 use postproc || myconf+=" --disable-libpostproc"
333
334 ################
335 # Audio Output #
336 ################
337 myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
338 uses="alsa jack ladspa portaudio"
339 for i in ${uses}; do
340 use ${i} || myconf+=" --disable-${i}"
341 done
342 use bs2b || myconf+=" --disable-libbs2b"
343 #use openal && myconf+=" --enable-openal" # build fails
344 use oss || myconf+=" --disable-ossaudio"
345 use pulseaudio || myconf+=" --disable-pulse"
346
347 ####################
348 # Advanced Options #
349 ####################
350 use threads || myconf+=" --disable-pthreads"
351
352 # Platform specific flags, hardcoded on amd64 (see below)
353 use cpudetection && myconf+=" --enable-runtime-cpudetection"
354 use shm || myconf+=" --disable-shm"
355
356 for i in ${CPU_FEATURES//+/}; do
357 myconf+=" $(use_enable ${i})"
358 done
359
360 use debug && myconf+=" --enable-debug=3"
361
362 if use x86 && gcc-specs-pie; then
363 filter-flags -fPIC -fPIE
364 append-ldflags -nopie
365 fi
366
367 ###########################
368 # X enabled configuration #
369 ###########################
370 use X || myconf+=" --disable-x11"
371 uses="vdpau xinerama xv"
372 for i in ${uses}; do
373 use ${i} || myconf+=" --disable-${i}"
374 done
375 use opengl || myconf+=" --disable-gl"
376 use lcms || myconf+=" --disable-lcms2"
377 use xscreensaver || myconf+=" --disable-xss"
378
379 ############################
380 # OSX (aqua) configuration #
381 ############################
382 use aqua && myconf+=" --enable-macosx-bundle --enable-macosx-finder"
383
384 CFLAGS= LDFLAGS= ./configure \
385 --cc="$(tc-getCC)" \
386 --extra-cflags="${CFLAGS}" \
387 --extra-ldflags="${LDFLAGS}" \
388 --pkg-config="$(tc-getPKG_CONFIG)" \
389 --prefix="${EPREFIX}"/usr \
390 --bindir="${EPREFIX}"/usr/bin \
391 --confdir="${EPREFIX}"/etc/${PN} \
392 --mandir="${EPREFIX}"/usr/share/man \
393 --localedir="${EPREFIX}"/usr/share/locale \
394 ${myconf} || die
395
396 MAKEOPTS+=" V=1"
397 }
398
399 src_compile() {
400 default
401 use doc && emake -C DOCS/xml html-chunked
402 }
403
404 src_install() {
405 default
406
407 if use doc; then
408 rm -r TOOLS/osxbundle* DOCS/tech/{Doxyfile,realcodecs} || die
409 dodoc -r TOOLS DOCS/tech
410 dohtml -r DOCS/HTML/*
411 fi
412
413 newbin TOOLS/midentify.sh midentify${NAMESUF}
414
415 if [[ -n ${NAMESUF} ]]; then
416 mv "${ED}/usr/share/man/man1/mplayer.1" "${ED}/usr/share/man/man1/mplayer${NAMESUF}.1" || die
417
418 if use symlink; then
419 dosym ${PN} /usr/bin/mplayer
420 dosym midentify${NAMESUF} /usr/bin/midentify
421 fi
422 fi
423 }