2019-11-03 18:04:19 +01:00
|
|
|
# $NetBSD: options.mk,v 1.10 2019/11/03 17:04:26 rillig Exp $
|
2014-01-15 20:05:34 +01:00
|
|
|
|
2019-11-03 18:04:19 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.py-anita
|
2014-05-21 14:19:12 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= xen
|
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= qemu
|
2016-10-04 16:47:32 +02:00
|
|
|
PKG_OPTIONS_GROUP.qemu= qemu
|
2014-05-20 20:06:07 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS=
|
|
|
|
|
|
|
|
# To run (but not to build), anita needs some way to run a virtual
|
|
|
|
# machine. The standard approach is qemu-0, because it is known to
|
|
|
|
# work. Newer qemu is problematic. xen also works, but is less well
|
|
|
|
# tested. See anita(1) for details of the above.
|
|
|
|
|
|
|
|
# By default, py-anita does not depend on any of these, because a
|
|
|
|
# hypervisor one doesn't want to use is a large burden (qemu in
|
|
|
|
# particular is very large). While these options can be enabled, they
|
|
|
|
# also serve to document ways to fulfill the hypervisor requirement.
|
2014-01-15 20:05:34 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2014-05-20 20:06:07 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mqemu)
|
2014-07-22 20:18:43 +02:00
|
|
|
# Some versions of qemu1/2 do not work reliably, see the anita(1)
|
|
|
|
# man page. Version 2.0.0nb4 or newer should work.
|
2014-05-20 20:06:07 +02:00
|
|
|
DEPENDS+= qemu>=1.0:../../emulators/qemu
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mxen)
|
2017-05-28 14:48:53 +02:00
|
|
|
DEPENDS+= xenkernel42>=4.2:../../sysutils/xenkernel42
|
|
|
|
DEPENDS+= xentools42>=4.2:../../sysutils/xentools42
|
2014-05-20 20:06:07 +02:00
|
|
|
.endif
|