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