fs-uae: fix build w/ gcc10

This commit is contained in:
Jürgen Buchmüller 2020-09-05 10:13:27 +02:00
parent 2df0502cca
commit 8a40271023

View file

@ -3,7 +3,7 @@ pkgname=fs-uae
version=3.0.2
revision=1
build_style=gnu-configure
hostmakedepends="gettext pkg-config zip"
hostmakedepends="automake gettext libtool pkg-config zip"
makedepends="glew-devel libmpeg2-devel SDL2-devel MesaLib-devel freetype-devel libglib-devel libpng-devel libopenal-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="FS-UAE Amiga Emulator"
@ -20,6 +20,16 @@ case "$XBPS_TARGET_MACHINE" in
*) configure_args+=" --disable-jit" ;;
esac
CFLAGS="-Wno-error -Wno-narrowing -Wno-alloc-size-larget-than"
CXXFLAGS="${CFLAGS}"
pre_configure() {
grep -rlw -- -Werror | xargs -n1 -t -I% sed -i % -e "s;-Werror;-Wno-error;"
autoreconf -fi
cd libmpeg2
autoreconf -fi
}
post_install() {
vinstall ${FILESDIR}/fs-uae.desktop 644 usr/share/applications
}