summaryrefslogtreecommitdiff
path: root/vlc/Pkgfile
blob: 42981e58cc61c58a1e08e413e5cd5103e478259c (plain)
    1 # Description: The cross-platform media player and streaming server
    2 # URL:         http://www.videolan.org/vlc/
    3 # Maintainer:  Thomas Penteker, tek at serverop dot de
    4 # Packager:    Matt Housh, jaeger at morpheus dot net
    5 # Depends on:  libmad ffmpeg qt4 libdvdnav libgcrypt alsa-lib liba52
    6 # Nice to have:opus libvorbis x264 libogg libmtp libtheora flac
    7 
    8 name=vlc
    9 version=3.0.4
   10 release=1
   11 source=(http://download.videolan.org/pub/videolan/$name/$version/$name-$version.tar.xz)
   12 
   13 build() {
   14   cd $name-$version
   15 
   16   # allow building with new avcodec
   17   sed -i 's/ 56/ 57/g' configure.ac
   18   autoreconf -fi
   19 
   20   # initialize avformat structure
   21   sed -i 's/AVProbeData *pd;/AVProbeData pd={};/g' modules/demux/avformat/demux.c
   22 
   23   PKG_CONFIG_PATH="/usr/lib/ffmpeg-compat/pkgconfig" \
   24   BUILDCC="gcc -std=gnu99" \
   25   ./configure --prefix=/usr \
   26     --mandir=/usr/man \
   27     --disable-nls \
   28     --disable-fribidi \
   29     --disable-dbus \
   30     --disable-lua \
   31     --enable-alsa
   32 
   33   make
   34   make DESTDIR=$PKG install
   35   rm -rf $PKG/usr/share/doc
   36 
   37   # fix desktop file
   38   sed -i 's/--started-from-file//g' $PKG/usr/share/applications/vlc.desktop
   39 }

Generated by cgit