From cb21e7fe5c294b38e4b01bc23189fd81c255d274 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 30 Mar 2016 16:50:34 +0300 Subject: [PATCH] vlc --- bin/tamir_qt4path | 1 + talimatname/genel/vlc/talimat | 51 +++++++++++++++++-------------- talimatname/genel/vlc/talimat.qt5 | 33 ++++++++++++++++++++ 3 files changed, 62 insertions(+), 23 deletions(-) create mode 100644 bin/tamir_qt4path create mode 100644 talimatname/genel/vlc/talimat.qt5 diff --git a/bin/tamir_qt4path b/bin/tamir_qt4path new file mode 100644 index 000000000..af19ab181 --- /dev/null +++ b/bin/tamir_qt4path @@ -0,0 +1 @@ +export QTDIR=/usr/lib/qt4 diff --git a/talimatname/genel/vlc/talimat b/talimatname/genel/vlc/talimat index e4a17f9c3..70a0e8eac 100644 --- a/talimatname/genel/vlc/talimat +++ b/talimatname/genel/vlc/talimat @@ -1,33 +1,38 @@ -# 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 +# Description: The cross-platform media player and streaming server +# URL: http://www.videolan.org/vlc/ +# Maintainer: Thomas Penteker, tek at serverop dot de +# Packager: milisarge@gmail.com +# Depends on: libmad, ffmpeg, qt4, libdvdnav, liba52, libgcrypt -run=(libvlc) name=vlc version=2.2.1 -release=4 +release=1 +source=(http://download.videolan.org/pub/videolan/$name/$version/$name-$version.tar.xz) -source=( http://download.videolan.org/pub/videolan/vlc/$version/vlc-$version.tar.xz) - build() { + cd $name-$version -source setqt5 + # allow building with new avcodec + sed -i 's/ 56/ 57/g' configure.ac + autoreconf -fi -cd $name-$version -sed -i 's:libsmbclient.h:samba-4.0/&:' modules/access/smb.c + # initialize avformat structure + sed -i 's/AVProbeData *pd;/AVProbeData pd={};/g' modules/demux/avformat/demux.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 + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --disable-nls \ + --disable-fribidi \ + --disable-httpd \ + --disable-dbus \ + --enable-alsa \ + --disable-remoteosd \ + --disable-lua + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/doc -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 -} + # fix desktop file + sed -i 's/--started-from-file//g' $PKG/usr/share/applications/vlc.desktop +} \ No newline at end of file diff --git a/talimatname/genel/vlc/talimat.qt5 b/talimatname/genel/vlc/talimat.qt5 new file mode 100644 index 000000000..e4a17f9c3 --- /dev/null +++ b/talimatname/genel/vlc/talimat.qt5 @@ -0,0 +1,33 @@ +# 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 +}