git: 751fd2a4a2fc - main - devel/libvirt: fix build on 15/aarch64

From: Ronald Klop <ronald_at_FreeBSD.org>
Date: Tue, 03 Dec 2024 22:57:41 UTC
The branch main has been updated by ronald:

URL: https://cgit.FreeBSD.org/ports/commit/?id=751fd2a4a2fcd48fc1f80b1a2d20848f35a924a3

commit 751fd2a4a2fcd48fc1f80b1a2d20848f35a924a3
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2024-11-15 20:16:13 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2024-12-03 22:57:21 +0000

    devel/libvirt: fix build on 15/aarch64
    
    The build picked up BHYVE option while it does not have the
    /usr/sbin/bhyveload executable which is needed by the build.
    
    PR:     282786
    Reported by:    https://lists.freebsd.org/archives/freebsd-pkg-fallout/2024-December/690521.html
    Approved by:    novel@ (maintainer timeout)
---
 devel/libvirt/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile
index d8e34c8b1fe7..b73b94317ebb 100644
--- a/devel/libvirt/Makefile
+++ b/devel/libvirt/Makefile
@@ -23,9 +23,9 @@ RUN_DEPENDS=	dnsmasq:dns/dnsmasq
 OPTIONS_DEFINE=	DOCS NLS NSS QEMU READLINE SASL LIBSSH LIBSSH2 ZFS
 OPTIONS_DEFAULT=	READLINE LIBSSH LIBSSH2 ZFS
 OPTIONS_DEFINE_amd64=	XEN
-.if exists(/usr/sbin/bhyve)
-OPTIONS_DEFINE_amd64+=	BHYVE
-OPTIONS_DEFAULT_amd64+=	BHYVE
+.if exists(/usr/sbin/bhyveload)
+OPTIONS_DEFINE+=	BHYVE
+OPTIONS_DEFAULT+=	BHYVE
 .else
 PLIST_SUB+=		BHYVE="@comment "
 SUB_LIST+=		BHYVE="@comment "