pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/blastem blastem: Explicitly set CPU rather t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c5a9c766116
branches:  trunk
changeset: 443536:4c5a9c766116
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Dec 15 09:12:07 2020 +0000

description:
blastem: Explicitly set CPU rather than inferring from uname

diffstat:

 emulators/blastem/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 0a92e2f36d55 -r 4c5a9c766116 emulators/blastem/Makefile
--- a/emulators/blastem/Makefile        Tue Dec 15 09:07:59 2020 +0000
+++ b/emulators/blastem/Makefile        Tue Dec 15 09:12:07 2020 +0000
@@ -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 @@
 # 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
 



Home | Main Index | Thread Index | Old Index