summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2020-12-20 16:51:44 +0000
committerspz <spz@pkgsrc.org>2020-12-20 16:51:44 +0000
commit497fcadbe7ea2d8c534629cfe0afa2b56c135191 (patch)
tree951375176edf1d331f035fef6070be3184731927 /emulators
parent5c82faf610e07103b57d3ab155e1cab8d7de3a7f (diff)
downloadpkgsrc-497fcadbe7ea2d8c534629cfe0afa2b56c135191.tar.gz
qemu: don't require x11 when x11 is disabled
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index 9d8e4375027..6e8366ad38f 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.258 2020/12/15 16:50:08 maya Exp $
+# $NetBSD: Makefile,v 1.259 2020/12/20 16:51:44 spz Exp $
DISTNAME= qemu-5.1.0
PKGREVISION= 11
@@ -161,8 +161,12 @@ post-install:
# On Darwin, qemu uses Cocoa and CoreAudio
.if ${OPSYS} != "Darwin"
+.if !empty(PKG_OPTIONS:Mx11)
PLIST.keymap= yes
.include "../../x11/libxkbcommon/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-xkbcommon
+.endif
.include "../../mk/oss.buildlink3.mk"
.endif
.include "../../archivers/lzo/buildlink3.mk"