mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
- Fix support for BHYVE on head/amd64.
Modifying OPTIONS_DEFAULT after including bsd.port.option.mk is not valid. Just check for existence of bhyve for now instead to determine default. PR: 194531 Reported by: Conrad Meyer
This commit is contained in:
parent
be6fb223ff
commit
137f2059f6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371364
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= libvirt
|
||||
PORTVERSION= 1.2.6
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://libvirt.org/sources/ \
|
||||
ftp://libvirt.org/libvirt/
|
||||
@ -23,6 +23,9 @@ RUN_DEPENDS= dnsmasq:${PORTSDIR}/dns/dnsmasq
|
||||
|
||||
OPTIONS_DEFINE= DOCS NLS QEMU
|
||||
OPTIONS_DEFINE_amd64= BHYVE
|
||||
.if exists(/usr/sbin/bhyve)
|
||||
OPTIONS_DEFAULT_amd64= BHYVE
|
||||
.endif
|
||||
QEMU_DESC= QEMU driver
|
||||
BHYVE_DESC= bhyve driver
|
||||
|
||||
@ -73,10 +76,6 @@ PORTDOCS= *
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OSVERSION} >= 1000000
|
||||
OPTIONS_DEFAULT_amd64= BHYVE
|
||||
.endif
|
||||
|
||||
#work around an options bug (thanks mat@)
|
||||
.if ${ARCH} != amd64
|
||||
PLIST_SUB+= BHYVE="@comment "
|
||||
|
Loading…
Reference in New Issue
Block a user