blob: 1fbc023be903c7b2da80f46009f5a16207b91e65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
#!/bin/sh
NAME="vlc"
DESC="A multi-platform MPEG, VCD/DVD, and DivX player"
MAKEDEPS="a52dec alsa-lib automake autoconf bison libtool dav1d dbus faad2 ffmpeg4 flac flex freetype2 gtk3 libbluray libavc1394 libcddb libdc1394 libdvbpsi libdvdnav libdvdread libgcrypt libice libmad libmatroska libmpeg2 libnotify libogg libraw1394 librsvg libshout libsm libsrt libtheora libva libvdpau libvorbis libvpx libx11 libxext libxinerama libxml2 libxpm libxv live-media lua mesa ncurses opus pkg-config qt5-qtbase qt5-qtsvg qt5-qtx11extras sdl2 speex speexdsp sysfsutils taglib eudev v4l-utils wayland-protocols x264 x265 xcb-util-renderutil xcb-util-keysyms xdg-utils gnutls pulseaudio gzip tar"
PKG_VER=3.0.17.4
SOURCE="https://download.videolan.org/vlc/$PKG_VER/vlc-$PKG_VER.tar.xz"
ADDITIONAL="
check-headless.patch
dav1d-1.0.0.patch
disable-sub-autodetect-fuzzy-1-test.patch
fribidi_allow_deprecated.patch
omxil-rpi-codecs.patch
test-s390x.patch
vlc-daemon.pre-install
vlc-libs.trigger
vlc-live-media-2021.patch
vlc.confd
vlc.initd
"
prepare() {
apply_patches
NOCONFIGURE=1 ./bootstrap
}
build() {
local _arch_opts=
export CFLAGS="$CFLAGS -D_GNU_SOURCE -fcommon"
case "$CARCH" in
arm*) _arch_opts="--enable-omxil --enable-omxil-vout --enable-rpi-omxil" ;;
esac
#LUA=lua5.2 \
#LUAC=luac5.2 \
BUILDCC="${CC:-gcc} -std=c99" \
./configure \
--prefix=/usr \
--disable-nls \
--disable-rpath \
--enable-a52 \
--enable-avcodec \
--enable-avformat \
--enable-bluray \
--enable-dav1d \
--enable-dbus \
--enable-dc1394 \
--enable-dvbpsi \
--enable-dvdread \
--enable-dvdnav \
--enable-faad \
--enable-flac \
--enable-libcddb \
--enable-libva \
--enable-live555 \
--enable-merge-ffmpeg \
--enable-ncurses \
--enable-realrtsp \
--enable-shout \
--enable-skins2 \
--enable-speex \
--enable-sout \
--enable-srt \
--enable-taglib \
--enable-theora \
--enable-v4l2 \
--enable-vdpau \
--enable-vlm \
--enable-vorbis \
--enable-wma-fixed \
--enable-x264 \
--enable-xvideo \
--enable-gnutls \
$_arch_opts
make
}
package() {
make DESTDIR="$PKG_DEST" install
# delete cache as it's autocreated by trigger
rm -rf "$PKG_DEST"/usr/lib/vlc/plugins/plugins.dat
# delete unneeded mozilla and kde support files
rm -rf "$PKG_DEST"/usr/lib/mozilla
rm -rf "$PKG_DEST"/usr/share/kde4
}
|