8 |
8 |
MY_PV="${PV/_/-}"
|
9 |
9 |
MY_PV="${MY_PV/-beta/-test}"
|
10 |
10 |
MY_P="${PN}-${MY_PV}"
|
11 |
|
if [[ ${PV} = *9999 ]] ; then
|
|
11 |
if [[ ${PV} = *9999* ]] ; then
|
12 |
12 |
if [[ ${PV%.9999} != ${PV} ]] ; then
|
13 |
13 |
EGIT_BRANCH="3.0.x"
|
14 |
14 |
fi
|
... | ... | |
20 |
20 |
else
|
21 |
21 |
SRC_URI="https://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
|
22 |
22 |
fi
|
23 |
|
S="${WORKDIR}/${MY_P}"
|
24 |
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv -sparc ~x86"
|
|
23 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 -sparc ~x86"
|
25 |
24 |
fi
|
|
25 |
|
26 |
26 |
inherit autotools flag-o-matic lua-single toolchain-funcs virtualx xdg
|
27 |
27 |
|
28 |
28 |
DESCRIPTION="Media player and framework with support for most multimedia files and streaming"
|
29 |
29 |
HOMEPAGE="https://www.videolan.org/vlc/"
|
|
30 |
S="${WORKDIR}/${MY_P}"
|
30 |
31 |
|
31 |
32 |
LICENSE="LGPL-2.1 GPL-2"
|
32 |
|
SLOT="0/5-9" # vlc - vlccore
|
|
33 |
SLOT="0/12-9" # vlc - vlccore
|
33 |
34 |
|
34 |
35 |
IUSE="a52 alsa aom archive aribsub bidi bluray cddb chromaprint chromecast dav1d dbus
|
35 |
36 |
dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth
|
36 |
|
fontconfig +gcrypt gme keyring gstreamer +gui ieee1394 jack jpeg kate
|
37 |
|
libass libcaca libnotify +libsamplerate libtar libtiger linsys lirc live lua
|
38 |
|
macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses nfs ogg
|
39 |
|
omxil optimisememory opus png projectm pulseaudio rdp run-as-root samba sdl-image
|
40 |
|
sftp shout sid skins soxr speex srt ssl svg taglib theora tremor truetype twolame
|
41 |
|
udev upnp vaapi v4l vdpau vnc vpx wayland +X x264 x265 xml zeroconf zvbi
|
42 |
|
cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse
|
|
37 |
fontconfig +gcrypt gme keyring gstreamer +gui ieee1394 jack jpeg kate kms
|
|
38 |
libass libcaca libnotify libplacebo +libsamplerate libtar libtiger linsys lirc live
|
|
39 |
loudness lua macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses
|
|
40 |
nfs ogg omxil optimisememory opus png projectm pulseaudio rdp run-as-root samba
|
|
41 |
sdl-image sftp shout sid skins soxr speex srt ssl svg taglib theora tremor truetype
|
|
42 |
twolame udev upnp vaapi v4l vdpau vnc vpx wayland +X x264 x265 xml zeroconf
|
|
43 |
zvbi cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse
|
43 |
44 |
"
|
44 |
45 |
REQUIRED_USE="
|
45 |
46 |
chromecast? ( encode )
|
... | ... | |
49 |
50 |
libtar? ( skins )
|
50 |
51 |
libtiger? ( kate )
|
51 |
52 |
lua? ( ${LUA_REQUIRED_USE} )
|
52 |
|
skins? ( archive gui truetype X xml )
|
|
53 |
skins? ( gui truetype X xml )
|
53 |
54 |
ssl? ( gcrypt )
|
54 |
55 |
vaapi? ( ffmpeg X )
|
55 |
56 |
vdpau? ( ffmpeg X )
|
56 |
57 |
"
|
57 |
58 |
BDEPEND="
|
58 |
59 |
>=sys-devel/gettext-0.19.8
|
|
60 |
sys-devel/flex
|
59 |
61 |
virtual/pkgconfig
|
60 |
62 |
lua? ( ${LUA_DEPS} )
|
61 |
63 |
amd64? ( dev-lang/yasm )
|
... | ... | |
86 |
88 |
>=dev-libs/protobuf-2.5.0:=
|
87 |
89 |
>=net-libs/libmicrodns-0.1.2:=
|
88 |
90 |
)
|
89 |
|
dav1d? ( media-libs/dav1d:= )
|
|
91 |
dav1d? ( >=media-libs/dav1d-0.5.0:= )
|
90 |
92 |
dbus? ( sys-apps/dbus )
|
91 |
93 |
dc1394? (
|
92 |
94 |
media-libs/libdc1394:2
|
... | ... | |
115 |
117 |
keyring? ( app-crypt/libsecret )
|
116 |
118 |
gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 )
|
117 |
119 |
gui? (
|
118 |
|
dev-qt/qtcore:5
|
119 |
|
dev-qt/qtgui:5
|
120 |
|
dev-qt/qtsvg:5
|
121 |
|
dev-qt/qtwidgets:5
|
122 |
|
X? (
|
123 |
|
dev-qt/qtx11extras:5
|
124 |
|
x11-libs/libX11
|
125 |
|
)
|
|
120 |
dev-qt/qt5compat:6[qml]
|
|
121 |
dev-qt/qtbase:6=[gui,widgets]
|
|
122 |
dev-qt/qtdeclarative:6
|
|
123 |
dev-qt/qtsvg:6
|
|
124 |
kde-frameworks/kwindowsystem:6
|
|
125 |
X? ( x11-libs/libX11 )
|
126 |
126 |
)
|
127 |
127 |
ieee1394? (
|
128 |
128 |
sys-libs/libavc1394
|
... | ... | |
131 |
131 |
jack? ( virtual/jack )
|
132 |
132 |
jpeg? ( media-libs/libjpeg-turbo:0 )
|
133 |
133 |
kate? ( media-libs/libkate )
|
|
134 |
kms? ( x11-libs/libdrm )
|
134 |
135 |
libass? (
|
135 |
136 |
media-libs/fontconfig:1.0
|
136 |
137 |
media-libs/libass:=
|
... | ... | |
139 |
140 |
libnotify? (
|
140 |
141 |
dev-libs/glib:2
|
141 |
142 |
x11-libs/gdk-pixbuf:2
|
142 |
|
x11-libs/gtk+:3
|
143 |
143 |
x11-libs/libnotify
|
144 |
144 |
)
|
|
145 |
libplacebo? ( media-libs/libplacebo:= )
|
145 |
146 |
libsamplerate? ( media-libs/libsamplerate )
|
146 |
147 |
libtar? ( dev-libs/libtar )
|
147 |
148 |
libtiger? ( media-libs/libtiger )
|
148 |
149 |
linsys? ( media-libs/zvbi )
|
149 |
150 |
lirc? ( app-misc/lirc )
|
150 |
151 |
live? ( media-plugins/live:= )
|
|
152 |
loudness? ( >=media-libs/libebur128-1.2.4:= )
|
151 |
153 |
lua? ( ${LUA_DEPS} )
|
152 |
154 |
mad? ( media-libs/libmad )
|
153 |
155 |
matroska? (
|
... | ... | |
191 |
193 |
gnome-base/librsvg:2
|
192 |
194 |
x11-libs/cairo
|
193 |
195 |
)
|
194 |
|
taglib? ( <media-libs/taglib-2 )
|
|
196 |
taglib? ( >=media-libs/taglib-1.9 )
|
195 |
197 |
theora? ( media-libs/libtheora )
|
196 |
198 |
tremor? ( media-libs/tremor )
|
197 |
199 |
truetype? (
|
... | ... | |
209 |
211 |
vpx? ( media-libs/libvpx:= )
|
210 |
212 |
wayland? (
|
211 |
213 |
>=dev-libs/wayland-1.15
|
212 |
|
dev-libs/wayland-protocols
|
|
214 |
>=dev-libs/wayland-protocols-1.12
|
213 |
215 |
)
|
214 |
216 |
X? (
|
215 |
217 |
x11-libs/libX11
|
216 |
218 |
x11-libs/libxcb
|
|
219 |
x11-libs/libXcursor
|
|
220 |
x11-libs/libxkbcommon[X]
|
217 |
221 |
x11-libs/xcb-util
|
218 |
222 |
x11-libs/xcb-util-keysyms
|
219 |
223 |
)
|
... | ... | |
228 |
232 |
"
|
229 |
233 |
|
230 |
234 |
PATCHES=(
|
231 |
|
"${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system
|
232 |
|
"${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290
|
233 |
|
"${FILESDIR}"/${PN}-3.0.11.1-configure_lua_version.patch
|
234 |
|
"${FILESDIR}"/${PN}-3.0.18-drop-minizip-dep.patch
|
235 |
|
"${FILESDIR}"/${PN}-3.0.21-freerdp-2.patch # bug 919296, 590164
|
236 |
|
"${FILESDIR}"/${PN}-3.0.21-vaapi-without-ffmepg4.patch # bug 864721, thx Fedora
|
|
235 |
"${FILESDIR}"/${PN}-9999-fix-libtremor-libs.patch # build system
|
|
236 |
"${FILESDIR}"/${PN}-9999-configure-lua-version.patch
|
237 |
237 |
)
|
238 |
238 |
|
239 |
|
DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt )
|
|
239 |
DOCS=( AUTHORS THANKS NEWS README.md doc/fortunes.txt )
|
240 |
240 |
|
241 |
241 |
pkg_setup() {
|
242 |
242 |
if use lua; then
|
... | ... | |
251 |
251 |
xdg_environment_reset
|
252 |
252 |
|
253 |
253 |
has_version 'net-libs/libupnp:1.8' && \
|
254 |
|
eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch
|
|
254 |
eapply "${FILESDIR}"/${P}-libupnp-slot-1.8.patch
|
255 |
255 |
|
256 |
256 |
# Bootstrap when we are on a git checkout.
|
257 |
257 |
if [[ ${PV} = *9999 ]] ; then
|
... | ... | |
283 |
283 |
}
|
284 |
284 |
|
285 |
285 |
src_configure() {
|
|
286 |
# bug #944778
|
|
287 |
unset LEX
|
|
288 |
|
286 |
289 |
local -x BUILDCC="$(tc-getBUILD_CC)"
|
287 |
290 |
|
288 |
291 |
local myeconfargs=(
|
289 |
|
--disable-aa
|
290 |
292 |
--disable-optimizations
|
291 |
293 |
--disable-rpath
|
292 |
294 |
--disable-update-check
|
... | ... | |
343 |
345 |
$(use_enable jack)
|
344 |
346 |
$(use_enable jpeg)
|
345 |
347 |
$(use_enable kate)
|
|
348 |
$(use_enable kms)
|
346 |
349 |
$(use_enable libass)
|
347 |
350 |
$(use_enable libcaca caca)
|
348 |
351 |
$(use_enable libnotify notify)
|
|
352 |
$(use_enable libplacebo)
|
349 |
353 |
$(use_enable libsamplerate samplerate)
|
350 |
354 |
$(use_enable libtar)
|
351 |
355 |
$(use_enable libtiger tiger)
|
352 |
356 |
$(use_enable linsys)
|
353 |
357 |
$(use_enable lirc)
|
354 |
358 |
$(use_enable live live555)
|
|
359 |
$(use_enable loudness ebur128)
|
355 |
360 |
$(use_enable lua)
|
356 |
361 |
$(use_enable macosx-notifications osx-notifications)
|
357 |
362 |
$(use_enable mad)
|
... | ... | |
365 |
370 |
$(use_enable nfs)
|
366 |
371 |
$(use_enable ogg)
|
367 |
372 |
$(use_enable omxil)
|
368 |
|
$(use_enable omxil omxil-vout)
|
369 |
373 |
$(use_enable optimisememory optimize-memory)
|
370 |
374 |
$(use_enable opus)
|
371 |
375 |
$(use_enable png)
|
... | ... | |
399 |
403 |
$(use_enable wayland)
|
400 |
404 |
$(use_with X x)
|
401 |
405 |
$(use_enable X xcb)
|
402 |
|
$(use_enable X xvideo)
|
403 |
406 |
$(use_enable x264)
|
404 |
407 |
$(use_enable x264 x26410b)
|
405 |
408 |
$(use_enable x265)
|
... | ... | |
411 |
414 |
--disable-asdcp
|
412 |
415 |
--disable-coverage
|
413 |
416 |
--disable-cprof
|
414 |
|
--disable-crystalhd
|
415 |
417 |
--disable-decklink
|
416 |
418 |
--disable-gles2
|
417 |
419 |
--disable-goom
|
418 |
420 |
--disable-kai
|
419 |
421 |
--disable-kva
|
420 |
|
--disable-libplacebo
|
421 |
422 |
--disable-maintainer-mode
|
422 |
423 |
--disable-merge-ffmpeg
|
423 |
424 |
--disable-mfx
|
... | ... | |
432 |
433 |
--disable-spatialaudio
|
433 |
434 |
--disable-vsxu
|
434 |
435 |
--disable-wasapi
|
435 |
|
--disable-wma-fixed
|
436 |
436 |
)
|
437 |
437 |
# ^ We don't have these disabled libraries in the Portage tree yet.
|
438 |
438 |
|
... | ... | |
492 |
492 |
}
|
493 |
493 |
|
494 |
494 |
pkg_postinst() {
|
495 |
|
if [[ -z "${ROOT}" ]] && [[ -x "${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then
|
496 |
|
einfo "Running ${EPREFIX}/usr/$(get_libdir)/vlc/vlc-cache-gen on ${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
497 |
|
"${EPREFIX}/usr/$(get_libdir)/vlc/vlc-cache-gen" "${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
|
495 |
if [[ -z "${ROOT}" ]] && [[ -x "${EROOT}"/usr/libexec/vlc/vlc-cache-gen ]] ; then
|
|
496 |
einfo "Running ${EPREFIX}/usr/libexec/vlc/vlc-cache-gen on ${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
|
497 |
"${EPREFIX}"/usr/libexec/vlc/vlc-cache-gen "${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
498 |
498 |
else
|
499 |
499 |
ewarn "We cannot run vlc-cache-gen (most likely ROOT != /)"
|
500 |
|
ewarn "Please run ${EPREFIX}/usr/$(get_libdir)/vlc/vlc-cache-gen manually"
|
|
500 |
ewarn "Please run ${EPREFIX}/usr/libexec/vlc/vlc-cache-gen manually"
|
501 |
501 |
ewarn "If you do not do it, vlc will take a long time to load."
|
502 |
502 |
fi
|
503 |
503 |
|