Lines 217-233
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_DevFwCommon.cpp
Link Here
|
217 |
.endif |
217 |
.endif |
218 |
|
218 |
|
219 |
.if ${CHOSEN_COMPILER_TYPE} == clang |
219 |
.if ${CHOSEN_COMPILER_TYPE} == clang |
220 |
# llvm10 in FreeBSD before r364284 miscompiles virtualbox 6.1 causing errors. |
220 |
# 1) llvm10 in FreeBSD before r364284 miscompiles virtualbox 6.1 causing errors. |
221 |
# force llvm11 from ports |
221 |
# 2) llvm15 in FreeBSD miscompiles virtualbox 6.1 causing errors: PR#270189. |
|
|
222 |
# Force llvm from ports. |
222 |
.if ${OPSYS} == FreeBSD && \ |
223 |
.if ${OPSYS} == FreeBSD && \ |
223 |
(${OSVERSION} < 1203502 || ${OSVERSION} >= 1300000 && ${OSVERSION} < 1300109) |
224 |
(${OSVERSION} < 1203502 || ${OSVERSION} >= 1300000 && ${OSVERSION} < 1300109 || \ |
|
|
225 |
${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 || ${OSVERSION} >= 1400079) |
226 |
# USES must be before .include <bsd.port.pre.mk>, but CHOSEN_COMPILER_TYPE must be after. |
227 |
# This is a workaround with possibility to define different llvm via VBOX_LLVM_VER in make.conf. |
228 |
#USES+= llvm:min=11,max=14 |
229 |
#CC= clang${LLVM_VERSION} |
230 |
#CXX= clang++${LLVM_VERSION} |
224 |
BUILD_DEPENDS+= clang${VBOX_LLVM_VER}:devel/llvm${VBOX_LLVM_VER} |
231 |
BUILD_DEPENDS+= clang${VBOX_LLVM_VER}:devel/llvm${VBOX_LLVM_VER} |
225 |
CC= clang${VBOX_LLVM_VER} |
232 |
CC= clang${VBOX_LLVM_VER} |
226 |
CXX= clang++${VBOX_LLVM_VER} |
233 |
CXX= clang++${VBOX_LLVM_VER} |
227 |
VBOX_LLVM_VER?= 11 |
234 |
.if ${LLVM_DEFAULT} < 11 || ${LLVM_DEFAULT} > 14 |
|
|
235 |
VBOX_LLVM_VER?= 14 |
236 |
.else |
237 |
VBOX_LLVM_VER?= ${LLVM_DEFAULT} |
238 |
.endif |
228 |
.endif |
239 |
.endif |
229 |
PATCH_DEPENDS+= ${LOCALBASE}/share/kBuild/tools/GXX3.kmk:devel/kBuild |
240 |
PATCH_DEPENDS+= ${LOCALBASE}/share/kBuild/tools/GXX3.kmk:devel/kBuild |
230 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk |
241 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk |
|
|
242 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_ipxe_src_core_settings.c |
243 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_ipxe_src_net_tcp_httpcore.c |
231 |
.endif |
244 |
.endif |
232 |
|
245 |
|
233 |
.if ${PYTHON_MAJOR_VER} >= 3 |
246 |
.if ${PYTHON_MAJOR_VER} >= 3 |