contrib/vlc/Pkgfile

39 lines
1.0 KiB
Plaintext
Raw Normal View History

2010-09-01 23:14:26 +02:00
# Description: The cross-platform media player and streaming server
# URL: http://www.videolan.org/vlc/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Matt Housh, jaeger at morpheus dot net
# Depends on: libmad, ffmpeg-compat, qt4, libdvdnav, liba52, libgcrypt
2010-09-01 23:14:26 +02:00
name=vlc
2015-08-10 19:29:52 +02:00
version=2.2.1
release=2
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" \
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-httpd \
--disable-dbus \
--enable-alsa \
--disable-remoteosd \
--disable-lua
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
}