34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
|
# Description: Media player, streamer, and encoder. It can play from many inputs
|
||
|
# URL: http://www.slackware.com/~alien/slackbuilds/vlc/
|
||
|
# Packager: pierre at nutyx dot org
|
||
|
# Depends on: libvlc qt5 x264 flac libmad glib librsvg alsa-lib xorg-libxinerama xorg-libxpm libvpx libcdio vcdimager live libdvdcss libdvdread libdvdnav libogg libtheora lame faac libvorbis ffmpeg faad2 liba52 libmpeg2 libmpcdec fribidi lua libdv speex
|
||
|
|
||
|
run=(libvlc)
|
||
|
name=vlc
|
||
|
version=2.2.1
|
||
|
release=4
|
||
|
|
||
|
source=( http://download.videolan.org/pub/videolan/vlc/$version/vlc-$version.tar.xz)
|
||
|
|
||
|
build() {
|
||
|
|
||
|
source setqt5
|
||
|
|
||
|
cd $name-$version
|
||
|
sed -i 's:libsmbclient.h:samba-4.0/&:' modules/access/smb.c
|
||
|
|
||
|
sh bootstrap
|
||
|
./configure --prefix=/usr
|
||
|
|
||
|
sed -i 's/luaL_optint/(int)&eger/' modules/lua/libs/{net,osd,volume}.c
|
||
|
sed -i 's/luaL_checkint(/(int)luaL_checkinteger(/' \
|
||
|
modules/lua/{demux,libs/{configuration,net,osd,playlist,stream,variables,volume}}.c
|
||
|
|
||
|
make
|
||
|
make DESTDIR=$PKG docdir=/usr/share/doc/$name-$version install
|
||
|
|
||
|
rm -r $PKG/usr/{include,lib/pkgconfig}
|
||
|
rm $PKG/usr/lib/libvlc*
|
||
|
rm -rf $PKG/usr/share/doc
|
||
|
}
|