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