From nobody Thu Apr 30 13:34:02 2026 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4g5wB22lqgz6btv8 for ; Thu, 30 Apr 2026 13:34:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g5wB22JRTz3jXQ for ; Thu, 30 Apr 2026 13:34:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777556042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+VJv2RHxVVYvg/I+BKp5OV7o34vmNMDm2s1U6PFN+8M=; b=ane9tKWTU8KtewP7f0GrX5S4gFsFPMia4YC1hVTNOdwPCRjZniOtGOBenG5aqKlvyp+ggm VVPp769MK3JOQkCXyPYv+vO03WkKi4Mh6L8R/zz8jpw47YVOS2KLBqrpP04iTgapMCNMlX mJKTEs2Zw2iddCUOV4ursWCoti3rr9IVGizd0BI9QDrzV8ncAhVMa8x0x/7/syXIFX2Tc/ oFzQ8t3wsohGMA+cRBrRZGsr24UfmXPV9zMWI9Ine4U9npBtpRMtS/44iqZCPZWbCYJkSg CAgTICiYvAv04jMACxj+JzPR2njDdx1Xsno06p+IIc3/rwLRNGqHNj4NOlvUGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777556042; a=rsa-sha256; cv=none; b=pR1dj8mQjEdMPWWS152ka8SXp+I8lU+8DKOIGTaM7CSmeAZBtQ4jhOy0Gl7lfcq2pLJX/u pli+x91iwiRycKyWSQ+DgAiSWdIA5cHilPs4dbmdnve+NZGE0wIDgZD+rXSk4m7PTIHs4+ cjSm3hUIk/jyEiXIhCSDAsnsc0q3ZKAM3mHoF6Y3r9ZOIVQMhBrwC6/x1RcKMHaouMwScD FPh6Dc65ePY8tKj4vYqenCtpX8qEu9OiJxP8Ce5W6dgdtVejsUeDIjmmdrVkMxQPd9Egm0 E4mTWRDLM2gV5cwdjo0eJWD31KNEW27DufJRbqHA4tA+z73IskF7rbuEtGxekA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777556042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+VJv2RHxVVYvg/I+BKp5OV7o34vmNMDm2s1U6PFN+8M=; b=eKVgAJcicV1HHNsA9+v+tlSMxTgF1+lWyUDi8Gvli7B0ez45t6cwtK5sUfPCxoGWDN29HP tqHgkQq63/ovTmYCq2PTrTA0SNWqOToutzDsEkr3WiEC7AKcBJE/70gsP7HtT/vKqWvG9J 6FPRS2kltCibbId+tvWZ2CxBt9nzOEifWOQCf8XINMOBCobU9s/qj8WiKuNyiBkbfGb9CM fz+iffp4/yNzcEy76NjhWl0mmwHHHqnftMosgN2pArIBVm+894syAo5ggc0aLswo8FymAv uV++FYUkD2WO1yWBGxOhibJWERuNdQdqbs41yGIR09aLWpsuznoWwxWUZGtoTA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g5wB21Z6Wz1RXJ for ; Thu, 30 Apr 2026 13:34:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33e4b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 30 Apr 2026 13:34:02 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: 9ac890df9f44 - main - emulators/virtualbox-ose-additions*: Flavorize, add xlibre flavor List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9ac890df9f441bd48821bef839167465186c520a Auto-Submitted: auto-generated Date: Thu, 30 Apr 2026 13:34:02 +0000 Message-Id: <69f35a4a.33e4b.48db3878@gitrepo.freebsd.org> The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=9ac890df9f441bd48821bef839167465186c520a commit 9ac890df9f441bd48821bef839167465186c520a Author: Vladimir Druzenko AuthorDate: 2026-04-30 13:21:53 +0000 Commit: Vladimir Druzenko CommitDate: 2026-04-30 13:33:16 +0000 emulators/virtualbox-ose-additions*: Flavorize, add xlibre flavor Flavors: xorg (default), xlibre, nox11. While here add PAE option for ARCH=i386, fix warnings from portclippy, make non-functional changes related to indentation and formatting, make simplification of CONFLICTS_INSTALL, make unification. PR: 294806 Sponsored by: UNIS Labs Co-authored-by: b-aaz --- MOVED | 5 ++ emulators/Makefile | 5 -- emulators/virtualbox-ose-additions-70/Makefile | 74 ++++++++++------------ emulators/virtualbox-ose-additions-71/Makefile | 74 ++++++++++------------ emulators/virtualbox-ose-additions-72/Makefile | 74 ++++++++++------------ emulators/virtualbox-ose-additions-legacy/Makefile | 73 +++++++++------------ .../virtualbox-ose-additions-legacy/pkg-message | 20 ++++-- .../virtualbox-ose-additions-nox11-70/Makefile | 8 --- .../virtualbox-ose-additions-nox11-71/Makefile | 8 --- .../virtualbox-ose-additions-nox11-72/Makefile | 8 --- .../virtualbox-ose-additions-nox11-legacy/Makefile | 8 --- emulators/virtualbox-ose-additions-nox11/Makefile | 8 --- emulators/virtualbox-ose-additions/Makefile | 74 ++++++++++------------ 13 files changed, 188 insertions(+), 251 deletions(-) diff --git a/MOVED b/MOVED index ec1360255f3e..cac604d25929 100644 --- a/MOVED +++ b/MOVED @@ -5253,3 +5253,8 @@ sysutils/py-azure-cli-base||2026-04-21|Remove obsoleted port games/coronapoker||2026-04-25|Remove for security concerns: downloads closed source binary modules, should not be restored unless https://github.com/tonikelope/coronapoker/issues/7 is addressed sysutils/py-ioztat|filesystems/py-ioztat|2026-04-27|Move to more appropriate category misc/py-aider-chat||2026-04-27|Upstream project has stopped active releases and doesn't match ports dependencies +emulators/virtualbox-ose-additions-nox11-legacy|emulators/virtualbox-ose-additions-legacy@nox11|Converted to a flavorized port +emulators/virtualbox-ose-additions-nox11|emulators/virtualbox-ose-additions@nox11|Converted to a flavorized port +emulators/virtualbox-ose-additions-nox11-70|emulators/virtualbox-ose-additions-70@nox11|Converted to a flavorized port +emulators/virtualbox-ose-additions-nox11-71|emulators/virtualbox-ose-additions-71@nox11|Converted to a flavorized port +emulators/virtualbox-ose-additions-nox11-72|emulators/virtualbox-ose-additions-72@nox11|Converted to a flavorized port diff --git a/emulators/Makefile b/emulators/Makefile index f39333180844..a3bfec80e00b 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -166,11 +166,6 @@ SUBDIR += virtualbox-ose-additions-71 SUBDIR += virtualbox-ose-additions-72 SUBDIR += virtualbox-ose-additions-legacy - SUBDIR += virtualbox-ose-additions-nox11 - SUBDIR += virtualbox-ose-additions-nox11-70 - SUBDIR += virtualbox-ose-additions-nox11-71 - SUBDIR += virtualbox-ose-additions-nox11-72 - SUBDIR += virtualbox-ose-additions-nox11-legacy SUBDIR += virtualbox-ose-kmod SUBDIR += virtualbox-ose-kmod-70 SUBDIR += virtualbox-ose-kmod-71 diff --git a/emulators/virtualbox-ose-additions-70/Makefile b/emulators/virtualbox-ose-additions-70/Makefile index 320ecefe352c..48b5efc16fc0 100644 --- a/emulators/virtualbox-ose-additions-70/Makefile +++ b/emulators/virtualbox-ose-additions-70/Makefile @@ -1,9 +1,8 @@ PORTNAME= virtualbox-ose DISTVERSION= 7.0.26 -PORTREVISION?= 1 +PORTREVISION= 2 CATEGORIES= emulators MASTER_SITES= https://download.virtualbox.org/virtualbox/${DISTVERSION}/ -PKGNAMESUFFIX?= -additions-70 DISTNAME= VirtualBox-${DISTVERSION} MAINTAINER= vbox@FreeBSD.org @@ -22,34 +21,35 @@ BUILD_DEPENDS= yasm:devel/yasm \ kmk:devel/kBuild \ xsltproc:textproc/libxslt +FLAVORS= xorg xlibre nox11 +FLAVOR?= ${FLAVORS:[1]} +_SUFFIX= -additions +_VER= ${DISTVERSION:R:S|.||} +${FLAVOR}_PKGNAMESUFFIX= ${${_SUFFIX} ${FLAVOR:N${FLAVORS:[1]}} ${_VER}:L:ts-} + USES= compiler:c++14-lang cpe iconv kmod tar:bzip2 CPE_VENDOR= oracle CPE_PRODUCT= vm_virtualbox USE_RC_SUBR= vboxguest vboxservice -HAS_CONFIGURE= yes -CONFIGURE_ARGS+= --disable-alsa \ - --disable-docs \ - --disable-libvpx \ - --disable-opengl \ - --disable-pulse \ - --disable-python \ - --disable-sdl-ttf \ - --disable-xpcom -CONFIGURE_ARGS+= --nofatal --with-gcc="${CC}" --with-g++="${CXX}" +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --disable-alsa \ + --disable-docs \ + --disable-libvpx \ + --disable-opengl \ + --disable-pulse \ + --disable-python \ + --disable-sdl-ttf \ + --disable-xpcom \ + --nofatal \ + --with-gcc="${CC}" \ + --with-g++="${CXX}" MAKE_JOBS_UNSAFE= yes -CONFLICTS_INSTALL= virtualbox-ose-additions-legacy \ - virtualbox-ose-additions-nox11-legacy \ - virtualbox-ose-additions \ - virtualbox-ose-additions-nox11 \ - virtualbox-ose-additions-71 \ - virtualbox-ose-additions-nox11-71 \ - virtualbox-ose-additions-72 \ - virtualbox-ose-additions-nox11-72 +CONFLICTS_INSTALL= ${PORTNAME}${_SUFFIX}* -PATCHDIR= ${.CURDIR}/../${PORTNAME}-70/files +PATCHDIR= ${.CURDIR}/../${${PORTNAME} ${_VER}:L:ts-}/files EXTRACT_AFTER_ARGS= --exclude tools/*.x86 \ --exclude tools/*.amd64 \ --exclude Firmware \ @@ -57,30 +57,28 @@ EXTRACT_AFTER_ARGS= --exclude tools/*.x86 \ --no-same-owner --no-same-permissions PORTSCOUT= limit:^7\.0\. +BUILD_WRKSRC= ${VBOX_BIN}/src WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION} OPTIONS_DEFINE= DBUS DEBUG X11 +OPTIONS_DEFINE_i386= PAE OPTIONS_DEFAULT= DBUS X11 +nox11_OPTIONS_EXCLUDE= DBUS DEBUG X11 +OPTIONS_EXCLUDE= ${${FLAVOR}_OPTIONS_EXCLUDE} OPTIONS_SUB= yes +PAE_DESC= Build kernel modules for PAE-kernels DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus DBUS_CONFIGURE_OFF= --disable-dbus DEBUG_CONFIGURE_ON= --build-debug DEBUG_VARS= KMK_BUILDTYPE=debug DEBUG_VARS_OFF= KMK_BUILDTYPE=release -X11_BUILD_DEPENDS= ${LOCALBASE}/include/xorg/compiler.h:x11-servers/xorg-server X11_RUN_DEPENDS= xrandr:x11/xrandr -X11_USES= pkgconfig xorg -X11_USE= XORG=x11,xcursor,xext,xorgproto,xmu,xrandr,xt +X11_USES= pkgconfig ${FLAVOR:Mxlibre} xorg +X11_USE= ${FLAVOR:tu}=${FLAVOR}-server \ + XORG=x11,xcursor,xext,xorgproto,xmu,xrandr,xt X11_VARS= VBOX_WITH_X11=1 - -.include - -.if ${SLAVE_PORT} == no -CONFLICTS_INSTALL+= virtualbox-ose-additions-nox11-70 -.else -CONFLICTS_INSTALL+= virtualbox-ose-additions-70 -.endif +X11_VARS_OFF= VBOX_WITH_X11= VIDEODIR= ${PREFIX}/lib/xorg/modules/drivers INPUTDIR= ${PREFIX}/lib/xorg/modules/input @@ -90,15 +88,8 @@ VBOX_SBINS= VBoxControl \ VBoxService \ mount_vboxvfs -BUILD_WRKSRC= ${VBOX_BIN}/src - KMK_ARCH= freebsd.${ARCH:S/i386/x86/} -KMK_CONFIG+= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys VBOX_ONLY_ADDITIONS=1 - -.if ${PORT_OPTIONS:MX11} -.else -VBOX_WITH_X11= -.endif +KMK_CONFIG= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys VBOX_ONLY_ADDITIONS=1 .include @@ -135,6 +126,9 @@ post-patch: ${WRKSRC}/src/VBox/Additions/x11/VBoxClient/Makefile.kmk @${ECHO_CMD} 'VBOX_ICONV_DEFS = LIBICONV_PLUG' >> ${WRKSRC}/LocalConfig.kmk .endif +.if ${PORT_OPTIONS:MPAE} + @${ECHO_CMD} 'VBOX_FREEBSD = -DPAE' >> ${WRKSRC}/LocalConfig.kmk +.endif .if ${OSVERSION} >= 1500038 @${ECHO_CMD} 'HAVE_MNTOPTS_IN_LIBUTIL = 1' >> \ ${WRKSRC}/LocalConfig.kmk diff --git a/emulators/virtualbox-ose-additions-71/Makefile b/emulators/virtualbox-ose-additions-71/Makefile index 4fe2e2a1815e..94cdcea9e79d 100644 --- a/emulators/virtualbox-ose-additions-71/Makefile +++ b/emulators/virtualbox-ose-additions-71/Makefile @@ -1,9 +1,8 @@ PORTNAME= virtualbox-ose DISTVERSION= 7.1.18 -PORTREVISION?= 0 +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= https://download.virtualbox.org/virtualbox/${DISTVERSION}/ -PKGNAMESUFFIX?= -additions-71 DISTNAME= VirtualBox-${DISTVERSION} MAINTAINER= vbox@FreeBSD.org @@ -22,34 +21,35 @@ BUILD_DEPENDS= yasm:devel/yasm \ kmk:devel/kBuild \ xsltproc:textproc/libxslt +FLAVORS= xorg xlibre nox11 +FLAVOR?= ${FLAVORS:[1]} +_SUFFIX= -additions +_VER= ${DISTVERSION:R:S|.||} +${FLAVOR}_PKGNAMESUFFIX= ${${_SUFFIX} ${FLAVOR:N${FLAVORS:[1]}} ${_VER}:L:ts-} + USES= compiler:c++17-lang cpe iconv kmod tar:bzip2 CPE_VENDOR= oracle CPE_PRODUCT= vm_virtualbox USE_RC_SUBR= vboxguest vboxservice -HAS_CONFIGURE= yes -CONFIGURE_ARGS+= --disable-alsa \ - --disable-docs \ - --disable-libvpx \ - --disable-opengl \ - --disable-pulse \ - --disable-python \ - --disable-sdl-ttf \ - --disable-xpcom -CONFIGURE_ARGS+= --nofatal --with-gcc="${CC}" --with-g++="${CXX}" +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --disable-alsa \ + --disable-docs \ + --disable-libvpx \ + --disable-opengl \ + --disable-pulse \ + --disable-python \ + --disable-sdl-ttf \ + --disable-xpcom \ + --nofatal \ + --with-gcc="${CC}" \ + --with-g++="${CXX}" MAKE_JOBS_UNSAFE= yes -CONFLICTS_INSTALL= virtualbox-ose-additions-legacy \ - virtualbox-ose-additions-nox11-legacy \ - virtualbox-ose-additions \ - virtualbox-ose-additions-nox11 \ - virtualbox-ose-additions-70 \ - virtualbox-ose-additions-nox11-70 \ - virtualbox-ose-additions-72 \ - virtualbox-ose-additions-nox11-72 +CONFLICTS_INSTALL= ${PORTNAME}${_SUFFIX}* -PATCHDIR= ${.CURDIR}/../${PORTNAME}-71/files +PATCHDIR= ${.CURDIR}/../${${PORTNAME} ${_VER}:L:ts-}/files EXTRACT_AFTER_ARGS= --exclude tools/*.x86 \ --exclude tools/*.amd64 \ --exclude Firmware \ @@ -57,30 +57,28 @@ EXTRACT_AFTER_ARGS= --exclude tools/*.x86 \ --no-same-owner --no-same-permissions PORTSCOUT= limit:^7\.1\. +BUILD_WRKSRC= ${VBOX_BIN}/src WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION} OPTIONS_DEFINE= DBUS DEBUG X11 +OPTIONS_DEFINE_i386= PAE OPTIONS_DEFAULT= DBUS X11 +nox11_OPTIONS_EXCLUDE= DBUS DEBUG X11 +OPTIONS_EXCLUDE= ${${FLAVOR}_OPTIONS_EXCLUDE} OPTIONS_SUB= yes +PAE_DESC= Build kernel modules for PAE-kernels DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus DBUS_CONFIGURE_OFF= --disable-dbus DEBUG_CONFIGURE_ON= --build-debug DEBUG_VARS= KMK_BUILDTYPE=debug DEBUG_VARS_OFF= KMK_BUILDTYPE=release -X11_BUILD_DEPENDS= ${LOCALBASE}/include/xorg/compiler.h:x11-servers/xorg-server X11_RUN_DEPENDS= xrandr:x11/xrandr -X11_USES= pkgconfig xorg -X11_USE= XORG=x11,xcursor,xext,xorgproto,xmu,xrandr,xt +X11_USES= pkgconfig ${FLAVOR:Mxlibre} xorg +X11_USE= ${FLAVOR:tu}=${FLAVOR}-server \ + XORG=x11,xcursor,xext,xorgproto,xmu,xrandr,xt X11_VARS= VBOX_WITH_X11=1 - -.include - -.if ${SLAVE_PORT} == no -CONFLICTS_INSTALL+= virtualbox-ose-additions-nox11-71 -.else -CONFLICTS_INSTALL+= virtualbox-ose-additions-71 -.endif +X11_VARS_OFF= VBOX_WITH_X11= VIDEODIR= ${PREFIX}/lib/xorg/modules/drivers INPUTDIR= ${PREFIX}/lib/xorg/modules/input @@ -90,15 +88,8 @@ VBOX_SBINS= VBoxControl \ VBoxService \ mount_vboxvfs -BUILD_WRKSRC= ${VBOX_BIN}/src - KMK_ARCH= freebsd.${ARCH:S/i386/x86/} -KMK_CONFIG+= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys VBOX_ONLY_ADDITIONS=1 - -.if ${PORT_OPTIONS:MX11} -.else -VBOX_WITH_X11= -.endif +KMK_CONFIG= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys VBOX_ONLY_ADDITIONS=1 .include @@ -135,6 +126,9 @@ post-patch: ${WRKSRC}/src/VBox/Additions/x11/VBoxClient/Makefile.kmk @${ECHO_CMD} 'VBOX_ICONV_DEFS = LIBICONV_PLUG' >> ${WRKSRC}/LocalConfig.kmk .endif +.if ${PORT_OPTIONS:MPAE} + @${ECHO_CMD} 'VBOX_FREEBSD = -DPAE' >> ${WRKSRC}/LocalConfig.kmk +.endif .if ${OSVERSION} >= 1500038 @${ECHO_CMD} 'HAVE_MNTOPTS_IN_LIBUTIL = 1' >> \ ${WRKSRC}/LocalConfig.kmk diff --git a/emulators/virtualbox-ose-additions-72/Makefile b/emulators/virtualbox-ose-additions-72/Makefile index 4cb8eab9dd1f..e6db8f18b595 100644 --- a/emulators/virtualbox-ose-additions-72/Makefile +++ b/emulators/virtualbox-ose-additions-72/Makefile @@ -1,9 +1,8 @@ PORTNAME= virtualbox-ose DISTVERSION= 7.2.8 -PORTREVISION?= 0 +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= https://download.virtualbox.org/virtualbox/${DISTVERSION}/ -PKGNAMESUFFIX?= -additions-72 DISTNAME= VirtualBox-${DISTVERSION} MAINTAINER= vbox@FreeBSD.org @@ -19,34 +18,35 @@ BUILD_DEPENDS= yasm:devel/yasm \ kmk:devel/kBuild \ xsltproc:textproc/libxslt +FLAVORS= xorg xlibre nox11 +FLAVOR?= ${FLAVORS:[1]} +_SUFFIX= -additions +_VER= ${DISTVERSION:R:S|.||} +${FLAVOR}_PKGNAMESUFFIX= ${${_SUFFIX} ${FLAVOR:N${FLAVORS:[1]}} ${_VER}:L:ts-} + USES= compiler:c++17-lang cpe iconv kmod tar:bzip2 CPE_VENDOR= oracle CPE_PRODUCT= vm_virtualbox USE_RC_SUBR= vboxguest vboxservice -HAS_CONFIGURE= yes -CONFIGURE_ARGS+= --disable-alsa \ - --disable-docs \ - --disable-libvpx \ - --disable-opengl \ - --disable-pulse \ - --disable-python \ - --disable-sdl-ttf \ - --disable-xpcom -CONFIGURE_ARGS+= --nofatal --with-gcc="${CC}" --with-g++="${CXX}" +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --disable-alsa \ + --disable-docs \ + --disable-libvpx \ + --disable-opengl \ + --disable-pulse \ + --disable-python \ + --disable-sdl-ttf \ + --disable-xpcom \ + --nofatal \ + --with-gcc="${CC}" \ + --with-g++="${CXX}" MAKE_JOBS_UNSAFE= yes -CONFLICTS_INSTALL= virtualbox-ose-additions-legacy \ - virtualbox-ose-additions-nox11-legacy \ - virtualbox-ose-additions \ - virtualbox-ose-additions-nox11 \ - virtualbox-ose-additions-70 \ - virtualbox-ose-additions-nox11-70 \ - virtualbox-ose-additions-71 \ - virtualbox-ose-additions-nox11-71 +CONFLICTS_INSTALL= ${PORTNAME}${_SUFFIX}* -PATCHDIR= ${.CURDIR}/../${PORTNAME}-72/files +PATCHDIR= ${.CURDIR}/../${${PORTNAME} ${_VER}:L:ts-}/files EXTRACT_AFTER_ARGS= --exclude tools/*.x86 \ --exclude tools/*.amd64 \ --exclude Firmware \ @@ -54,30 +54,28 @@ EXTRACT_AFTER_ARGS= --exclude tools/*.x86 \ --no-same-owner --no-same-permissions PORTSCOUT= limit:^7\.2\. +BUILD_WRKSRC= ${VBOX_BIN}/src WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION} OPTIONS_DEFINE= DBUS DEBUG X11 +OPTIONS_DEFINE_i386= PAE OPTIONS_DEFAULT= DBUS X11 +nox11_OPTIONS_EXCLUDE= DBUS DEBUG X11 +OPTIONS_EXCLUDE= ${${FLAVOR}_OPTIONS_EXCLUDE} OPTIONS_SUB= yes +PAE_DESC= Build kernel modules for PAE-kernels DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus DBUS_CONFIGURE_OFF= --disable-dbus DEBUG_CONFIGURE_ON= --build-debug DEBUG_VARS= KMK_BUILDTYPE=debug DEBUG_VARS_OFF= KMK_BUILDTYPE=release -X11_BUILD_DEPENDS= ${LOCALBASE}/include/xorg/compiler.h:x11-servers/xorg-server X11_RUN_DEPENDS= xrandr:x11/xrandr -X11_USES= pkgconfig xorg -X11_USE= XORG=x11,xcursor,xext,xorgproto,xmu,xrandr,xt +X11_USES= pkgconfig ${FLAVOR:Mxlibre} xorg +X11_USE= ${FLAVOR:tu}=${FLAVOR}-server \ + XORG=x11,xcursor,xext,xorgproto,xmu,xrandr,xt X11_VARS= VBOX_WITH_X11=1 - -.include - -.if ${SLAVE_PORT} == no -CONFLICTS_INSTALL+= virtualbox-ose-additions-nox11-72 -.else -CONFLICTS_INSTALL+= virtualbox-ose-additions-72 -.endif +X11_VARS_OFF= VBOX_WITH_X11= VIDEODIR= ${PREFIX}/lib/xorg/modules/drivers INPUTDIR= ${PREFIX}/lib/xorg/modules/input @@ -87,15 +85,8 @@ VBOX_SBINS= VBoxControl \ VBoxService \ mount_vboxvfs -BUILD_WRKSRC= ${VBOX_BIN}/src - KMK_ARCH= freebsd.${ARCH:S/i386/x86/} -KMK_CONFIG+= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys VBOX_ONLY_ADDITIONS=1 - -.if ${PORT_OPTIONS:MX11} -.else -VBOX_WITH_X11= -.endif +KMK_CONFIG= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys VBOX_ONLY_ADDITIONS=1 .include @@ -132,6 +123,9 @@ post-patch: ${WRKSRC}/src/VBox/Additions/x11/VBoxClient/Makefile.kmk @${ECHO_CMD} 'VBOX_ICONV_DEFS = LIBICONV_PLUG' >> ${WRKSRC}/LocalConfig.kmk .endif +.if ${PORT_OPTIONS:MPAE} + @${ECHO_CMD} 'VBOX_FREEBSD = -DPAE' >> ${WRKSRC}/LocalConfig.kmk +.endif .if ${OSVERSION} >= 1500038 @${ECHO_CMD} 'HAVE_MNTOPTS_IN_LIBUTIL = 1' >> \ ${WRKSRC}/LocalConfig.kmk diff --git a/emulators/virtualbox-ose-additions-legacy/Makefile b/emulators/virtualbox-ose-additions-legacy/Makefile index db4b8ebbe269..1be6ea30244d 100644 --- a/emulators/virtualbox-ose-additions-legacy/Makefile +++ b/emulators/virtualbox-ose-additions-legacy/Makefile @@ -1,9 +1,8 @@ PORTNAME= virtualbox-ose DISTVERSION= 5.2.44 -PORTREVISION?= 10 +PORTREVISION= 11 CATEGORIES= emulators MASTER_SITES= https://download.virtualbox.org/virtualbox/${DISTVERSION}/ -PKGNAMESUFFIX?= -additions-legacy DISTNAME= VirtualBox-${DISTVERSION} MAINTAINER= vbox@FreeBSD.org @@ -19,34 +18,35 @@ BUILD_DEPENDS= yasm:devel/yasm \ kmk:devel/kBuild \ xsltproc:textproc/libxslt +FLAVORS= xorg xlibre nox11 +FLAVOR?= ${FLAVORS:[1]} +_SUFFIX= -additions +_VER= legacy +${FLAVOR}_PKGNAMESUFFIX= ${${_SUFFIX} ${FLAVOR:N${FLAVORS:[1]}} ${_VER}:L:ts-} + USES= compiler:c++11-lang cpe iconv kmod tar:bzip2 CPE_VENDOR= oracle CPE_PRODUCT= vm_virtualbox USE_RC_SUBR= vboxguest vboxservice -HAS_CONFIGURE= yes -CONFIGURE_ARGS+= --disable-alsa \ - --disable-docs \ - --disable-libvpx \ - --disable-opengl \ - --disable-pulse \ - --disable-python \ - --disable-sdl-ttf \ - --disable-xpcom -CONFIGURE_ARGS+= --nofatal --with-gcc="${CC}" --with-g++="${CXX}" +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --disable-alsa \ + --disable-docs \ + --disable-libvpx \ + --disable-opengl \ + --disable-pulse \ + --disable-python \ + --disable-sdl-ttf \ + --disable-xpcom \ + --nofatal \ + --with-gcc="${CC}" \ + --with-g++="${CXX}" MAKE_JOBS_UNSAFE= yes -CONFLICTS_INSTALL= virtualbox-ose-additions \ - virtualbox-ose-additions-nox11 \ - virtualbox-ose-additions-70 \ - virtualbox-ose-additions-nox11-70 \ - virtualbox-ose-additions-71 \ - virtualbox-ose-additions-nox11-71 \ - virtualbox-ose-additions-72 \ - virtualbox-ose-additions-nox11-72 +CONFLICTS_INSTALL= ${PORTNAME}${_SUFFIX}* -PATCHDIR= ${.CURDIR}/../${PORTNAME}-legacy/files +PATCHDIR= ${.CURDIR}/../${${PORTNAME} ${_VER}:L:ts-}/files EXTRACT_AFTER_ARGS= --exclude tools/*.x86 \ --exclude tools/*.amd64 \ --exclude Firmware \ @@ -54,11 +54,14 @@ EXTRACT_AFTER_ARGS= --exclude tools/*.x86 \ --no-same-owner --no-same-permissions PORTSCOUT= limit:^5\. +BUILD_WRKSRC= ${VBOX_BIN}/src WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION} OPTIONS_DEFINE= DBUS DEBUG X11 OPTIONS_DEFINE_i386= PAE OPTIONS_DEFAULT= DBUS X11 +nox11_OPTIONS_EXCLUDE= DBUS DEBUG X11 +OPTIONS_EXCLUDE= ${${FLAVOR}_OPTIONS_EXCLUDE} OPTIONS_SUB= yes PAE_DESC= Build kernel modules for PAE-kernels @@ -67,19 +70,12 @@ DBUS_CONFIGURE_OFF= --disable-dbus DEBUG_CONFIGURE_ON= --build-debug DEBUG_VARS= KMK_BUILDTYPE=debug DEBUG_VARS_OFF= KMK_BUILDTYPE=release -X11_BUILD_DEPENDS= ${LOCALBASE}/include/xorg/compiler.h:x11-servers/xorg-server X11_RUN_DEPENDS= xrandr:x11/xrandr -X11_USES= pkgconfig xorg -X11_USE= XORG=x11,xcursor,xext,xorgproto,xmu,xrandr,xt +X11_USES= pkgconfig ${FLAVOR:Mxlibre} xorg +X11_USE= ${FLAVOR:tu}=${FLAVOR}-server \ + XORG=x11,xcursor,xext,xorgproto,xmu,xrandr,xt X11_VARS= VBOX_WITH_X11=1 - -.include - -.if ${SLAVE_PORT} == no -CONFLICTS_INSTALL+= virtualbox-ose-additions-nox11-legacy -.else -CONFLICTS_INSTALL+= virtualbox-ose-additions-legacy -.endif +X11_VARS_OFF= VBOX_WITH_X11= VIDEODIR= ${PREFIX}/lib/xorg/modules/drivers INPUTDIR= ${PREFIX}/lib/xorg/modules/input @@ -89,15 +85,8 @@ VBOX_SBINS= VBoxControl \ VBoxService \ mount_vboxvfs -BUILD_WRKSRC= ${VBOX_BIN}/src - KMK_ARCH= freebsd.${ARCH:S/i386/x86/} -KMK_CONFIG+= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys - -.if ${PORT_OPTIONS:MX11} -.else -VBOX_WITH_X11= -.endif +KMK_CONFIG= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys .include @@ -184,10 +173,10 @@ do-install-X11-on: ${WRKSRC}/src/VBox/Additions/x11/Installer/vboxclient.desktop \ ${STAGEDIR}${PREFIX}/share/autostart/ ${MKDIR} ${STAGEDIR}${VIDEODIR} - ${INSTALL_DATA} ${VBOX_BIN}/vboxvideo_drv_system.so \ + ${INSTALL_LIB} ${VBOX_BIN}/vboxvideo_drv_system.so \ ${STAGEDIR}${VIDEODIR}/vboxvideo_drv.so ${MKDIR} ${STAGEDIR}${INPUTDIR} - ${INSTALL_DATA} ${VBOX_BIN}/vboxmouse_drv_system.so \ + ${INSTALL_LIB} ${VBOX_BIN}/vboxmouse_drv_system.so \ ${STAGEDIR}${INPUTDIR}/vboxmouse_drv.so .include diff --git a/emulators/virtualbox-ose-additions-legacy/pkg-message b/emulators/virtualbox-ose-additions-legacy/pkg-message index 035001f3083e..9b858849abdb 100644 --- a/emulators/virtualbox-ose-additions-legacy/pkg-message +++ b/emulators/virtualbox-ose-additions-legacy/pkg-message @@ -3,22 +3,34 @@ message: < - -.if ${SLAVE_PORT} == no -CONFLICTS_INSTALL+= virtualbox-ose-additions-nox11 -.else -CONFLICTS_INSTALL+= virtualbox-ose-additions -.endif +X11_VARS_OFF= VBOX_WITH_X11= VIDEODIR= ${PREFIX}/lib/xorg/modules/drivers INPUTDIR= ${PREFIX}/lib/xorg/modules/input @@ -90,15 +88,8 @@ VBOX_SBINS= VBoxControl \ VBoxService \ mount_vboxvfs -BUILD_WRKSRC= ${VBOX_BIN}/src - KMK_ARCH= freebsd.${ARCH:S/i386/x86/} -KMK_CONFIG+= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys - -.if ${PORT_OPTIONS:MX11} -.else -VBOX_WITH_X11= -.endif +KMK_CONFIG= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys .include @@ -135,6 +126,9 @@ post-patch: ${WRKSRC}/src/VBox/Additions/x11/VBoxClient/Makefile.kmk @${ECHO_CMD} 'VBOX_ICONV_DEFS = LIBICONV_PLUG' >> ${WRKSRC}/LocalConfig.kmk .endif +.if ${PORT_OPTIONS:MPAE} + @${ECHO_CMD} 'VBOX_FREEBSD = -DPAE' >> ${WRKSRC}/LocalConfig.kmk +.endif .if ${OSVERSION} >= 1500038 @${ECHO_CMD} 'HAVE_MNTOPTS_IN_LIBUTIL = 1' >> \ ${WRKSRC}/LocalConfig.kmk