pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/qemu qemu: Conditionalize NVMM for NetBSD



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6e702b5f51ff
branches:  trunk
changeset: 412404:6e702b5f51ff
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Fri Mar 06 09:19:43 2020 +0000

description:
qemu: Conditionalize NVMM for NetBSD

Build NVMM support whenever there is /usr/include/nvmm.h available.

diffstat:

 emulators/qemu/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 5c88a728eeca -r 6e702b5f51ff emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Fri Mar 06 09:18:40 2020 +0000
+++ b/emulators/qemu/Makefile   Fri Mar 06 09:19:43 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.232 2020/02/07 08:39:19 kamil Exp $
+# $NetBSD: Makefile,v 1.233 2020/03/06 09:19:43 kamil Exp $
 
 DISTNAME=      qemu-4.2.0
 PKGREVISION=   9
@@ -58,6 +58,12 @@
 CONFIGURE_ARGS+=       --enable-stack-protector
 .endif
 
+.if ${OPSYS} == "NetBSD" && exists(/usr/include/nvmm.h)
+CONFIGURE_ARGS+=       --enable-nvmm
+.else
+CONFIGURE_ARGS+=       --disable-nvmm
+.endif
+
 NOT_PAX_MPROTECT_SAFE+=        bin/qemu-system-aarch64
 NOT_PAX_MPROTECT_SAFE+=        bin/qemu-system-alpha
 NOT_PAX_MPROTECT_SAFE+=        bin/qemu-system-arm



Home | Main Index | Thread Index | Old Index