Lines 1-5
Link Here
|
1 |
PORTNAME= virtualbox-ose |
1 |
PORTNAME= virtualbox-ose |
2 |
PORTVERSION= 6.1.36 |
2 |
PORTVERSION= 6.1.44 |
3 |
PORTREVISION= 2 |
3 |
PORTREVISION= 2 |
4 |
CATEGORIES= emulators |
4 |
CATEGORIES= emulators |
5 |
MASTER_SITES= https://download.virtualbox.org/virtualbox/${PORTVERSION}/ |
5 |
MASTER_SITES= https://download.virtualbox.org/virtualbox/${PORTVERSION}/ |
Lines 32-38
USE_GNOME= libidl libxml2
Link Here
|
32 |
|
32 |
|
33 |
HAS_CONFIGURE= yes |
33 |
HAS_CONFIGURE= yes |
34 |
CONFIGURE_ARGS= --disable-java --passive-mesa |
34 |
CONFIGURE_ARGS= --disable-java --passive-mesa |
35 |
CONFIGURE_ARGS+= --with-gcc="${CC}" --with-g++="${CXX}" |
|
|
36 |
|
35 |
|
37 |
CONFLICTS_INSTALL= virtualbox-ose-additions-* \ |
36 |
CONFLICTS_INSTALL= virtualbox-ose-additions-* \ |
38 |
virtualbox-ose-devel \ |
37 |
virtualbox-ose-devel \ |
Lines 115-120
USE_RC_SUBR= vboxheadless vboxwatchdog
Link Here
|
115 |
|
114 |
|
116 |
.include <bsd.port.options.mk> |
115 |
.include <bsd.port.options.mk> |
117 |
|
116 |
|
|
|
117 |
# llvm10 in FreeBSD before r364284 miscompiles virtualbox 6.1 causing errors. |
118 |
# llvm15 builds but the executable throws error "VERR_INTERNAL_ERROR_3" |
119 |
# force llvm from ports to be between 11 and 14 |
120 |
USES+= llvm:min=11,max=14 |
121 |
|
118 |
.if ${SLAVE_PORT} == no |
122 |
.if ${SLAVE_PORT} == no |
119 |
CONFLICTS_INSTALL+= virtualbox-ose-nox11 |
123 |
CONFLICTS_INSTALL+= virtualbox-ose-nox11 |
120 |
OPTIONS_DEFAULT+= PYTHON |
124 |
OPTIONS_DEFAULT+= PYTHON |
Lines 211-229
KMK_FLAGS+= -j${MAKE_JOBS_NUMBER}
Link Here
|
211 |
|
215 |
|
212 |
.include <bsd.port.pre.mk> |
216 |
.include <bsd.port.pre.mk> |
213 |
|
217 |
|
214 |
.if ${CHOSEN_COMPILER_TYPE} == clang |
|
|
215 |
# llvm10 in FreeBSD before r364284 miscompiles virtualbox 6.1 causing errors. |
216 |
# force llvm11 from ports |
217 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300109 |
218 |
BUILD_DEPENDS+= clang${VBOX_LLVM_VER}:devel/llvm${VBOX_LLVM_VER} |
219 |
CC= clang${VBOX_LLVM_VER} |
220 |
CXX= clang++${VBOX_LLVM_VER} |
221 |
VBOX_LLVM_VER?= 11 |
222 |
.endif |
223 |
PATCH_DEPENDS+= ${LOCALBASE}/share/kBuild/tools/GXX3.kmk:devel/kBuild |
224 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk |
225 |
.endif |
226 |
|
227 |
.if ${PYTHON_MAJOR_VER} >= 3 |
218 |
.if ${PYTHON_MAJOR_VER} >= 3 |
228 |
PLIST_SUB+= PYTHON_PYCDIR=/__pycache__/ \ |
219 |
PLIST_SUB+= PYTHON_PYCDIR=/__pycache__/ \ |
229 |
PYTHON_PYCEXT=.cpython-${PYTHON_SUFFIX}.pyc |
220 |
PYTHON_PYCEXT=.cpython-${PYTHON_SUFFIX}.pyc |
Lines 309-314
post-patch:
Link Here
|
309 |
@${SED} -e 's|GXX3|VBoxGccFreeBSD|g' \ |
300 |
@${SED} -e 's|GXX3|VBoxGccFreeBSD|g' \ |
310 |
${LOCALBASE}/share/kBuild/tools/GXX3.kmk > \ |
301 |
${LOCALBASE}/share/kBuild/tools/GXX3.kmk > \ |
311 |
${WRKSRC}/tools/kBuildTools/VBoxGccFreeBSD.kmk |
302 |
${WRKSRC}/tools/kBuildTools/VBoxGccFreeBSD.kmk |
|
|
303 |
CONFIGURE_ARGS+= --with-gcc="clang${LLVM_VERSION}" --with-g++="clang++${LLVM_VERSION}" |
304 |
PATCH_DEPENDS+= ${LOCALBASE}/share/kBuild/tools/GXX3.kmk:devel/kBuild |
305 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk |
306 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_ipxe_src_core_settings.c |
307 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_ipxe_src_net_tcp_httpcore.c |
308 |
.else |
309 |
CONFIGURE_ARGS+= --with-gcc="${CC}" --with-g++="${CXX}" |
312 |
.endif |
310 |
.endif |
313 |
# Causes a "reinplace" QA warning with default LOCALBASE |
311 |
# Causes a "reinplace" QA warning with default LOCALBASE |
314 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ |
312 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ |