vlc: do not install precompiled lua scripts when cross compiling install uncompiled version instead

Closes: #11720 [via git-merge-pr]
This commit is contained in:
newbluemoon 2018-02-18 11:06:49 +01:00 committed by Jürgen Buchmüller
parent da1ab19e6d
commit f4805d1a11

View file

@ -1,7 +1,7 @@
# Template file for 'vlc' # Template file for 'vlc'
pkgname=vlc pkgname=vlc
version=2.2.8 version=2.2.8
revision=7 revision=8
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-gme --disable-libtar --enable-jack configure_args="--disable-gme --disable-libtar --enable-jack
--disable-live555 --disable-fluidsynth --enable-dvdread --disable-live555 --disable-fluidsynth --enable-dvdread
@ -79,6 +79,14 @@ pre_build() {
# at tree-vect-data-refs.c:2567 # at tree-vect-data-refs.c:2567
sed -i 's,-O4,-O2,g' -i modules/video_filter/Makefile sed -i 's,-O4,-O2,g' -i modules/video_filter/Makefile
} }
pre_install() {
if [ -n "$CROSS_BUILD" ]; then
# install .lua files instead of precompiled .luac ones
# scripts precompiled with 64 bit host compiler wont run on 32 bit target
# same with respect to endianess
sed -i -e "s/\(@list='\$(nobase_vlclib_DATA\)/\1:.luac=.lua/" share/Makefile
fi
}
post_install() { post_install() {
# Remove unused stuff # Remove unused stuff
rm -f ${DESTDIR}/usr/lib/vlc/plugins/plugins.dat rm -f ${DESTDIR}/usr/lib/vlc/plugins/plugins.dat