From 8a40271023c89d57b8746997c3ebd712a25d57b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 5 Sep 2020 10:13:27 +0200 Subject: [PATCH] fs-uae: fix build w/ gcc10 --- srcpkgs/fs-uae/template | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/srcpkgs/fs-uae/template b/srcpkgs/fs-uae/template index 362f24f107..0f0cdfb482 100644 --- a/srcpkgs/fs-uae/template +++ b/srcpkgs/fs-uae/template @@ -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 }