summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-06-28 14:34:06 +0000
committernia <nia@pkgsrc.org>2020-06-28 14:34:06 +0000
commitd2d97e63b676a0592387f76e7b96195466b41388 (patch)
tree07cd71e25a22b31ddb45fb53d009cb8714c28696 /emulators
parent5ed89ae0675559c9315909fe65659636f26ea391 (diff)
downloadpkgsrc-d2d97e63b676a0592387f76e7b96195466b41388.tar.gz
fs-uae: Disable the JIT where unsupported, otherwise ./configure fails.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/fs-uae/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/emulators/fs-uae/Makefile b/emulators/fs-uae/Makefile
index caaded86cdb..44673f1e242 100644
--- a/emulators/fs-uae/Makefile
+++ b/emulators/fs-uae/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2020/05/23 09:12:57 adam Exp $
+# $NetBSD: Makefile,v 1.15 2020/06/28 14:34:06 nia Exp $
DISTNAME= fs-uae-3.0.5
CATEGORIES= emulators
@@ -14,7 +14,19 @@ USE_TOOLS+= msgfmt pkg-config zip
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-libmpeg2
+.include "../../mk/bsd.prefs.mk"
+
+# See the configure script for the full conditions for whether
+# the JIT is supported.
+#error JIT is only supported on x86/x86-64
+#error no JIT on OpenBSD/FreeBSD right now
+.if ${MACHINE_ARCH} != "i386" || \
+ ${MACHINE_ARCH} != "x86_64" || \
+ ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD"
+CONFIGURE_ARGS+= --disable-jit
+.else
NOT_PAX_MPROTECT_SAFE+= bin/fs-uae
+.endif
# src/debug.cpp: In function 'void debug()':
# src/debug.cpp:5361:188: error: array subscript has type 'char' [-Werror=char-subscripts]
@@ -24,7 +36,6 @@ NOT_PAX_MPROTECT_SAFE+= bin/fs-uae
# This may produce unexpected results with long process names.
BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts
-.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
#OPENAL_CFLAGS="-framework OpenAL"
.else