vlc: fix shlib lookup on arm

fixes #46974

Co-authored-by: Mohammed Anas <triallax@tutanota.com>
This commit is contained in:
classabbyamp 2023-11-09 13:20:20 -05:00
parent 6cfd3f4ef4
commit 5b9db217fd
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5

View file

@ -63,7 +63,7 @@ case "$XBPS_TARGET_MACHINE" in
configure_args+=" --disable-altivec" configure_args+=" --disable-altivec"
build_options_default+=" opengl" build_options_default+=" opengl"
;; ;;
armv[67]*) armv[67]*|aarch64*)
# XXX only for rpi # XXX only for rpi
build_options_default+=" rpi" build_options_default+=" rpi"
;; ;;
@ -76,20 +76,12 @@ fi
if [ "$build_option_rpi" ]; then if [ "$build_option_rpi" ]; then
configure_args+=" --enable-omxil --enable-omxil-vout --enable-rpi-omxil" configure_args+=" --enable-omxil --enable-omxil-vout --enable-rpi-omxil"
makedepends+=" rpi-userland-devel" makedepends+=" rpi-userland-devel"
CFLAGS+=" -I${XBPS_CROSS_BASE}/opt/vc/include"
CFLAGS+=" -I${XBPS_CROSS_BASE}/opt/vc/include/interface/vcos"
CFLAGS+=" -I${XBPS_CROSS_BASE}/opt/vc/include/interface/vmcs_host/linux"
CFLAGS+=" -I${XBPS_CROSS_BASE}/opt/vc/include/interface/vcos/pthreads"
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib -Wl,-rpath=/opt/vc/lib -lbcm_host -lvcos -lvchiq_arm"
fi fi
pre_configure() { pre_configure() {
NOCONFIGURE=1 ./bootstrap NOCONFIGURE=1 ./bootstrap
sed -i -e 's;tar cvvzf;tar cvzf;' share/Makefile.am share/Makefile.in vsed -i -e 's;tar cvvzf;tar cvzf;' share/Makefile.am share/Makefile.in
sed 's|pl_shader_alloc(tc->pl_ctx, NULL, 0, 0);|pl_shader_alloc(tc->pl_ctx, NULL, 0);|' -i modules/video_output/opengl/vout_helper.c
} }
@ -98,7 +90,7 @@ pre_install() {
# install .lua files instead of precompiled .luac ones # install .lua files instead of precompiled .luac ones
# scripts precompiled with 64 bit host compiler wont run on 32 bit target # scripts precompiled with 64 bit host compiler wont run on 32 bit target
# same with respect to endianess # same with respect to endianess
sed -i -e "s/\(@list='\$(nobase_vlclib_DATA\)/\1:.luac=.lua/" share/Makefile vsed -i -e "s/\(@list='\$(nobase_vlclib_DATA\)/\1:.luac=.lua/" share/Makefile
fi fi
} }