Make the dependency on qemu or qemu-0 selectable via an option (defaulting

to qemu-0)
This commit is contained in:
martin 2014-01-15 19:05:34 +00:00
parent f84ed8c191
commit 6254e9031d
2 changed files with 17 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.26 2013/10/03 19:22:57 gson Exp $
# $NetBSD: Makefile,v 1.27 2014/01/15 19:05:34 martin Exp $
#
DISTNAME= anita-1.31
@ -11,12 +11,11 @@ HOMEPAGE= http://www.gson.org/netbsd/anita/
COMMENT= Automated NetBSD Installation and Test Application
LICENSE= isc
# qemu1 does not work reliably. See the anita(1) man page.
DEPENDS+= qemu>=0.12.3nb2:../../emulators/qemu0
DEPENDS+= cdrtools>=2.00.00.00:../../sysutils/cdrtools
DEPENDS+= ${PYPKGPREFIX}-pexpect>=2.1:../../devel/py-pexpect
USE_LANGUAGES= #none
.include "options.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"

15
misc/py-anita/options.mk Normal file
View file

@ -0,0 +1,15 @@
# $NetBSD: options.mk,v 1.1 2014/01/15 19:05:34 martin Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.py-anita
PKG_SUPPORTED_OPTIONS= qemu-0
PKG_SUGGESTED_OPTIONS= qemu-0
.include "../../mk/bsd.options.mk"
# qemu1 does not work reliably. See the anita(1) man page.
.if empty(PKG_OPTIONS:Mqemu-0)
DEPENDS+= qemu:../../emulators/qemu
. include "../../lang/lua/buildlink3.mk"
.else
DEPENDS+= qemu>=0.12.3nb2:../../emulators/qemu0
.endif