diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template index cd6dbb58ed7..f636ba2db69 100644 --- a/srcpkgs/mame/template +++ b/srcpkgs/mame/template @@ -1,6 +1,6 @@ # Template file for 'mame' pkgname=mame -version=0228 +version=0229 revision=1 wrksrc="mame-mame${version}" hostmakedepends="pkg-config python3 qt5-host-tools tar xz which" @@ -13,7 +13,7 @@ maintainer="Jürgen Buchmüller " license="GPL-2.0-or-later" homepage="http://mamedev.org" distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz" -checksum=1d8e6f20491492f8b15892ff958f9b067c48eb90cc2fc974b08bde297e657244 +checksum=414921771ada0804a8c7f3540e33338e8495e16a3bca78a5a2b355abafa51e6a nodebug=yes replaces="sdlmame>=0 sdlmess>=0" @@ -71,21 +71,21 @@ do_configure() { grep -rlw -- -m64 | xargs sed -i "s;-m64;;" ;; esac - make ${makejobs} ${_options} \ - CC="$CC_host" \ - CXX="$CXX_host" \ - LD="$CXX_host" \ - CFLAGS="$CFLAGS_host" \ - CXXFLAGS="$CXXFLAGS_host" \ - LDFLAGS="$LDFLAGS_host" \ - genie - else - make ${makejobs} ${_options} genie + CC="$CC_host" + CXX="$CXX_host" + LD="$CXX_host" + CFLAGS="$CFLAGS_host" + CXXFLAGS="$CXXFLAGS_host" + LDFLAGS="$LDFLAGS_host" fi + make CC="$CC" CXX="$CXX" LD="$CXX" \ + CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" \ + ${makejobs} ${_options} genie } do_build() { - # The build sometimes fails due to parallelism but the 2nd try then passes. + # The build sometimes fails due to parallelism and generated files + # not being ready but the 2nd try then passes. make OVERRIDE_CC="$CC" OVERRIDE_CXX="$CXX" OVERRIDE_LD="$CXX" ${makejobs} ${_options} || \ make OVERRIDE_CC="$CC" OVERRIDE_CXX="$CXX" OVERRIDE_LD="$CXX" ${makejobs} ${_options} }