1- # $NetBSD: Makefile,v 1.398 2026/02/15 07:37:37 adam Exp $
1+ # $NetBSD: Makefile,v 1.399 2026/03/07 10:24:28 bsiegert Exp $
22
33.include "../../emulators/qemu/version.mk"
44
55DISTNAME = qemu-${QEMU_VERSION}
6+ PKGREVISION = 1
67CATEGORIES = emulators
78MASTER_SITES = https://download.qemu.org/
89EXTRACT_SUFX = .tar.xz
@@ -22,8 +23,6 @@ USE_TOOLS+= bison gdbus-codegen flex makeinfo perl:build pod2man pkg-config
2223UNLIMIT_RESOURCES = datasize
2324HAS_CONFIGURE = yes
2425
25- CONFLICTS+ = qemu-guest-agent-[0-9]*
26-
2726# https://github.com/qemu/qemu/commit/56208a0d473c6db263cc333c787ca48b502d72ab
2827GCC_REQD+ = 7
2928
@@ -56,6 +55,7 @@ CONFIGURE_ARGS+= --smbd=${PREFIX}/sbin/smbd
5655CONFIGURE_ARGS+ = --mandir=${PREFIX}/${PKGMANDIR}
5756CONFIGURE_ARGS+ = --enable-curses
5857CONFIGURE_ARGS+ = --enable-fdt=system
58+ CONFIGURE_ARGS+ = --disable-guest-agent
5959CONFIGURE_ENV+ = mansuffix=/${PKGMANDIR}
6060ALL_ENV+ = MESON_RSP_THRESHOLD=262144
6161
@@ -133,7 +133,6 @@ UE_ARCHS+= s390x sh4 sh4eb sparc sparc32plus sparc64
133133UE_ARCHS+ = x86_64 xtensa xtensaeb
134134
135135.if ${OPSYS} == "NetBSD"
136- PLIST.ga = yes
137136PLIST.nbd = yes
138137. if !exists(/usr/include/machine/trap.h) \
139138 || "1"=="1" # XXX usermode emulation is broken
@@ -144,7 +143,6 @@ USER_EMUL= i386 x86_64
144143. endif
145144.elif ${OPSYS :M* BSD} || ${OPSYS} == "DragonFly"
146145USER_EMUL = i386 x86_64
147- PLIST.ga = yes
148146PLIST.nbd = yes
149147.elif ${OPSYS} == "Darwin"
150148USER_EMUL =
@@ -160,12 +158,12 @@ CONFIGURE_ARGS+= --disable-linux-user
160158USER_EMUL = ${UE_ARCHS}
161159. endif
162160PLIST.bridge-helper = yes
163- PLIST.ga = yes
164161PLIST.nbd = yes
165162PLIST.pr-helper = yes
163+ . if ${MACHINE_PLATFORM :M* -i386} || ${MACHINE_PLATFORM:M* -x86_64}
166164PLIST.vmsr-helper = yes
165+ . endif
167166.elif ${MACHINE_PLATFORM :MSunOS-5.11-* }
168- PLIST.ga = yes
169167PLIST.nbd = yes
170168CONFIGURE_ARGS+ = --disable-coroutine-pool
171169.endif
@@ -178,7 +176,7 @@ CONFIGURE_ARGS+= --enable-plugins
178176CONFIGURE_ARGS+ = --disable-plugins
179177.endif
180178
181- PLIST_VARS+ = ${UE_ARCHS} bridge-helper ga keymap nbd pr-helper vmsr-helper
179+ PLIST_VARS+ = ${UE_ARCHS} bridge-helper keymap nbd pr-helper vmsr-helper
182180.for pvar in ${USER_EMUL}
183181PLIST.${pvar} = yes
184182.endfor
0 commit comments