pkgsrc-Changes archive

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

CVS commit: pkgsrc/misc/py-anita



Module Name:    pkgsrc
Committed By:   gdt
Date:           Thu Dec  7 17:18:58 UTC 2023

Modified Files:
        pkgsrc/misc/py-anita: options.mk

Log Message:
misc/py-anita: Add gxemul and simh options (default off)

These are just like qemu and xen: default off and depend on the
emulator package, for convenience or as documentation.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/misc/py-anita/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/py-anita/options.mk
diff -u pkgsrc/misc/py-anita/options.mk:1.13 pkgsrc/misc/py-anita/options.mk:1.14
--- pkgsrc/misc/py-anita/options.mk:1.13        Thu Dec  7 17:05:10 2023
+++ pkgsrc/misc/py-anita/options.mk     Thu Dec  7 17:18:58 2023
@@ -1,12 +1,13 @@
-# $NetBSD: options.mk,v 1.13 2023/12/07 17:05:10 gdt Exp $
+# $NetBSD: options.mk,v 1.14 2023/12/07 17:18:58 gdt Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.py-anita
-PKG_SUPPORTED_OPTIONS=         qemu xen
+PKG_SUPPORTED_OPTIONS=         gxemul qemu simh xen
 PKG_SUGGESTED_OPTIONS=
 
 # To run (but not to build), anita needs some way to run a virtual
-# machine.  The standard approach is qemu.  An alternate approach is
-# xen (when running anita on a dom0).
+# machine.  The standard approach is qemu.  An alternate approach for
+# x86 is xen (when running anita on a dom0).  Additional approaches
+# are gxemul and simh.
 
 # By default, py-anita does not depend on any of these, because a
 # hypervisor one doesn't want to use is a large burden.  While these
@@ -15,10 +16,20 @@ PKG_SUGGESTED_OPTIONS=
 
 .include "../../mk/bsd.options.mk"
 
+.if !empty(PKG_OPTIONS:Mgxemul)
+DEPENDS+=      gxemul>=0:../../emulators/gxemul
+.endif
+
 .if !empty(PKG_OPTIONS:Mqemu)
 DEPENDS+=      qemu>=3:../../emulators/qemu
 .endif
 
+# Pick open-simh as the mainstream approach, but anita does not have a
+# particular requirement.
+.if !empty(PKG_OPTIONS:Msimh)
+DEPENDS+=      open-simh>=3:../../emulators/open-simh
+.endif
+
 # Either 415 or 418 should work; we choose 418 because it's newer.
 .if !empty(PKG_OPTIONS:Mxen)
 DEPENDS+=      xenkernel418>=4.2:../../sysutils/xenkernel418



Home | Main Index | Thread Index | Old Index