2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2020-present Fewtarius
PKG_NAME = "vlc"
2022-06-30 23:15:05 +00:00
PKG_VERSION = "3.0.17.3"
2022-02-05 14:23:32 +00:00
PKG_ARCH = "any"
PKG_LICENSE = "GPL"
PKG_SITE = "http://www.videolan.org"
2022-04-14 19:25:58 +00:00
PKG_URL = " https://mirror.netcologne.de/videolan.org/ $PKG_NAME / ${ PKG_VERSION } / $PKG_NAME - ${ PKG_VERSION } .tar.xz "
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET = "toolchain libdvbpsi gnutls ffmpeg libmpeg2 zlib flac libvorbis libxml2 pulseaudio SDL2 x264 x265 aom libogg"
PKG_SHORTDESC = "VideoLAN multimedia player and streamer"
PKG_LONGDESC = "VLC is the VideoLAN project's media player. It plays MPEG, MPEG2, MPEG4, DivX, MOV, WMV, QuickTime, mp3, Ogg/Vorbis files, DVDs, VCDs, and multimedia streams from various network sources."
PKG_AUTORECONF = "yes"
PKG_TOOLCHAIN = "configure"
PKG_BUILD_FLAGS = "-fpic"
ENABLED_FEATURES = " --enable-silent-rules \
--enable-run-as-root \
--enable-sout \
--enable-vlm \
--enable-v4l2 \
--enable-mpc \
--enable-avcodec \
--enable-avformat \
--enable-swscale \
--enable-postproc \
--enable-aa \
--enable-libmpeg2 \
--enable-x264 \
--enable-png \
--enable-jpeg \
--enable-libxml2 \
--enable-alsa \
--enable-udev \
2022-07-20 23:02:00 +00:00
--enable-vlc"
2022-02-05 14:23:32 +00:00
DISABLED_FEATURES = " --disable-dependency-tracking \
--without-contrib \
--disable-nls \
--disable-rpath \
--disable-dbus \
--disable-gprof \
--disable-cprof \
--disable-debug \
--disable-coverage \
--disable-lua \
--disable-notify \
--disable-taglib \
--disable-mpg123 \
--disable-live555 \
--disable-dc1394 \
--disable-dvdread \
--disable-dvdnav \
--disable-opencv \
--disable-decklink \
--disable-sftp \
--disable-vcd \
--disable-libcddb \
--disable-dvbpsi \
2022-07-01 18:56:04 +00:00
--disable-screen \
2022-02-05 14:23:32 +00:00
--disable-ogg \
--disable-shout\
--disable-mod \
--disable-gme \
--disable-wma-fixed \
--disable-shine \
--disable-omxil \
--disable-mad \
--disable-merge-ffmpeg \
--disable-faad \
--disable-flac \
--disable-twolame \
--disable-realrtsp \
--disable-libtar \
--disable-a52 \
--disable-dca \
--disable-vorbis \
--disable-tremor \
--disable-speex \
--disable-theora \
--disable-schroedinger \
--disable-fluidsynth \
--disable-zvbi \
--disable-telx \
--disable-libass \
--disable-kate \
--disable-tiger \
--disable-libva \
--disable-vdpau \
--without-x \
--disable-xcb \
--disable-xvideo \
--disable-sdl-image \
--disable-freetype \
--disable-fribidi \
--disable-fontconfig \
--disable-svg \
--disable-directx \
--disable-caca \
--disable-oss \
--disable-jack \
--disable-upnp \
--disable-skins2 \
--disable-kai \
--disable-macosx \
--disable-macosx-qtkit \
--disable-ncurses \
--disable-goom \
--disable-projectm \
2022-07-01 18:56:04 +00:00
--disable-vsxu \
2022-02-05 14:23:32 +00:00
--disable-mtp \
--disable-lirc \
--disable-libgcrypt \
2022-07-01 18:56:04 +00:00
--disable-update-check \
2022-02-05 14:23:32 +00:00
--disable-kva \
--disable-bluray \
--disable-samplerate \
--disable-sid \
--disable-crystalhd \
--disable-dxva2 \
--disable-dav1d \
--disable-qt"
2022-07-20 23:02:00 +00:00
case ${ ARCH } in
arm)
PKG_DEPENDS_TARGET += " librga ${ OPENGLES } "
ENABLED_FEATURES += " --enable-gles2 --enable-neon"
; ;
aarch64)
PKG_DEPENDS_TARGET += " librga ${ OPENGLES } "
ENABLED_FEATURES += " --enable-gles2"
; ;
*)
ENABLED_FEATURES += " ${ OPENGL } glu libglvnd "
esac
2022-02-05 14:23:32 +00:00
2022-04-14 19:25:58 +00:00
PKG_CONFIGURE_OPTS_TARGET = " ${ ENABLED_FEATURES } ${ DISABLED_FEATURES } "
2022-02-05 14:23:32 +00:00
p r e _ c o n f i g u r e _ t a r g e t ( ) {
2022-04-14 19:25:58 +00:00
export LDFLAGS = " ${ LDFLAGS } -lresolv -fopenmp -lm "
2022-02-05 14:23:32 +00:00
}
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
2022-04-14 19:25:58 +00:00
rm -fr ${ INSTALL } /usr/share/applications
rm -fr ${ INSTALL } /usr/share/icons
rm -fr ${ INSTALL } /usr/share/kde4
rm -f ${ INSTALL } /usr/bin/rvlc
rm -f ${ INSTALL } /usr/bin/vlc-wrapper
2022-02-05 14:23:32 +00:00
}