Lines 1-5
Link Here
|
1 |
PORTNAME= virtualbox-ose |
1 |
PORTNAME= virtualbox-ose |
2 |
PORTVERSION= 6.1.44 |
2 |
PORTVERSION= 6.1.44 |
|
|
3 |
PORTREVISION= 1 |
3 |
CATEGORIES= emulators |
4 |
CATEGORIES= emulators |
4 |
MASTER_SITES= https://download.virtualbox.org/virtualbox/${PORTVERSION}/ |
5 |
MASTER_SITES= https://download.virtualbox.org/virtualbox/${PORTVERSION}/ |
5 |
DISTFILES= VirtualBox-${PORTVERSION}${EXTRACT_SUFX} ${GUESTADDITIONS} |
6 |
DISTFILES= VirtualBox-${PORTVERSION}${EXTRACT_SUFX} ${GUESTADDITIONS} |
Lines 31-37
USE_GNOME= libidl libxml2
Link Here
|
31 |
|
32 |
|
32 |
HAS_CONFIGURE= yes |
33 |
HAS_CONFIGURE= yes |
33 |
CONFIGURE_ARGS= --disable-java --passive-mesa |
34 |
CONFIGURE_ARGS= --disable-java --passive-mesa |
34 |
CONFIGURE_ARGS+= --with-gcc="${CC}" --with-g++="${CXX}" |
|
|
35 |
|
35 |
|
36 |
CONFLICTS_INSTALL= virtualbox-ose-additions-* \ |
36 |
CONFLICTS_INSTALL= virtualbox-ose-additions-* \ |
37 |
virtualbox-ose-devel \ |
37 |
virtualbox-ose-devel \ |
Lines 114-119
USE_RC_SUBR= vboxheadless vboxwatchdog
Link Here
|
114 |
|
114 |
|
115 |
.include <bsd.port.options.mk> |
115 |
.include <bsd.port.options.mk> |
116 |
|
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 |
|
117 |
.if ${SLAVE_PORT} == no |
122 |
.if ${SLAVE_PORT} == no |
118 |
CONFLICTS_INSTALL+= virtualbox-ose-nox11 |
123 |
CONFLICTS_INSTALL+= virtualbox-ose-nox11 |
119 |
OPTIONS_DEFAULT+= PYTHON |
124 |
OPTIONS_DEFAULT+= PYTHON |
Lines 211-226
KMK_FLAGS+= -j${MAKE_JOBS_NUMBER}
Link Here
|
211 |
.include <bsd.port.pre.mk> |
216 |
.include <bsd.port.pre.mk> |
212 |
|
217 |
|
213 |
.if ${CHOSEN_COMPILER_TYPE} == clang |
218 |
.if ${CHOSEN_COMPILER_TYPE} == clang |
214 |
# llvm10 in FreeBSD before r364284 miscompiles virtualbox 6.1 causing errors. |
219 |
CONFIGURE_ARGS+= --with-gcc="clang${LLVM_VERSION}" --with-g++="clang++${LLVM_VERSION}" |
215 |
# force llvm11 from ports |
|
|
216 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300109 |
217 |
BUILD_DEPENDS+= clang${VBOX_LLVM_VER}:devel/llvm${VBOX_LLVM_VER} |
218 |
CC= clang${VBOX_LLVM_VER} |
219 |
CXX= clang++${VBOX_LLVM_VER} |
220 |
VBOX_LLVM_VER?= 11 |
221 |
.endif |
222 |
PATCH_DEPENDS+= ${LOCALBASE}/share/kBuild/tools/GXX3.kmk:devel/kBuild |
220 |
PATCH_DEPENDS+= ${LOCALBASE}/share/kBuild/tools/GXX3.kmk:devel/kBuild |
223 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk |
221 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk |
|
|
222 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_ipxe_src_core_settings.c |
223 |
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src_VBox_Devices_PC_ipxe_src_net_tcp_httpcore.c |
224 |
.else |
225 |
CONFIGURE_ARGS+= --with-gcc="${CC}" --with-g++="${CXX}" |
224 |
.endif |
226 |
.endif |
225 |
|
227 |
|
226 |
.if ${PYTHON_MAJOR_VER} >= 3 |
228 |
.if ${PYTHON_MAJOR_VER} >= 3 |