| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.332 2023/12/28 17:15:39 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.333 2024/01/25 15:15:13 thor Exp $ |
2 | | | 2 | |
3 | DISTNAME= qemu-8.2.0 | | 3 | DISTNAME= qemu-8.2.0 |
4 | CATEGORIES= emulators | | 4 | CATEGORIES= emulators |
5 | MASTER_SITES= https://download.qemu.org/ | | 5 | MASTER_SITES= https://download.qemu.org/ |
6 | EXTRACT_SUFX= .tar.xz | | 6 | EXTRACT_SUFX= .tar.xz |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.qemu.org/ | | 9 | HOMEPAGE= https://www.qemu.org/ |
10 | COMMENT= CPU emulator using dynamic translation | | 10 | COMMENT= CPU emulator using dynamic translation |
11 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 AND mit AND modified-bsd | | 11 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 AND mit AND modified-bsd |
12 | | | 12 | |
13 | TOOL_DEPENDS+= meson-[0-9]*:../../devel/meson | | 13 | TOOL_DEPENDS+= meson-[0-9]*:../../devel/meson |
14 | TOOL_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build | | 14 | TOOL_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build |
| @@ -122,27 +122,34 @@ CONFIGURE_ARGS+= --disable-bsd-user | | | @@ -122,27 +122,34 @@ CONFIGURE_ARGS+= --disable-bsd-user |
122 | . else | | 122 | . else |
123 | CONFIGURE_ARGS+= --enable-bsd-user | | 123 | CONFIGURE_ARGS+= --enable-bsd-user |
124 | USER_EMUL= i386 x86_64 | | 124 | USER_EMUL= i386 x86_64 |
125 | . endif | | 125 | . endif |
126 | .elif ${OPSYS:M*BSD} || ${OPSYS} == "DragonFly" | | 126 | .elif ${OPSYS:M*BSD} || ${OPSYS} == "DragonFly" |
127 | USER_EMUL= i386 x86_64 | | 127 | USER_EMUL= i386 x86_64 |
128 | PLIST.ga= yes | | 128 | PLIST.ga= yes |
129 | PLIST.nbd= yes | | 129 | PLIST.nbd= yes |
130 | .elif ${OPSYS} == "Darwin" | | 130 | .elif ${OPSYS} == "Darwin" |
131 | USER_EMUL= | | 131 | USER_EMUL= |
132 | CONFIGURE_ARGS+= --disable-bsd-user | | 132 | CONFIGURE_ARGS+= --disable-bsd-user |
133 | PLIST.nbd= yes | | 133 | PLIST.nbd= yes |
134 | .elif ${OPSYS} == "Linux" | | 134 | .elif ${OPSYS} == "Linux" |
| | | 135 | # Help this package to build on systems too old for user-mode code. |
| | | 136 | HAVE_LINUX_USER!= ${CPP} ${CPPFLAGS} ${FILESDIR}/linux-user-test.h \ |
| | | 137 | >/dev/null 2>&1 && echo yes || echo no |
| | | 138 | . if ${HAVE_LINUX_USER} != "yes" |
| | | 139 | CONFIGURE_ARGS+= --disable-linux-user |
| | | 140 | . else |
135 | USER_EMUL= ${UE_ARCHS} | | 141 | USER_EMUL= ${UE_ARCHS} |
| | | 142 | . endif |
136 | PLIST.bridge-helper= yes | | 143 | PLIST.bridge-helper= yes |
137 | PLIST.ga= yes | | 144 | PLIST.ga= yes |
138 | PLIST.nbd= yes | | 145 | PLIST.nbd= yes |
139 | PLIST.pr-helper= yes | | 146 | PLIST.pr-helper= yes |
140 | .elif ${MACHINE_PLATFORM:MSunOS-5.11-*} | | 147 | .elif ${MACHINE_PLATFORM:MSunOS-5.11-*} |
141 | PLIST.ga= yes | | 148 | PLIST.ga= yes |
142 | PLIST.nbd= yes | | 149 | PLIST.nbd= yes |
143 | CONFIGURE_ARGS+= --disable-coroutine-pool | | 150 | CONFIGURE_ARGS+= --disable-coroutine-pool |
144 | .endif | | 151 | .endif |
145 | | | 152 | |
146 | PLIST_VARS+= plugins | | 153 | PLIST_VARS+= plugins |
147 | .if ${OPSYS} != "SunOS" | | 154 | .if ${OPSYS} != "SunOS" |
148 | PLIST.plugins= yes | | 155 | PLIST.plugins= yes |