| 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 )
|
| 62 |
64 |
wayland? ( dev-util/wayland-scanner )
|
| 63 |
65 |
x86? ( dev-lang/yasm )
|
| 64 |
66 |
"
|
| 65 |
|
# <media-plugins/live-2024.11.28: https://github.com/gentoo/gentoo/pull/40610#issuecomment-2664870395
|
| 66 |
67 |
RDEPEND="
|
| 67 |
68 |
media-libs/libvorbis
|
| 68 |
69 |
net-dns/libidn:=
|
| ... | ... | |
| 87 |
88 |
>=dev-libs/protobuf-2.5.0:=
|
| 88 |
89 |
>=net-libs/libmicrodns-0.1.2:=
|
| 89 |
90 |
)
|
| 90 |
|
dav1d? ( media-libs/dav1d:= )
|
|
91 |
dav1d? ( >=media-libs/dav1d-0.5.0:= )
|
| 91 |
92 |
dbus? ( sys-apps/dbus )
|
| 92 |
93 |
dc1394? (
|
| 93 |
94 |
media-libs/libdc1394:2
|
| ... | ... | |
| 116 |
117 |
keyring? ( app-crypt/libsecret )
|
| 117 |
118 |
gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 )
|
| 118 |
119 |
gui? (
|
| 119 |
|
dev-qt/qtcore:5
|
| 120 |
|
dev-qt/qtgui:5
|
| 121 |
|
dev-qt/qtsvg:5
|
| 122 |
|
dev-qt/qtwidgets:5
|
| 123 |
|
X? (
|
| 124 |
|
dev-qt/qtx11extras:5
|
| 125 |
|
x11-libs/libX11
|
| 126 |
|
)
|
|
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 )
|
| 127 |
126 |
)
|
| 128 |
127 |
ieee1394? (
|
| 129 |
128 |
sys-libs/libavc1394
|
| ... | ... | |
| 132 |
131 |
jack? ( virtual/jack )
|
| 133 |
132 |
jpeg? ( media-libs/libjpeg-turbo:0 )
|
| 134 |
133 |
kate? ( media-libs/libkate )
|
|
134 |
kms? ( x11-libs/libdrm )
|
| 135 |
135 |
libass? (
|
| 136 |
136 |
media-libs/fontconfig:1.0
|
| 137 |
137 |
media-libs/libass:=
|
| ... | ... | |
| 140 |
140 |
libnotify? (
|
| 141 |
141 |
dev-libs/glib:2
|
| 142 |
142 |
x11-libs/gdk-pixbuf:2
|
| 143 |
|
x11-libs/gtk+:3
|
| 144 |
143 |
x11-libs/libnotify
|
| 145 |
144 |
)
|
|
145 |
libplacebo? ( media-libs/libplacebo:= )
|
| 146 |
146 |
libsamplerate? ( media-libs/libsamplerate )
|
| 147 |
147 |
libtar? ( dev-libs/libtar )
|
| 148 |
148 |
libtiger? ( media-libs/libtiger )
|
| 149 |
149 |
linsys? ( media-libs/zvbi )
|
| 150 |
150 |
lirc? ( app-misc/lirc )
|
| 151 |
|
live? ( <media-plugins/live-2024.11.28:= )
|
|
151 |
live? ( media-plugins/live:= )
|
|
152 |
loudness? ( >=media-libs/libebur128-1.2.4:= )
|
| 152 |
153 |
lua? ( ${LUA_DEPS} )
|
| 153 |
154 |
mad? ( media-libs/libmad )
|
| 154 |
155 |
matroska? (
|
| ... | ... | |
| 210 |
211 |
vpx? ( media-libs/libvpx:= )
|
| 211 |
212 |
wayland? (
|
| 212 |
213 |
>=dev-libs/wayland-1.15
|
| 213 |
|
dev-libs/wayland-protocols
|
|
214 |
>=dev-libs/wayland-protocols-1.12
|
| 214 |
215 |
)
|
| 215 |
216 |
X? (
|
| 216 |
217 |
x11-libs/libX11
|
| 217 |
218 |
x11-libs/libxcb
|
|
219 |
x11-libs/libXcursor
|
|
220 |
x11-libs/libxkbcommon[X]
|
| 218 |
221 |
x11-libs/xcb-util
|
| 219 |
222 |
x11-libs/xcb-util-keysyms
|
| 220 |
223 |
)
|
| ... | ... | |
| 229 |
232 |
"
|
| 230 |
233 |
|
| 231 |
234 |
PATCHES=(
|
| 232 |
|
"${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch # build system
|
| 233 |
|
"${FILESDIR}"/${PN}-3.0.6-fdk-aac-2.0.0.patch # bug 672290
|
| 234 |
|
"${FILESDIR}"/${PN}-3.0.11.1-configure_lua_version.patch
|
| 235 |
|
"${FILESDIR}"/${PN}-3.0.18-drop-minizip-dep.patch
|
| 236 |
|
"${FILESDIR}"/${PN}-3.0.21-freerdp-2.patch # bug 919296, 590164
|
|
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-amf-frc # DirectX specific
|
| 291 |
293 |
--disable-optimizations
|
| 292 |
294 |
--disable-rpath
|
| ... | ... | |
| 344 |
346 |
$(use_enable jack)
|
| 345 |
347 |
$(use_enable jpeg)
|
| 346 |
348 |
$(use_enable kate)
|
|
349 |
$(use_enable kms)
|
| 347 |
350 |
$(use_enable libass)
|
| 348 |
351 |
$(use_enable libcaca caca)
|
| 349 |
352 |
$(use_enable libnotify notify)
|
|
353 |
$(use_enable libplacebo)
|
| 350 |
354 |
$(use_enable libsamplerate samplerate)
|
| 351 |
355 |
$(use_enable libtar)
|
| 352 |
356 |
$(use_enable libtiger tiger)
|
| 353 |
357 |
$(use_enable linsys)
|
| 354 |
358 |
$(use_enable lirc)
|
| 355 |
359 |
$(use_enable live live555)
|
|
360 |
$(use_enable loudness ebur128)
|
| 356 |
361 |
$(use_enable lua)
|
| 357 |
362 |
$(use_enable macosx-notifications osx-notifications)
|
| 358 |
363 |
$(use_enable mad)
|
| ... | ... | |
| 366 |
371 |
$(use_enable nfs)
|
| 367 |
372 |
$(use_enable ogg)
|
| 368 |
373 |
$(use_enable omxil)
|
| 369 |
|
$(use_enable omxil omxil-vout)
|
| 370 |
374 |
$(use_enable optimisememory optimize-memory)
|
| 371 |
375 |
$(use_enable opus)
|
| 372 |
376 |
$(use_enable png)
|
| ... | ... | |
| 400 |
404 |
$(use_enable wayland)
|
| 401 |
405 |
$(use_with X x)
|
| 402 |
406 |
$(use_enable X xcb)
|
| 403 |
|
$(use_enable X xvideo)
|
| 404 |
407 |
$(use_enable x264)
|
| 405 |
408 |
$(use_enable x264 x26410b)
|
| 406 |
409 |
$(use_enable x265)
|
| ... | ... | |
| 412 |
415 |
--disable-asdcp
|
| 413 |
416 |
--disable-coverage
|
| 414 |
417 |
--disable-cprof
|
| 415 |
|
--disable-crystalhd
|
| 416 |
418 |
--disable-decklink
|
| 417 |
419 |
--disable-gles2
|
| 418 |
420 |
--disable-goom
|
| 419 |
421 |
--disable-kai
|
| 420 |
422 |
--disable-kva
|
| 421 |
|
--disable-libplacebo
|
| 422 |
423 |
--disable-maintainer-mode
|
| 423 |
424 |
--disable-merge-ffmpeg
|
| 424 |
425 |
--disable-mfx
|
| ... | ... | |
| 433 |
434 |
--disable-spatialaudio
|
| 434 |
435 |
--disable-vsxu
|
| 435 |
436 |
--disable-wasapi
|
| 436 |
|
--disable-wma-fixed
|
| 437 |
437 |
)
|
| 438 |
438 |
# ^ We don't have these disabled libraries in the Portage tree yet.
|
| 439 |
439 |
|
| ... | ... | |
| 493 |
493 |
}
|
| 494 |
494 |
|
| 495 |
495 |
pkg_postinst() {
|
| 496 |
|
if [[ -z "${ROOT}" ]] && [[ -x "${EROOT}/usr/$(get_libdir)/vlc/vlc-cache-gen" ]] ; then
|
| 497 |
|
einfo "Running ${EPREFIX}/usr/$(get_libdir)/vlc/vlc-cache-gen on ${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
| 498 |
|
"${EPREFIX}/usr/$(get_libdir)/vlc/vlc-cache-gen" "${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
|
496 |
if [[ -z "${ROOT}" ]] && [[ -x "${EROOT}"/usr/libexec/vlc/vlc-cache-gen ]] ; then
|
|
497 |
einfo "Running ${EPREFIX}/usr/libexec/vlc/vlc-cache-gen on ${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
|
498 |
"${EPREFIX}"/usr/libexec/vlc/vlc-cache-gen "${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
| 499 |
499 |
else
|
| 500 |
500 |
ewarn "We cannot run vlc-cache-gen (most likely ROOT != /)"
|
| 501 |
|
ewarn "Please run ${EPREFIX}/usr/$(get_libdir)/vlc/vlc-cache-gen manually"
|
|
501 |
ewarn "Please run ${EPREFIX}/usr/libexec/vlc/vlc-cache-gen manually"
|
| 502 |
502 |
ewarn "If you do not do it, vlc will take a long time to load."
|
| 503 |
503 |
fi
|
| 504 |
504 |
|