From 6254e9031d39aee415d7cae7023e01be4cea41f7 Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 15 Jan 2014 19:05:34 +0000 Subject: [PATCH] Make the dependency on qemu or qemu-0 selectable via an option (defaulting to qemu-0) --- misc/py-anita/Makefile | 5 ++--- misc/py-anita/options.mk | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 misc/py-anita/options.mk diff --git a/misc/py-anita/Makefile b/misc/py-anita/Makefile index 53e30425bec4..7dd83885c6e8 100644 --- a/misc/py-anita/Makefile +++ b/misc/py-anita/Makefile @@ -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" diff --git a/misc/py-anita/options.mk b/misc/py-anita/options.mk new file mode 100644 index 000000000000..83e5c1e0ca55 --- /dev/null +++ b/misc/py-anita/options.mk @@ -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