Gentoo Archives: gentoo-commits

From: "Sergey Popov (pinkbyte)" <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mpv: ChangeLog mpv-0.1.4.ebuild
Date: Mon, 02 Sep 2013 08:12:04
Message-Id: 20130902081158.DCE3E2004C@flycatcher.gentoo.org
1 pinkbyte 13/09/02 08:11:58
2
3 Modified: ChangeLog
4 Added: mpv-0.1.4.ebuild
5 Log:
6 Version bump, wrt bug #481118
7
8 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
9
10 Revision Changes Path
11 1.22 media-video/mpv/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.22&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.22&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?r1=1.21&r2=1.22
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v
20 retrieving revision 1.21
21 retrieving revision 1.22
22 diff -u -r1.21 -r1.22
23 --- ChangeLog 2 Sep 2013 08:10:12 -0000 1.21
24 +++ ChangeLog 2 Sep 2013 08:11:58 -0000 1.22
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-video/mpv
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.21 2013/09/02 08:10:12 pinkbyte Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.22 2013/09/02 08:11:58 pinkbyte Exp $
30 +
31 +*mpv-0.1.4 (02 Sep 2013)
32 +
33 + 02 Sep 2013; Sergey Popov <pinkbyte@g.o> +mpv-0.1.4.ebuild:
34 + Version bump, wrt bug #481118
35
36 02 Sep 2013; Sergey Popov <pinkbyte@g.o> mpv-9999.ebuild,
37 metadata.xml:
38
39
40
41 1.1 media-video/mpv/mpv-0.1.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.1.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.1.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mpv-0.1.4.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-0.1.4.ebuild,v 1.1 2013/09/02 08:11:58 pinkbyte Exp $
51
52 EAPI=5
53
54 EGIT_REPO_URI="git://github.com/mpv-player/mpv.git"
55
56 inherit toolchain-funcs flag-o-matic multilib base
57 [[ ${PV} == *9999* ]] && inherit git-2
58
59 DESCRIPTION="Video player based on MPlayer/mplayer2"
60 HOMEPAGE="http://mpv.io/"
61 [[ ${PV} == *9999* ]] || \
62 SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
63
64 LICENSE="GPL-3"
65 SLOT="0"
66 [[ ${PV} == *9999* ]] || \
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
68 IUSE="+alsa aqua bluray bs2b +cdio dvb +dvd +enca encode +iconv jack joystick
69 jpeg ladspa lcms +libass libcaca libguess lirc mng +mp3 -openal +opengl oss
70 portaudio +postproc pulseaudio pvr +quvi radio samba +shm +threads v4l vcd
71 vdpau vf-dlopen wayland +X xinerama +xscreensaver +xv"
72
73 REQUIRED_USE="
74 enca? ( iconv )
75 lcms? ( opengl )
76 libguess? ( iconv )
77 opengl? ( || ( aqua wayland X ) )
78 portaudio? ( threads )
79 pvr? ( v4l )
80 radio? ( v4l || ( alsa oss ) )
81 v4l? ( threads )
82 vdpau? ( X )
83 wayland? ( opengl )
84 xinerama? ( X )
85 xscreensaver? ( X )
86 xv? ( X )
87 "
88
89 RDEPEND+="
90 || (
91 >=media-video/libav-9:=[encode?,threads?,vdpau?]
92 >=media-video/ffmpeg-1.2:0=[encode?,threads?,vdpau?]
93 )
94 sys-libs/ncurses
95 sys-libs/zlib
96 X? (
97 x11-libs/libXext
98 x11-libs/libXxf86vm
99 opengl? ( virtual/opengl )
100 lcms? ( media-libs/lcms:2 )
101 vdpau? ( x11-libs/libvdpau )
102 xinerama? ( x11-libs/libXinerama )
103 xscreensaver? ( x11-libs/libXScrnSaver )
104 xv? ( x11-libs/libXv )
105 )
106 alsa? ( media-libs/alsa-lib )
107 bluray? ( media-libs/libbluray )
108 bs2b? ( media-libs/libbs2b )
109 cdio? (
110 || (
111 dev-libs/libcdio-paranoia
112 <dev-libs/libcdio-0.90[-minimal]
113 )
114 )
115 dvb? ( virtual/linuxtv-dvb-headers )
116 dvd? ( >=media-libs/libdvdread-4.1.3 )
117 enca? ( app-i18n/enca )
118 iconv? ( virtual/libiconv )
119 jack? ( media-sound/jack-audio-connection-kit )
120 jpeg? ( virtual/jpeg )
121 ladspa? ( media-libs/ladspa-sdk )
122 libass? (
123 >=media-libs/libass-0.9.10[enca?,fontconfig]
124 virtual/ttf-fonts
125 )
126 libcaca? ( media-libs/libcaca )
127 libguess? ( >=app-i18n/libguess-1.0 )
128 lirc? ( app-misc/lirc )
129 mng? ( media-libs/libmng )
130 mp3? ( media-sound/mpg123 )
131 openal? ( >=media-libs/openal-1.13 )
132 portaudio? ( >=media-libs/portaudio-19_pre20111121 )
133 postproc? (
134 || (
135 media-libs/libpostproc
136 >=media-video/ffmpeg-1.2:0[encode?,threads?,vdpau?]
137 )
138 )
139 pulseaudio? ( media-sound/pulseaudio )
140 quvi? ( >=media-libs/libquvi-0.4.1:= )
141 samba? ( net-fs/samba )
142 wayland? (
143 >=dev-libs/wayland-1.0.0
144 media-libs/mesa[egl,wayland]
145 >=x11-libs/libxkbcommon-0.3.0
146 )
147 "
148 ASM_DEP="dev-lang/yasm"
149 DEPEND="${RDEPEND}
150 virtual/pkgconfig
151 >=dev-lang/perl-5.8
152 dev-python/docutils
153 X? (
154 x11-proto/videoproto
155 x11-proto/xf86vidmodeproto
156 xinerama? ( x11-proto/xineramaproto )
157 xscreensaver? ( x11-proto/scrnsaverproto )
158 )
159 amd64? ( ${ASM_DEP} )
160 x86? ( ${ASM_DEP} )
161 x86-fbsd? ( ${ASM_DEP} )
162 "
163 DOCS=( AUTHORS Copyright README.md etc/example.conf etc/input.conf etc/encoding-example-profiles.conf )
164
165 pkg_setup() {
166 if [[ ${PV} == *9999* ]]; then
167 elog
168 elog "This is a live ebuild which installs the latest from upstream's"
169 elog "git repository, and is unsupported by Gentoo."
170 elog "Everything but bugs in the ebuild itself will be ignored."
171 elog
172 fi
173
174 if use !libass; then
175 ewarn
176 ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
177 fi
178
179 if use openal; then
180 ewarn
181 ewarn "You've enabled the openal flag. OpenAL is disabled by default,"
182 ewarn "because it supposedly inteferes with some other configure tests"
183 ewarn "and makes them fail silently."
184 fi
185
186 einfo "For additional format support you need to enable the support on your"
187 einfo "libavcodec/libavformat provider:"
188 einfo " media-video/libav or media-video/ffmpeg"
189 }
190
191 src_prepare() {
192 # fix path to bash executable in configure scripts
193 sed -i -e "1c\#!${EPREFIX}/bin/bash" \
194 configure version.sh || die
195
196 base_src_prepare
197 }
198
199 src_configure() {
200 local myconf=""
201 local uses i
202
203 # ebuild uses "use foo || --disable-foo" to forcibly disable
204 # compilation in almost every situation. The reason for this is
205 # because if --enable is used, it will force the build of that option,
206 # regardless of whether the dependency is available or not.
207
208 #####################
209 # Optional features #
210 #####################
211 # SDL output is fallback for platforms where nothing better is available
212 myconf+=" --disable-sdl --disable-sdl2"
213 use encode || myconf+=" --disable-encoding"
214 myconf+=" $(use_enable joystick)"
215 uses="bluray vcd"
216 for i in ${uses}; do
217 use ${i} || myconf+=" --disable-${i}"
218 done
219 use quvi || myconf+=" --disable-libquvi4 --disable-libquvi9"
220 use samba || myconf+=" --disable-smb"
221 use lirc || myconf+=" --disable-lirc --disable-lircc"
222
223 ########
224 # CDDA #
225 ########
226 use cdio || myconf+=" --disable-libcdio"
227
228 ############
229 # DVD read #
230 ############
231 use dvd || myconf+=" --disable-dvdread"
232
233 #############
234 # Subtitles #
235 #############
236 uses="enca iconv libass libguess"
237 for i in ${uses}; do
238 use ${i} || myconf+=" --disable-${i}"
239 done
240
241 #####################################
242 # DVB / Video4Linux / Radio support #
243 #####################################
244 use dvb || myconf+=" --disable-dvb"
245 use pvr || myconf+=" --disable-pvr"
246 use v4l || myconf+=" --disable-tv --disable-tv-v4l2"
247 if use radio; then
248 myconf+=" --enable-radio --enable-radio-capture"
249 else
250 myconf+=" --disable-radio-v4l2"
251 fi
252
253 ##########
254 # Codecs #
255 ##########
256 use mp3 || myconf+=" --disable-mpg123"
257 uses="jpeg mng"
258 for i in ${uses}; do
259 use ${i} || myconf+=" --disable-${i}"
260 done
261
262 ################
263 # Video Output #
264 ################
265 use libcaca || myconf+=" --disable-caca"
266 use postproc || myconf+=" --disable-libpostproc"
267
268 ################
269 # Audio Output #
270 ################
271 myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
272 uses="alsa jack ladspa portaudio"
273 for i in ${uses}; do
274 use ${i} || myconf+=" --disable-${i}"
275 done
276 use bs2b || myconf+=" --disable-libbs2b"
277 use openal && myconf+=" --enable-openal"
278 use oss || myconf+=" --disable-ossaudio"
279 use pulseaudio || myconf+=" --disable-pulse"
280
281 ####################
282 # Advanced Options #
283 ####################
284 # keep build reproducible
285 myconf+=" --disable-build-date"
286 # do not add -g to CFLAGS
287 myconf+=" --disable-debug"
288 use threads || myconf+=" --disable-pthreads"
289
290 # Platform specific flags, hardcoded on amd64 (see below)
291 use shm || myconf+=" --disable-shm"
292
293 if use x86 && gcc-specs-pie; then
294 filter-flags -fPIC -fPIE
295 append-ldflags -nopie
296 fi
297
298 ###########################
299 # X enabled configuration #
300 ###########################
301 use X || myconf+=" --disable-x11"
302 uses="vdpau wayland xinerama xv"
303 for i in ${uses}; do
304 use ${i} || myconf+=" --disable-${i}"
305 done
306 use opengl || myconf+=" --disable-gl"
307 use lcms || myconf+=" --disable-lcms2"
308 use xscreensaver || myconf+=" --disable-xss"
309
310 ############################
311 # OSX (aqua) configuration #
312 ############################
313 use aqua && myconf+=" --enable-macosx-bundle"
314
315 CFLAGS= LDFLAGS= ./configure \
316 --cc="$(tc-getCC)" \
317 --extra-cflags="${CFLAGS}" \
318 --extra-ldflags="${LDFLAGS}" \
319 --pkg-config="$(tc-getPKG_CONFIG)" \
320 --prefix="${EPREFIX}"/usr \
321 --bindir="${EPREFIX}"/usr/bin \
322 --confdir="${EPREFIX}"/etc/${PN} \
323 --mandir="${EPREFIX}"/usr/share/man \
324 --localedir="${EPREFIX}"/usr/share/locale \
325 ${myconf} || die
326
327 MAKEOPTS+=" V=1"
328 }
329
330 src_compile() {
331 base_src_compile
332
333 if use vf-dlopen; then
334 tc-export CC
335 emake -C TOOLS/vf_dlopen
336 fi
337 }
338
339 src_install() {
340 base_src_install
341
342 if use vf-dlopen; then
343 exeinto /usr/$(get_libdir)/${PN}
344 doexe TOOLS/vf_dlopen/*.so
345 fi
346 }