vlc.güncellendi
This commit is contained in:
parent
054eac0823
commit
6e59e776ff
|
@ -1,30 +0,0 @@
|
||||||
commit 41caaa08cde60c4fec4bf2e5f9610e2a1b9e6a23
|
|
||||||
Author: Vinson Lee <vlee@freedesktop.org>
|
|
||||||
Date: Thu Feb 5 14:48:53 2015 -0800
|
|
||||||
|
|
||||||
lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility.
|
|
||||||
|
|
||||||
In Lua 5.3.0, luaL_checkint was deprecated.
|
|
||||||
|
|
||||||
This patch fixes this build error with Lua 5.3.0.
|
|
||||||
|
|
||||||
lua/demux.c: In function ‘vlclua_demux_peek’:
|
|
||||||
lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
|
|
||||||
int n = luaL_checkint( L, 1 );
|
|
||||||
^
|
|
||||||
|
|
||||||
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
|
|
||||||
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
|
|
||||||
|
|
||||||
diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
|
|
||||||
index efd94f1..85c7fc1 100644
|
|
||||||
--- a/modules/lua/vlc.h
|
|
||||||
+++ b/modules/lua/vlc.h
|
|
||||||
@@ -38,6 +38,7 @@
|
|
||||||
#include <vlc_stream.h>
|
|
||||||
#include <vlc_demux.h>
|
|
||||||
|
|
||||||
+#define LUA_COMPAT_APIINTCASTS
|
|
||||||
#define LUA_COMPAT_MODULE
|
|
||||||
#include <lua.h> /* Low level lua C API */
|
|
||||||
#include <lauxlib.h> /* Higher level C API */
|
|
|
@ -1,48 +1,30 @@
|
||||||
# Description: The cross-platform media player and streaming server
|
# Description: The cross-platform media player and streaming server
|
||||||
# URL: http://www.videolan.org/vlc/
|
# URL: http://www.videolan.org/vlc/
|
||||||
# Packager: milisarge@gmail.com
|
# Packager: milisarge@gmail.com
|
||||||
# Depends on: libbluray opus 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
|
# Depends on: libvlc qt5 x264 flac libmad glib dbus libidn 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
|
||||||
|
|
||||||
name=vlc
|
name=vlc
|
||||||
version=3.0.0
|
version=3.0.0
|
||||||
_version=20160704
|
release=20160606
|
||||||
release=1
|
|
||||||
|
|
||||||
source=( http://altair.videolan.org/build/source/$name-$version-${_version}-0536.tar.xz
|
source=( http://anduin.linuxfromscratch.org/BLFS/$name/$name-$version-$release.tar.xz)
|
||||||
lua53_compat.patch
|
|
||||||
update-vlc-plugin-cache.hook)
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
||||||
cd vlc-3.0.0-git
|
cd $name-$version-$release
|
||||||
|
|
||||||
RCC=/usr/bin/rcc-qt5
|
sed -i '/seems to be moved/s/^/#/' autotools/ltmain.sh
|
||||||
./bootstrap
|
|
||||||
sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
|
|
||||||
sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype/freetype.c
|
|
||||||
|
|
||||||
CXXFLAGS="$CXXFLAGS -fPIC"
|
|
||||||
|
|
||||||
BUILDCC=gcc \
|
BUILDCC=gcc \
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--disable-swscale \
|
||||||
--enable-qt \
|
--disable-lua \
|
||||||
--disable-rpath \
|
--disable-a52 \
|
||||||
--enable-faad \
|
--disable-avcodec \
|
||||||
--enable-nls \
|
RCC=/usr/bin/rcc-qt5
|
||||||
--enable-lirc \
|
|
||||||
--enable-pvr \
|
|
||||||
--enable-ncurses \
|
|
||||||
--enable-realrtsp \
|
|
||||||
--enable-xosd \
|
|
||||||
--enable-aa \
|
|
||||||
--enable-vcdx \
|
|
||||||
--enable-opus
|
|
||||||
|
|
||||||
make -i
|
|
||||||
make DESTDIR=$PKG docdir=/usr/share/doc/$name-$version install
|
|
||||||
|
|
||||||
install -Dm644 ../update-vlc-plugin-cache.hook $PKG/usr/share/libalpm/hooks/update-vlc-plugin-cache.hook
|
make
|
||||||
|
make DESTDIR=$PKG docdir=/usr/share/doc/$name-$version-release install
|
||||||
|
|
||||||
rm -rf $PKG/usr/share/doc
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[Trigger]
|
|
||||||
Type = File
|
|
||||||
Operation = Install
|
|
||||||
Operation = Upgrade
|
|
||||||
Operation = Remove
|
|
||||||
Target = usr/lib/vlc/plugins/*
|
|
||||||
|
|
||||||
[Action]
|
|
||||||
Description = Updating the vlc plugin cache...
|
|
||||||
When = PostTransaction
|
|
||||||
Exec = /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
|
|
Loading…
Reference in New Issue