2010-09-01 23:14:26 +02:00
|
|
|
# Description: The cross-platform media player and streaming server
|
2020-01-20 15:39:34 +00:00
|
|
|
# URL: https://www.videolan.org/vlc/
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Depends on: ffmpeg liba52 libdvdnav libgcrypt libmad qt5
|
|
|
|
# Nice to have: opus libvorbis x264 libogg libmtp libtheora flac
|
2010-09-01 23:14:26 +02:00
|
|
|
|
|
|
|
name=vlc
|
2019-09-18 01:13:36 +02:00
|
|
|
version=3.0.8
|
2020-01-20 15:39:34 +00:00
|
|
|
release=2
|
|
|
|
source=(https://download.videolan.org/pub/videolan/$name/$version/$name-$version.tar.xz)
|
2010-09-01 23:14:26 +02:00
|
|
|
|
|
|
|
build() {
|
2014-10-23 22:35:48 +02:00
|
|
|
cd $name-$version
|
2011-01-23 14:24:58 +01:00
|
|
|
|
2014-10-23 22:35:48 +02:00
|
|
|
# allow building with new avcodec
|
2019-06-09 03:19:26 +02:00
|
|
|
#sed -i 's/ 56/ 57/g' configure.ac
|
2014-10-23 22:35:48 +02:00
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
# initialize avformat structure
|
2019-06-09 03:19:26 +02:00
|
|
|
#sed -i 's/AVProbeData *pd;/AVProbeData pd={};/g' modules/demux/avformat/demux.c
|
2014-10-23 22:35:48 +02:00
|
|
|
|
2019-06-09 03:19:26 +02:00
|
|
|
#PKG_CONFIG_PATH="/usr/lib/ffmpeg-compat/pkgconfig" \
|
2020-01-20 15:39:34 +00:00
|
|
|
|
|
|
|
## grabbed from arch
|
|
|
|
## https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/vlc
|
|
|
|
#export CFLAGS+=" -I/usr/include/samba-4.0"
|
|
|
|
#export CPPFLAGS+=" -I/usr/include/samba-4.0"
|
|
|
|
#export CXXFLAGS+=" -std=c++11"
|
|
|
|
#export LUAC=/usr/bin/luac
|
|
|
|
#export LUA_LIBS="$(pkg-config --libs lua)"
|
|
|
|
export RCC=/usr/bin/rcc-qt5
|
|
|
|
sed -e 's|-Werror-implicit-function-declaration||g' -i configure
|
2019-06-09 03:19:26 +02:00
|
|
|
BUILDCC="gcc -std=gnu11" \
|
2014-10-23 22:35:48 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-fribidi \
|
|
|
|
--disable-dbus \
|
2018-09-09 01:02:17 +02:00
|
|
|
--disable-lua \
|
2020-01-20 15:39:34 +00:00
|
|
|
--disable-update-check \
|
|
|
|
--disable-vdpau \
|
2018-10-08 22:07:46 +02:00
|
|
|
--enable-alsa
|
|
|
|
|
2019-06-09 03:19:26 +02:00
|
|
|
#make
|
|
|
|
V=1 ./compile
|
2014-10-23 22:35:48 +02:00
|
|
|
make DESTDIR=$PKG install
|
2011-02-02 21:35:40 +01:00
|
|
|
rm -rf $PKG/usr/share/doc
|
2014-05-13 10:38:59 +02:00
|
|
|
|
|
|
|
# fix desktop file
|
|
|
|
sed -i 's/--started-from-file//g' $PKG/usr/share/applications/vlc.desktop
|
2010-09-01 23:14:26 +02:00
|
|
|
}
|