mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-video/vlc: drop 4.0.0_pre20260515
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST vlc-3.0.23.tar.xz 26486988 BLAKE2B 4cf4371f244b04b87903662e2cf5d4992cad0a7ded5c6fcb22c190de5804758eff921f570bb0e803aed3e6fe3c1712b52eb3c2fbcb8017dcfe9c734238095c42 SHA512 557e4ac76a17158877a4a86f27c9a5bc189b7ac559687552117dc8b44961d1172cf93bf8e1eb70fecb05999bdfc3f69ab79b55126c71486fe3a8cdfbf92e6df6
|
||||
DIST vlc-4.0.0_pre20260515-2e5dc285.tar.gz 37364755 BLAKE2B c81c32d5e53399c5fd58dd1ea69a974f3160a44882599076cda2742107f7ded327dc71382e848edae1a78079a60935c1cf3f29032d5b33f70ffdf8d07079ca4a SHA512 5bd1d84a374bc352dbe8a10f59310553ef1e2e6580238b386c15d7b43d45e57655584b5e04d7087181a98cf3aeb6ef6213d2b02b8a15eed735c7578f21e19e27
|
||||
DIST vlc-4.0.0_pre20260625-c9b0b564.tar.gz 37638055 BLAKE2B 2b829e98440ca4b278b49bf6732d4c2c7201721e9b17dbe9172dfa1d7d696a09c268dd3884d1f5c0db318356c7c7b83cf8e4c12ead3240415c96a5d5a0dffc95 SHA512 b23534f60bae10a26187aff5d89c906e2dcaa99fe94b16e3171338090ff313612d577a60df6a8e7042af2e791732d6673257f13f940ccfd815f311f99fc357c8
|
||||
|
||||
@@ -1,534 +0,0 @@
|
||||
# Copyright 2000-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-{1..2} )
|
||||
|
||||
MY_PV="${PV/_/-}"
|
||||
MY_PV="${MY_PV/-beta/-test}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
if [[ ${PV%.9999} != ${PV} ]] ; then
|
||||
EGIT_BRANCH="${PV%.9999}.x"
|
||||
fi
|
||||
EGIT_REPO_URI="https://code.videolan.org/videolan/vlc.git"
|
||||
inherit git-r3
|
||||
else
|
||||
COMMIT=2e5dc285c093b84111ea1000bb5dd0810fa315cb
|
||||
if [[ -n ${COMMIT} ]] ; then
|
||||
SRC_URI="https://code.videolan.org/videolan/vlc/-/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT:0:8}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
else
|
||||
if [[ ${MY_P} == ${P} ]] ; then
|
||||
SRC_URI="https://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
|
||||
else
|
||||
SRC_URI="https://download.videolan.org/videolan/testing/${MY_PV}/${MY_P}.tar.xz"
|
||||
fi
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv -sparc ~x86"
|
||||
fi
|
||||
inherit autotools flag-o-matic lua-single toolchain-funcs virtualx xdg
|
||||
|
||||
DESCRIPTION="Media player and framework with support for most multimedia files and streaming"
|
||||
HOMEPAGE="https://www.videolan.org/vlc/"
|
||||
|
||||
LICENSE="LGPL-2.1 GPL-2"
|
||||
SLOT="0/12-9" # vlc - vlccore
|
||||
|
||||
IUSE="alsa aom archive aribsub bidi bluray chromaprint chromecast dav1d dbus
|
||||
dc1394 debug directx +dvbpsi dvd +encode faad fdk +ffmpeg flac fluidsynth
|
||||
fontconfig +gcrypt gme keyring gstreamer +gui ieee1394 jack jpeg kate libass
|
||||
libcaca libdrm libnotify libplacebo +libsamplerate libtiger linsys lirc live
|
||||
loudness lua mad matroska modplug mp3 mtp ncurses nfs ogg omxil
|
||||
optimisememory opus png projectm pulseaudio run-as-root samba selinux sftp shout sid
|
||||
skins soxr speex srt ssl svg taglib theora tremor truetype twolame udev upnp
|
||||
vaapi v4l vdpau vnc vpx wayland +X x264 x265 xml zeroconf zvbi
|
||||
cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_sse
|
||||
"
|
||||
REQUIRED_USE="
|
||||
chromecast? ( encode )
|
||||
directx? ( ffmpeg )
|
||||
fontconfig? ( truetype )
|
||||
libcaca? ( X )
|
||||
libtiger? ( kate )
|
||||
lua? ( ${LUA_REQUIRED_USE} )
|
||||
skins? ( gui truetype X xml )
|
||||
ssl? ( gcrypt )
|
||||
vaapi? ( ffmpeg X )
|
||||
vdpau? ( ffmpeg X )
|
||||
"
|
||||
# live+snapshots need bison+flex
|
||||
BDEPEND="
|
||||
dev-build/autoconf-archive
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
lua? ( ${LUA_DEPS} )
|
||||
amd64? ( dev-lang/yasm )
|
||||
wayland? ( >=dev-util/wayland-scanner-1.23 )
|
||||
x86? ( dev-lang/yasm )
|
||||
"
|
||||
# depends on abseil-cpp via protobuf targets
|
||||
COMMON_DEPEND="
|
||||
media-libs/libvorbis
|
||||
net-dns/libidn:=
|
||||
virtual/zlib:=
|
||||
virtual/libintl
|
||||
virtual/opengl
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
aom? ( media-libs/libaom:= )
|
||||
archive? ( app-arch/libarchive:= )
|
||||
aribsub? ( media-libs/aribb24 )
|
||||
bidi? (
|
||||
dev-libs/fribidi
|
||||
media-libs/freetype:2[harfbuzz]
|
||||
media-libs/harfbuzz:=
|
||||
virtual/ttf-fonts
|
||||
)
|
||||
bluray? ( >=media-libs/libbluray-1.3.0:= )
|
||||
chromaprint? ( media-libs/chromaprint:= )
|
||||
chromecast? (
|
||||
dev-cpp/abseil-cpp:=
|
||||
>=dev-libs/protobuf-2.5.0:=
|
||||
>=net-libs/libmicrodns-0.1.2:=
|
||||
)
|
||||
dav1d? ( >=media-libs/dav1d-0.5.0:= )
|
||||
dbus? ( sys-apps/dbus )
|
||||
dc1394? (
|
||||
media-libs/libdc1394:2
|
||||
sys-libs/libraw1394
|
||||
)
|
||||
dvbpsi? ( >=media-libs/libdvbpsi-1.2.0:= )
|
||||
dvd? (
|
||||
>=media-libs/libdvdnav-6.1.1:=
|
||||
>=media-libs/libdvdread-6.1.2:=
|
||||
)
|
||||
faad? ( media-libs/faad2 )
|
||||
fdk? ( media-libs/fdk-aac:= )
|
||||
ffmpeg? ( >=media-video/ffmpeg-3.1.3:=[vaapi?,vdpau?] )
|
||||
flac? (
|
||||
media-libs/flac:=
|
||||
media-libs/libogg
|
||||
)
|
||||
fluidsynth? ( media-sound/fluidsynth:= )
|
||||
fontconfig? ( media-libs/fontconfig:1.0 )
|
||||
gcrypt? (
|
||||
dev-libs/libgcrypt:=
|
||||
dev-libs/libgpg-error
|
||||
)
|
||||
gme? ( media-libs/game-music-emu )
|
||||
keyring? ( app-crypt/libsecret )
|
||||
gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 )
|
||||
gui? (
|
||||
dev-qt/qt5compat:6[qml]
|
||||
dev-qt/qtbase:6=[gui,opengl,widgets]
|
||||
dev-qt/qtdeclarative:6
|
||||
dev-qt/qtsvg:6
|
||||
kde-frameworks/kwindowsystem:6
|
||||
X? (
|
||||
dev-qt/qtbase:6[X]
|
||||
x11-libs/libX11
|
||||
)
|
||||
)
|
||||
ieee1394? (
|
||||
sys-libs/libavc1394
|
||||
sys-libs/libraw1394
|
||||
)
|
||||
jack? ( virtual/jack )
|
||||
jpeg? ( media-libs/libjpeg-turbo:0 )
|
||||
kate? ( media-libs/libkate )
|
||||
libass? (
|
||||
media-libs/fontconfig:1.0
|
||||
media-libs/libass:=
|
||||
)
|
||||
libcaca? ( media-libs/libcaca )
|
||||
libdrm? ( x11-libs/libdrm )
|
||||
libnotify? (
|
||||
dev-libs/glib:2
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/libnotify
|
||||
)
|
||||
libplacebo? ( media-libs/libplacebo:= )
|
||||
libsamplerate? ( media-libs/libsamplerate )
|
||||
libtiger? ( media-libs/libtiger )
|
||||
linsys? ( media-libs/zvbi )
|
||||
lirc? ( app-misc/lirc )
|
||||
live? ( media-plugins/live:= )
|
||||
loudness? ( >=media-libs/libebur128-1.2.4:= )
|
||||
lua? ( ${LUA_DEPS} )
|
||||
mad? ( media-libs/libmad )
|
||||
matroska? (
|
||||
>=dev-libs/libebml-1.4.2:=
|
||||
media-libs/libmatroska:=
|
||||
)
|
||||
modplug? ( >=media-libs/libmodplug-0.8.9.0 )
|
||||
mp3? ( media-sound/mpg123-base )
|
||||
mtp? ( media-libs/libmtp:= )
|
||||
ncurses? ( sys-libs/ncurses:=[unicode(+)] )
|
||||
nfs? ( >=net-fs/libnfs-0.10.0:= )
|
||||
ogg? ( media-libs/libogg )
|
||||
opus? ( >=media-libs/opus-1.0.3 )
|
||||
png? ( media-libs/libpng:0= )
|
||||
projectm? (
|
||||
media-fonts/dejavu
|
||||
>=media-libs/libprojectm-3.1.12:0=
|
||||
)
|
||||
pulseaudio? ( media-libs/libpulse )
|
||||
samba? ( >=net-fs/samba-4.0.0:0[client,-debug(-)] )
|
||||
sftp? ( net-libs/libssh2 )
|
||||
shout? ( media-libs/libshout )
|
||||
sid? ( media-libs/libsidplay:2 )
|
||||
skins? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXpm
|
||||
)
|
||||
soxr? ( >=media-libs/soxr-0.1.2 )
|
||||
speex? (
|
||||
>=media-libs/speex-1.2.0
|
||||
media-libs/speexdsp
|
||||
)
|
||||
srt? ( >=net-libs/srt-1.4.2:= )
|
||||
ssl? ( net-libs/gnutls:= )
|
||||
svg? (
|
||||
gnome-base/librsvg:2
|
||||
x11-libs/cairo
|
||||
)
|
||||
taglib? ( media-libs/taglib:= )
|
||||
theora? ( media-libs/libtheora:= )
|
||||
tremor? ( media-libs/tremor )
|
||||
truetype? (
|
||||
media-libs/freetype:2
|
||||
virtual/ttf-fonts
|
||||
!fontconfig? ( media-fonts/dejavu )
|
||||
)
|
||||
twolame? ( media-sound/twolame )
|
||||
udev? ( virtual/udev )
|
||||
upnp? ( net-libs/libupnp:=[ipv6(+)] )
|
||||
v4l? ( media-libs/libv4l:= )
|
||||
vaapi? ( media-libs/libva:=[drm(+),wayland?,X?] )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
vnc? ( net-libs/libvncserver )
|
||||
vpx? ( media-libs/libvpx:= )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15
|
||||
>=dev-libs/wayland-protocols-1.33
|
||||
)
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libxkbcommon[X]
|
||||
x11-libs/xcb-util
|
||||
x11-libs/xcb-util-keysyms
|
||||
)
|
||||
x264? ( >=media-libs/x264-0.0.20190214:= )
|
||||
x265? ( media-libs/x265:= )
|
||||
xml? ( dev-libs/libxml2:2= )
|
||||
zeroconf? ( net-dns/avahi[dbus] )
|
||||
zvbi? ( media-libs/zvbi )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
X? ( x11-base/xorg-proto )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
gui? ( kde-frameworks/qqc2-desktop-style:6 )
|
||||
selinux? ( sec-policy/selinux-mplayer )
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS THANKS NEWS README.md doc/fortunes.txt )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.0.0_pre20260320-gettext-version.patch # bug 766549
|
||||
"${FILESDIR}"/${PN}-4.0.0_pre20260320-no-vlc-cache-gen.patch # bugs 564842, 608256
|
||||
"${FILESDIR}"/${PN}-4.0.0_pre20260418-fix-libtremor-libs.patch # build system
|
||||
"${FILESDIR}"/${PN}-4.0.0_pre20260320-configure-lua-version.patch
|
||||
"${FILESDIR}"/${PN}-4.0.0_pre20260215-force-x11.patch # crashes w/ wayland platform plugin
|
||||
"${FILESDIR}"/${P}-no-libprojectm4.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if use lua; then
|
||||
lua-single_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# bug 608256
|
||||
xdg_environment_reset
|
||||
|
||||
# Bootstrap when we are on a git checkout.
|
||||
if [[ ${PV} == *9999* || ${PV} == *_p[0-9]* || ${PV} == *_pre[0-9]* ]] ; then
|
||||
./bootstrap
|
||||
fi
|
||||
|
||||
# Make it build with libtool 1.5
|
||||
rm m4/lt* m4/libtool.m4 || die
|
||||
|
||||
# We are not in a real git checkout due to the absence of a .git directory.
|
||||
touch src/revision.txt || die
|
||||
|
||||
# Don't use --started-from-file when not using dbus.
|
||||
if ! use dbus ; then
|
||||
sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
|
||||
fi
|
||||
|
||||
# old bundled version
|
||||
# so we need to call AX_CXX_COMPILE_STDCXX directly
|
||||
rm \
|
||||
m4/ax_cxx_compile_stdcxx.m4 \
|
||||
m4/ax_cxx_compile_stdcxx_17.m4 \
|
||||
|| die
|
||||
local CXXSTD="17"
|
||||
if has_version ">=dev-cpp/abseil-cpp-20260107.0"; then
|
||||
# needs >=c++20
|
||||
CXXSTD="20"
|
||||
fi
|
||||
sed -i -e "/AX_CXX_COMPILE_STDCXX/{s/_17(/(${CXXSTD}, /}" configure.ac || die
|
||||
|
||||
if use kernel_linux ; then
|
||||
if tc-is-gcc ; then
|
||||
export QMAKESPEC="linux-g++"
|
||||
elif tc-is-clang; then
|
||||
export QMAKESPEC="linux-clang"
|
||||
fi
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# live+snapshots need bison+flex
|
||||
unset LEX YACC
|
||||
|
||||
local -x BUILDCC="$(tc-getBUILD_CC)"
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-amf-frc # DirectX specific
|
||||
--disable-freerdp # bug 921096
|
||||
--disable-optimizations
|
||||
--disable-postproc # bug 961436
|
||||
--disable-rpath
|
||||
--disable-update-check
|
||||
--enable-fast-install
|
||||
--enable-screen
|
||||
--enable-vcd
|
||||
--enable-vlc
|
||||
--enable-vorbis
|
||||
$(use_enable alsa)
|
||||
$(use_enable aom)
|
||||
$(use_enable archive)
|
||||
$(use_enable aribsub)
|
||||
$(use_enable bidi fribidi)
|
||||
$(use_enable bidi harfbuzz)
|
||||
$(use_enable bluray)
|
||||
$(use_enable chromaprint)
|
||||
$(use_enable chromecast)
|
||||
$(use_enable chromecast microdns)
|
||||
$(use_enable cpu_flags_arm_neon neon)
|
||||
$(use_enable cpu_flags_ppc_altivec altivec)
|
||||
$(use_enable cpu_flags_x86_sse sse)
|
||||
$(use_enable dav1d)
|
||||
$(use_enable dbus)
|
||||
$(use_enable dbus kwallet)
|
||||
$(use_enable dc1394)
|
||||
$(use_enable debug)
|
||||
$(use_enable directx)
|
||||
$(use_enable directx d3d11va)
|
||||
$(use_enable directx dxva2)
|
||||
$(use_enable dvbpsi)
|
||||
$(use_enable dvd dvdnav)
|
||||
$(use_enable dvd dvdread)
|
||||
$(use_enable encode sout)
|
||||
$(use_enable encode vlm)
|
||||
$(use_enable faad)
|
||||
$(use_enable fdk fdkaac)
|
||||
$(use_enable ffmpeg avcodec)
|
||||
$(use_enable ffmpeg avformat)
|
||||
$(use_enable ffmpeg swscale)
|
||||
$(use_enable flac)
|
||||
$(use_enable fluidsynth)
|
||||
$(use_enable fontconfig)
|
||||
$(use_enable gcrypt libgcrypt)
|
||||
$(use_enable gme)
|
||||
$(use_enable keyring secret)
|
||||
$(use_enable gstreamer gst-decode)
|
||||
$(use_enable gui qt)
|
||||
$(use_enable ieee1394 dv1394)
|
||||
$(use_enable jack)
|
||||
$(use_enable jpeg)
|
||||
$(use_enable kate)
|
||||
$(use_enable libdrm)
|
||||
$(use_enable libass)
|
||||
$(use_enable libcaca caca)
|
||||
$(use_enable libnotify notify)
|
||||
$(use_enable libplacebo)
|
||||
$(use_enable libsamplerate samplerate)
|
||||
$(use_enable libtiger tiger)
|
||||
$(use_enable linsys)
|
||||
$(use_enable lirc)
|
||||
$(use_enable live live555)
|
||||
$(use_enable loudness ebur128)
|
||||
$(use_enable lua)
|
||||
$(use_enable mad)
|
||||
$(use_enable matroska)
|
||||
$(use_enable modplug mod)
|
||||
$(use_enable mp3 mpg123)
|
||||
$(use_enable mtp)
|
||||
$(use_enable ncurses)
|
||||
$(use_enable nfs)
|
||||
$(use_enable ogg)
|
||||
$(use_enable omxil)
|
||||
$(use_enable optimisememory optimize-memory)
|
||||
$(use_enable opus)
|
||||
$(use_enable png)
|
||||
$(use_enable projectm)
|
||||
$(use_enable pulseaudio pulse)
|
||||
$(use_enable run-as-root)
|
||||
$(use_enable samba smbclient)
|
||||
$(use_enable sftp)
|
||||
$(use_enable shout)
|
||||
$(use_enable sid)
|
||||
$(use_enable skins skins2)
|
||||
$(use_enable soxr)
|
||||
$(use_enable speex)
|
||||
$(use_enable srt)
|
||||
$(use_enable ssl gnutls)
|
||||
$(use_enable svg)
|
||||
$(use_enable svg svgdec)
|
||||
$(use_enable taglib)
|
||||
$(use_enable theora)
|
||||
$(use_enable tremor)
|
||||
$(use_enable twolame)
|
||||
$(use_enable udev)
|
||||
$(use_enable upnp)
|
||||
$(use_enable v4l v4l2)
|
||||
$(use_enable vaapi libva)
|
||||
$(use_enable vdpau)
|
||||
$(use_enable vnc)
|
||||
$(use_enable vpx)
|
||||
$(use_enable wayland)
|
||||
$(use_with X x)
|
||||
$(use_enable X xcb)
|
||||
$(use_enable x264)
|
||||
$(use_enable x264 x26410b)
|
||||
$(use_enable x265)
|
||||
$(use_enable xml libxml2)
|
||||
$(use_enable zeroconf avahi)
|
||||
$(use_enable zvbi)
|
||||
$(use_enable !zvbi telx)
|
||||
--with-kde-solid="${EPREFIX}"/usr/share/solid/actions
|
||||
--disable-asdcp
|
||||
--disable-coverage
|
||||
--disable-cprof
|
||||
--disable-decklink
|
||||
--disable-gles2
|
||||
--disable-goom
|
||||
--disable-kai
|
||||
--disable-kva
|
||||
--disable-maintainer-mode
|
||||
--disable-merge-ffmpeg
|
||||
--disable-vpl # TODO: packaged, only keyworded amd64
|
||||
--disable-mmal
|
||||
--disable-opencv
|
||||
--disable-opensles
|
||||
--disable-oss
|
||||
--disable-osx-notifications # MacOS only
|
||||
--disable-rpi-omxil
|
||||
--disable-shine
|
||||
--disable-sndio
|
||||
--disable-spatialaudio
|
||||
--disable-vsxu
|
||||
--disable-wasapi
|
||||
)
|
||||
# ^ We don't have these disabled libraries in the Portage tree yet.
|
||||
|
||||
# https://code.videolan.org/videolan/vlc/-/issues/17626 (bug #861143)
|
||||
append-flags -fno-strict-aliasing
|
||||
filter-lto
|
||||
|
||||
# Compatibility fix for Samba 4.
|
||||
use samba && append-cppflags "-I${ESYSROOT}/usr/include/samba-4.0"
|
||||
|
||||
if use x86; then
|
||||
# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
|
||||
append-cflags $(test-flags-CC -fno-stack-check)
|
||||
# Bug 569774
|
||||
replace-flags -Os -O2
|
||||
fi
|
||||
|
||||
# FIXME: Needs libresid-builder from libsidplay:2 which is in another directory...
|
||||
append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/sidplay/builders/"
|
||||
|
||||
if use riscv; then
|
||||
# bug #803473
|
||||
append-libs -latomic
|
||||
fi
|
||||
|
||||
if use truetype || use bidi; then
|
||||
myeconfargs+=( --enable-freetype )
|
||||
else
|
||||
myeconfargs+=( --disable-freetype )
|
||||
fi
|
||||
|
||||
if use truetype || use projectm; then
|
||||
local dejavu="${EPREFIX}/usr/share/fonts/dejavu/"
|
||||
myeconfargs+=(
|
||||
--with-default-font=${dejavu}/DejaVuSans.ttf
|
||||
--with-default-font-family=Sans
|
||||
--with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
|
||||
--with-default-monospace-font-family=Monospace
|
||||
)
|
||||
fi
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
|
||||
# _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo.
|
||||
# Other values may break the build (bug 523144), so definition should not be removed.
|
||||
# To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the start of config.h
|
||||
sed -i '1i#undef _FORTIFY_SOURCE' config.h || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx emake check-TESTS
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
if ! use gui; then
|
||||
rm "${ED}"/usr/share/applications/*desktop || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${ROOT}" ]] && [[ -x "${EROOT}"/usr/libexec/vlc/vlc-cache-gen ]] ; then
|
||||
einfo "Running ${EPREFIX}/usr/libexec/vlc/vlc-cache-gen on ${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
||||
"${EPREFIX}"/usr/libexec/vlc/vlc-cache-gen "${EROOT}/usr/$(get_libdir)/vlc/plugins/"
|
||||
else
|
||||
ewarn "We cannot run vlc-cache-gen (most likely ROOT != /)"
|
||||
ewarn "Please run ${EPREFIX}/usr/libexec/vlc/vlc-cache-gen manually"
|
||||
ewarn "If you do not do it, vlc will take a long time to load."
|
||||
fi
|
||||
|
||||
if use gui; then
|
||||
ewarn "Starting VLC GUI is only supported by using its desktop file."
|
||||
ewarn "Manually calling vlc from command line is known to break in Wayland sessions."
|
||||
|
||||
xdg_pkg_postinst
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if [[ -e "${EROOT}"/usr/$(get_libdir)/vlc/plugins/plugins.dat ]]; then
|
||||
rm "${EROOT}"/usr/$(get_libdir)/vlc/plugins/plugins.dat || die "Failed to rm plugins.dat"
|
||||
fi
|
||||
|
||||
use gui && xdg_pkg_postrm
|
||||
}
|
||||
Reference in New Issue
Block a user