| 27 |
27 |
fi
|
| 28 |
28 |
S="${WORKDIR}/${MY_P}"
|
| 29 |
29 |
fi
|
| 30 |
|
KEYWORDS="amd64 ~arm arm64 ~loong ppc ppc64 ~riscv -sparc x86"
|
|
30 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv -sparc ~x86"
|
| 31 |
31 |
fi
|
| 32 |
|
inherit autotools flag-o-matic lua-single toolchain-funcs virtualx xdg
|
|
32 |
inherit autotools flag-o-matic lua-single toolchain-funcs virtualx xdg-utils
|
| 33 |
33 |
|
| 34 |
34 |
DESCRIPTION="Media player and framework with support for most multimedia files and streaming"
|
| 35 |
35 |
HOMEPAGE="https://www.videolan.org/vlc/"
|
| ... | ... | |
| 37 |
37 |
LICENSE="LGPL-2.1 GPL-2"
|
| 38 |
38 |
SLOT="0/5-9" # vlc - vlccore
|
| 39 |
39 |
|
| 40 |
|
IUSE="a52 alsa aom archive aribsub bidi bluray cddb chromaprint chromecast dav1d dbus
|
| 41 |
|
dc1394 debug directx dts +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth
|
| 42 |
|
fontconfig +gcrypt gme keyring gstreamer +gui ieee1394 jack jpeg kate
|
| 43 |
|
libass libcaca libnotify +libsamplerate libtiger linsys lirc live lua
|
| 44 |
|
macosx-notifications mad matroska modplug mp3 mpeg mtp musepack ncurses nfs ogg
|
| 45 |
|
omxil optimisememory opus png projectm pulseaudio run-as-root samba sdl-image
|
| 46 |
|
selinux sftp shout sid skins soxr speex srt ssl svg taglib theora tremor truetype twolame
|
| 47 |
|
udev upnp vaapi v4l vdpau vnc vpx wayland +X x264 x265 xml zeroconf zvbi
|
|
40 |
IUSE="alsa aom archive aribsub bidi bluray chromaprint chromecast dav1d dbus
|
|
41 |
dc1394 debug directx +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth
|
|
42 |
fontconfig +gcrypt gme keyring gstreamer ieee1394 jack jpeg kate libass
|
|
43 |
libcaca libnotify +libsamplerate libtiger linsys lirc live lua mad matroska
|
|
44 |
modplug mp3 mtp musepack ncurses nfs ogg omxil optimisememory opus png
|
|
45 |
projectm pulseaudio run-as-root samba selinux sftp shout sid soxr speex srt ssl svg
|
|
46 |
taglib theora tremor truetype twolame udev upnp vaapi v4l vdpau vnc vpx
|
|
47 |
wayland +X x264 x265 xml zeroconf zvbi
|
| 48 |
48 |
cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse
|
| 49 |
49 |
"
|
| 50 |
50 |
REQUIRED_USE="
|
| ... | ... | |
| 54 |
54 |
libcaca? ( X )
|
| 55 |
55 |
libtiger? ( kate )
|
| 56 |
56 |
lua? ( ${LUA_REQUIRED_USE} )
|
| 57 |
|
skins? ( archive gui truetype X xml )
|
| 58 |
57 |
ssl? ( gcrypt )
|
| 59 |
58 |
vaapi? ( ffmpeg X )
|
| 60 |
59 |
vdpau? ( ffmpeg X )
|
| ... | ... | |
| 78 |
77 |
virtual/zlib:=
|
| 79 |
78 |
virtual/libintl
|
| 80 |
79 |
virtual/opengl
|
| 81 |
|
a52? ( media-libs/a52dec )
|
| 82 |
80 |
alsa? ( media-libs/alsa-lib )
|
| 83 |
81 |
aom? ( media-libs/libaom:= )
|
| 84 |
82 |
archive? ( app-arch/libarchive:= )
|
| ... | ... | |
| 90 |
88 |
virtual/ttf-fonts
|
| 91 |
89 |
)
|
| 92 |
90 |
bluray? ( >=media-libs/libbluray-1.3.0:= )
|
| 93 |
|
cddb? ( media-libs/libcddb )
|
| 94 |
91 |
chromaprint? ( media-libs/chromaprint:= )
|
| 95 |
92 |
chromecast? (
|
| 96 |
93 |
dev-cpp/abseil-cpp:=
|
| ... | ... | |
| 103 |
100 |
media-libs/libdc1394:2
|
| 104 |
101 |
sys-libs/libraw1394
|
| 105 |
102 |
)
|
| 106 |
|
dts? ( media-libs/libdca )
|
| 107 |
103 |
dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= )
|
| 108 |
104 |
dvd? (
|
| 109 |
105 |
>=media-libs/libdvdnav-6.1.1:=
|
| ... | ... | |
| 125 |
121 |
gme? ( media-libs/game-music-emu )
|
| 126 |
122 |
keyring? ( app-crypt/libsecret )
|
| 127 |
123 |
gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 )
|
| 128 |
|
gui? (
|
| 129 |
|
dev-qt/qtcore:5
|
| 130 |
|
dev-qt/qtgui:5
|
| 131 |
|
dev-qt/qtsvg:5
|
| 132 |
|
dev-qt/qtwidgets:5
|
| 133 |
|
X? (
|
| 134 |
|
dev-qt/qtx11extras:5
|
| 135 |
|
x11-libs/libX11
|
| 136 |
|
)
|
| 137 |
|
)
|
| 138 |
124 |
ieee1394? (
|
| 139 |
125 |
sys-libs/libavc1394
|
| 140 |
126 |
sys-libs/libraw1394
|
| ... | ... | |
| 166 |
152 |
)
|
| 167 |
153 |
modplug? ( >=media-libs/libmodplug-0.8.9.0 )
|
| 168 |
154 |
mp3? ( media-sound/mpg123-base )
|
| 169 |
|
mpeg? ( media-libs/libmpeg2 )
|
| 170 |
155 |
mtp? ( media-libs/libmtp:= )
|
| 171 |
156 |
musepack? ( media-sound/musepack-tools )
|
| 172 |
157 |
ncurses? ( sys-libs/ncurses:=[unicode(+)] )
|
| ... | ... | |
| 180 |
165 |
)
|
| 181 |
166 |
pulseaudio? ( media-libs/libpulse )
|
| 182 |
167 |
samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] )
|
| 183 |
|
sdl-image? ( media-libs/sdl-image )
|
| 184 |
168 |
sftp? ( net-libs/libssh2 )
|
| 185 |
169 |
shout? ( media-libs/libshout )
|
| 186 |
170 |
sid? ( media-libs/libsidplay:2 )
|
| 187 |
|
skins? (
|
| 188 |
|
x11-libs/libXext
|
| 189 |
|
x11-libs/libXinerama
|
| 190 |
|
x11-libs/libXpm
|
| 191 |
|
)
|
| 192 |
171 |
soxr? ( >=media-libs/soxr-0.1.2 )
|
| 193 |
172 |
speex? (
|
| 194 |
173 |
>=media-libs/speex-1.2.0
|
| ... | ... | |
| 252 |
231 |
if use lua; then
|
| 253 |
232 |
lua-single_pkg_setup
|
| 254 |
233 |
fi
|
|
234 |
|
|
235 |
if has_version "<=media-video/vlc-3.0.9999[gui]"; then
|
|
236 |
ewarn "Warning: User interface no longer available in VLC 3.x (Qt5 is dead)."
|
|
237 |
ewarn "media-video/vlc-4 is available in ~arch with Qt6-based GUI instead."
|
|
238 |
fi
|
| 255 |
239 |
}
|
| 256 |
240 |
|
| 257 |
241 |
src_prepare() {
|
| ... | ... | |
| 305 |
289 |
--enable-vcd
|
| 306 |
290 |
--enable-vlc
|
| 307 |
291 |
--enable-vorbis
|
| 308 |
|
$(use_enable a52) # not officially supported anymore (avcodec takes priority)
|
| 309 |
292 |
$(use_enable alsa)
|
| 310 |
293 |
$(use_enable aom)
|
| 311 |
294 |
$(use_enable archive)
|
| ... | ... | |
| 313 |
296 |
$(use_enable bidi fribidi)
|
| 314 |
297 |
$(use_enable bidi harfbuzz)
|
| 315 |
298 |
$(use_enable bluray)
|
| 316 |
|
$(use_enable cddb libcddb)
|
| 317 |
299 |
$(use_enable chromaprint)
|
| 318 |
300 |
$(use_enable chromecast)
|
| 319 |
301 |
$(use_enable chromecast microdns)
|
| ... | ... | |
| 329 |
311 |
$(use_enable directx)
|
| 330 |
312 |
$(use_enable directx d3d11va)
|
| 331 |
313 |
$(use_enable directx dxva2)
|
| 332 |
|
$(use_enable dts dca) # not officially supported anymore (avcodec takes priority)
|
| 333 |
314 |
$(use_enable dvbpsi)
|
| 334 |
315 |
$(use_enable dvd dvdnav)
|
| 335 |
316 |
$(use_enable dvd dvdread)
|
| ... | ... | |
| 347 |
328 |
$(use_enable gme)
|
| 348 |
329 |
$(use_enable keyring secret)
|
| 349 |
330 |
$(use_enable gstreamer gst-decode)
|
| 350 |
|
$(use_enable gui qt)
|
| 351 |
331 |
$(use_enable ieee1394 dv1394)
|
| 352 |
332 |
$(use_enable jack)
|
| 353 |
333 |
$(use_enable jpeg)
|
| ... | ... | |
| 361 |
341 |
$(use_enable lirc)
|
| 362 |
342 |
$(use_enable live live555)
|
| 363 |
343 |
$(use_enable lua)
|
| 364 |
|
$(use_enable macosx-notifications osx-notifications)
|
| 365 |
344 |
$(use_enable mad)
|
| 366 |
345 |
$(use_enable matroska)
|
| 367 |
346 |
$(use_enable modplug mod)
|
| 368 |
347 |
$(use_enable mp3 mpg123)
|
| 369 |
|
$(use_enable mpeg libmpeg2) # not officially supported anymore (avcodec takes priority)
|
| 370 |
348 |
$(use_enable mtp)
|
| 371 |
349 |
$(use_enable musepack mpc)
|
| 372 |
350 |
$(use_enable ncurses)
|
| ... | ... | |
| 381 |
359 |
$(use_enable pulseaudio pulse)
|
| 382 |
360 |
$(use_enable run-as-root)
|
| 383 |
361 |
$(use_enable samba smbclient)
|
| 384 |
|
$(use_enable sdl-image)
|
| 385 |
362 |
$(use_enable sftp)
|
| 386 |
363 |
$(use_enable shout)
|
| 387 |
364 |
$(use_enable sid)
|
| 388 |
|
$(use_enable skins skins2)
|
| 389 |
365 |
$(use_enable soxr)
|
| 390 |
366 |
$(use_enable speex)
|
| 391 |
367 |
$(use_enable srt)
|
| ... | ... | |
| 415 |
391 |
$(use_enable zvbi)
|
| 416 |
392 |
$(use_enable !zvbi telx)
|
| 417 |
393 |
--with-kde-solid="${EPREFIX}"/usr/share/solid/actions
|
|
394 |
--disable-a52 # not officially supported anymore (avcodec takes priority)
|
| 418 |
395 |
--disable-asdcp
|
| 419 |
396 |
--disable-coverage
|
| 420 |
397 |
--disable-cprof
|
| 421 |
398 |
--disable-crystalhd
|
| 422 |
399 |
--disable-decklink
|
|
400 |
--disable-dca # not officially supported anymore (avcodec takes priority)
|
| 423 |
401 |
--disable-gles2
|
| 424 |
402 |
--disable-goom
|
| 425 |
403 |
--disable-kai
|
| 426 |
404 |
--disable-kva
|
|
405 |
--disable-libcddb # not officially supported anymore
|
|
406 |
--disable-libmpeg2 # not officially supported anymore (avcodec takes priority)
|
| 427 |
407 |
--disable-libplacebo
|
| 428 |
408 |
--disable-maintainer-mode
|
| 429 |
409 |
--disable-merge-ffmpeg
|
| ... | ... | |
| 432 |
412 |
--disable-opencv
|
| 433 |
413 |
--disable-opensles
|
| 434 |
414 |
--disable-oss
|
|
415 |
--disable-osx-notifications # MacOS only
|
|
416 |
--disable-qt # Qt5-based; bug #954006
|
| 435 |
417 |
--disable-rpi-omxil
|
| 436 |
418 |
--disable-schroedinger
|
|
419 |
--disable-sdl-image # not officially supported anymore
|
| 437 |
420 |
--disable-shine
|
|
421 |
--disable-skins2 # requires Qt5-based IUSE gui
|
| 438 |
422 |
--disable-sndio
|
| 439 |
423 |
--disable-spatialaudio
|
| 440 |
424 |
--disable-vsxu
|
| 441 |
425 |
--disable-wasapi
|
| 442 |
426 |
--disable-wma-fixed
|
| 443 |
427 |
)
|
| 444 |
|
# ^ We don't have these disabled libraries in the Portage tree yet.
|
|
428 |
# ^ We don't have these disabled libraries in the Portage tree yet/anymore.
|
| 445 |
429 |
|
| 446 |
430 |
# https://code.videolan.org/videolan/vlc/-/issues/17626 (bug #861143)
|
| 447 |
431 |
append-flags -fno-strict-aliasing
|
| ... | ... | |
| 496 |
480 |
src_install() {
|
| 497 |
481 |
default
|
| 498 |
482 |
find "${ED}" -name '*.la' -delete || die
|
|
483 |
rm "${ED}"/usr/share/applications/*desktop || die
|
| 499 |
484 |
}
|
| 500 |
485 |
|
| 501 |
486 |
pkg_postinst() {
|
| ... | ... | |
| 507 |
492 |
ewarn "Please run ${EPREFIX}/usr/$(get_libdir)/vlc/vlc-cache-gen manually"
|
| 508 |
493 |
ewarn "If you do not do it, vlc will take a long time to load."
|
| 509 |
494 |
fi
|
| 510 |
|
|
| 511 |
|
xdg_pkg_postinst
|
| 512 |
495 |
}
|
| 513 |
496 |
|
| 514 |
497 |
pkg_postrm() {
|
| 515 |
498 |
if [[ -e "${EROOT}"/usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
|
| 516 |
499 |
rm "${EROOT}"/usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
|
| 517 |
500 |
fi
|
| 518 |
|
|
| 519 |
|
xdg_pkg_postrm
|
| 520 |
501 |
}
|