diff options
author | nia <nia@pkgsrc.org> | 2020-12-15 09:12:07 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-12-15 09:12:07 +0000 |
commit | 48e0849199baac2ff11750d6544e064f44bd57c4 (patch) | |
tree | 136a8d6dade0f2380835e89ed482a28550656915 /emulators/blastem | |
parent | 5a3669cc57eddc6d0ebb02cfd3cbe1a63a295b6a (diff) | |
download | pkgsrc-48e0849199baac2ff11750d6544e064f44bd57c4.tar.gz |
blastem: Explicitly set CPU rather than inferring from uname
Diffstat (limited to 'emulators/blastem')
-rw-r--r-- | emulators/blastem/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/emulators/blastem/Makefile b/emulators/blastem/Makefile index 03b809e973b..7092b4b0831 100644 --- a/emulators/blastem/Makefile +++ b/emulators/blastem/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2020/11/07 11:39:57 nia Exp $ +# $NetBSD: Makefile,v 1.5 2020/12/15 09:12:07 nia Exp $ DISTNAME= 8aeac7bd9fa7 PKGNAME= blastem-0.6.2 @@ -39,6 +39,14 @@ NOT_PAX_MPROTECT_SAFE+= bin/blastem # may support ARM in future ONLY_FOR_PLATFORM= *-*-x86_64 *-*-i386 +.include "../../mk/bsd.prefs.mk" + +.if ${MACHINE_ARCH} == "i386" +MAKE_FLAGS+= CPU=i686 +.elif ${MACHINE_ARCH} == "x86_64" +MAKE_FLAGS+= CPU=x86_64 +.endif + pre-configure: ${CP} ${FILESDIR}/blastem.desktop ${WRKDIR}/blastem.desktop |