contrib/vlc/Pkgfile

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-09-01 23:14:26 +02:00
# Description: The cross-platform media player and streaming server
2018-10-08 21:15:16 +02:00
# URL: http://www.videolan.org/vlc/
2010-09-01 23:14:26 +02:00
# Maintainer: Thomas Penteker, tek at serverop dot de
2018-10-08 21:15:16 +02:00
# Packager: Matt Housh, jaeger at morpheus dot net
# Depends on: libmad ffmpeg qt4 libdvdnav libgcrypt alsa-lib liba52
# Nice to have:opus libvorbis x264 libogg libmtp libtheora flac
2010-09-01 23:14:26 +02:00
name=vlc
2018-09-09 01:02:17 +02:00
version=3.0.4
2017-06-25 10:12:47 +02:00
release=1
2012-03-05 18:05:47 +01:00
source=(http://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
2014-10-23 22:35:48 +02:00
# allow building with new avcodec
sed -i 's/ 56/ 57/g' configure.ac
autoreconf -fi
# initialize avformat structure
sed -i 's/AVProbeData *pd;/AVProbeData pd={};/g' modules/demux/avformat/demux.c
PKG_CONFIG_PATH="/usr/lib/ffmpeg-compat/pkgconfig" \
2018-05-12 12:00:16 +02:00
BUILDCC="gcc -std=gnu99" \
2014-10-23 22:35:48 +02:00
./configure --prefix=/usr \
2011-02-02 21:35:40 +01:00
--mandir=/usr/man \
2014-10-23 22:35:48 +02:00
--disable-nls \
--disable-fribidi \
--disable-dbus \
2018-09-09 01:02:17 +02:00
--disable-lua \
--enable-alsa
2014-10-23 22:35:48 +02:00
make
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
}