2013-06-24 08:07:53 +02:00
|
|
|
# Created by: Bernhard Froehlich <decke@bluelife.at>
|
2009-06-15 20:01:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
emulators/virtualbox:
- Remove emulators/virtualbox port. Renamed to emulators/virtualbox-ose
and seperate port for the kernel modules created:
emulators/virtualbox-ose-kmod.
emulators/virtualbox-ose:
- Update to 3.1.2
- Update guest additions to 3.1.2
- Port has been renamed to virtualbox-ose to reflect that we are using
the OSE version. [1]
- Added proper PulseAudio support for FreeBSD [2]
- procfs is not required anymore because vbox uses sysctl(3) now [3]
- Update pkg-message to reflect recent changes
- Add nox's FreeBSD host networking patches that are now also in the
upstream vbox svn (modulo vbox variable naming style adjustments:)
http://lists.freebsd.org/pipermail/freebsd-emulation/2010-January/007260.html
http://www.virtualbox.org/changeset/25698
1. Allow direct tap networking again (for users that need the best
network performance and/or need more complex network setups, like when
they want to use routing instead of bridging to e.g. protect from guests
messing with the lan's arp tables; a tap + routing + proxy arp example
is in the above freebsd-emulation posting.)
2. Enable vbox' shared mac feature when using bridged mode on a wifi
interface, together with the virtualbox-ose-kmod change this
should fix bridged mode for wifi users. [4]
emulators/virtualbox-ose-kmod:
- Update to 3.1.2
- Add rc.d script to load kernel modules
- Fix build with a non-standard location for the system source [5]
- Merge aeichner's vboxnetflt fix committed to upstream vbox svn
(thanks!) that makes the shared mac feature enabled above actually work
on FreeBSD hosts. [6]
Please see http://wiki.freebsd.org/VirtualBox for update instructions.
Many thanks to the VirtualBox developers, all tester, patch submitter and
the whole vbox@ team.
PR: ports/141630 [2]
Noticed by: mm@ [1]
Submitted by: Noriyoshi Kawano <bowie AT nrik.jp> [2],
Baptiste Daroussin <baptiste.daroussin AT gmail.com> [3]
and Bernhard Froehlich <decke AT bluelife.at> [3],
nox@ [4], scf@ [5]
Obtained from: http://www.virtualbox.org/changeset/25699 [6]
On behalf of: vbox@ (decke, dhn, itetcu, miwi, nox)
2010-01-13 09:03:17 +01:00
|
|
|
PORTNAME= virtualbox-ose
|
2014-05-23 01:10:51 +02:00
|
|
|
DISTVERSION= 4.3.12
|
2014-05-24 01:45:23 +02:00
|
|
|
PORTREVISION= 1
|
emulators/virtualbox:
- Remove emulators/virtualbox port. Renamed to emulators/virtualbox-ose
and seperate port for the kernel modules created:
emulators/virtualbox-ose-kmod.
emulators/virtualbox-ose:
- Update to 3.1.2
- Update guest additions to 3.1.2
- Port has been renamed to virtualbox-ose to reflect that we are using
the OSE version. [1]
- Added proper PulseAudio support for FreeBSD [2]
- procfs is not required anymore because vbox uses sysctl(3) now [3]
- Update pkg-message to reflect recent changes
- Add nox's FreeBSD host networking patches that are now also in the
upstream vbox svn (modulo vbox variable naming style adjustments:)
http://lists.freebsd.org/pipermail/freebsd-emulation/2010-January/007260.html
http://www.virtualbox.org/changeset/25698
1. Allow direct tap networking again (for users that need the best
network performance and/or need more complex network setups, like when
they want to use routing instead of bridging to e.g. protect from guests
messing with the lan's arp tables; a tap + routing + proxy arp example
is in the above freebsd-emulation posting.)
2. Enable vbox' shared mac feature when using bridged mode on a wifi
interface, together with the virtualbox-ose-kmod change this
should fix bridged mode for wifi users. [4]
emulators/virtualbox-ose-kmod:
- Update to 3.1.2
- Add rc.d script to load kernel modules
- Fix build with a non-standard location for the system source [5]
- Merge aeichner's vboxnetflt fix committed to upstream vbox svn
(thanks!) that makes the shared mac feature enabled above actually work
on FreeBSD hosts. [6]
Please see http://wiki.freebsd.org/VirtualBox for update instructions.
Many thanks to the VirtualBox developers, all tester, patch submitter and
the whole vbox@ team.
PR: ports/141630 [2]
Noticed by: mm@ [1]
Submitted by: Noriyoshi Kawano <bowie AT nrik.jp> [2],
Baptiste Daroussin <baptiste.daroussin AT gmail.com> [3]
and Bernhard Froehlich <decke AT bluelife.at> [3],
nox@ [4], scf@ [5]
Obtained from: http://www.virtualbox.org/changeset/25699 [6]
On behalf of: vbox@ (decke, dhn, itetcu, miwi, nox)
2010-01-13 09:03:17 +01:00
|
|
|
CATEGORIES= emulators
|
2012-09-12 22:15:53 +02:00
|
|
|
MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \
|
|
|
|
http://tmp.chruetertee.ch/ \
|
2009-06-15 20:01:41 +02:00
|
|
|
http://disasterarea.chruetertee.ch/ \
|
2012-03-08 16:23:53 +01:00
|
|
|
http://download.virtualbox.org/virtualbox/${VBOX_GUEST_VER}/:guestadditions
|
- Update to 4.0.8
- Add vboxheadless startscript [1]
- Add vboxwebsrv startscript [2]
- Change CONFLICTS to CONFLICTS_INSTALL [3]
- Relax hardening for PC-BSD 9 [4]
- Add VIMAGE support [5]
- Install VBoxExtPackHelperApp [6]
- Remove stale mirror
- Extend pkg-message for USB configuration
- Fix link_elf_obj: symbol RTStrCopy undefined [7]
PR: ports/156699 (based on) [3]
Submitted by: Stefan Tollkuehn <stefan.tollkuehn@editura.de>, [1][2]
Raul Gigea <raul.gigea@editura.de>, [1]
Tobias Oberstein <tobias.oberstein@tavendo.de>, [1]
Emil <the_mix_room@hotmail.com>, [3]
Kris Moore <kris@pcbsd.org>, [4]
Mikolaj Golub <to.my.trociny@gmail.com>, [5]
Mattia Rossi <mrossi@swin.edu.au>, [6]
Florian Smeets <flo@FreeBSD.org> [7]
Thanks to: dougb@, [1][2]
Cr4zi3/EFNet, [2]
crsd, [2]
beat@,
hps@,
Alexander Eichner,
all testers!
Approved by: bapt (vbox hat)
2011-05-22 15:51:59 +02:00
|
|
|
DISTFILES= VirtualBox-${DISTVERSION}${EXTRACT_SUFX} ${GADISTFILES}
|
|
|
|
EXTRACT_ONLY= VirtualBox-${DISTVERSION}${EXTRACT_SUFX}
|
2009-06-15 20:01:41 +02:00
|
|
|
|
|
|
|
MAINTAINER= vbox@FreeBSD.org
|
|
|
|
COMMENT= A general-purpose full virtualizer for x86 hardware
|
|
|
|
|
2012-08-27 14:53:40 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2009-06-15 20:01:41 +02:00
|
|
|
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm \
|
|
|
|
xsltproc:${PORTSDIR}/textproc/libxslt \
|
2013-01-03 14:40:28 +01:00
|
|
|
kmk:${PORTSDIR}/devel/kBuild \
|
2013-04-26 14:35:50 +02:00
|
|
|
gtar:${PORTSDIR}/archivers/gtar \
|
2014-01-23 18:18:42 +01:00
|
|
|
cdrecord:${PORTSDIR}/sysutils/cdrtools
|
2013-12-10 21:42:40 +01:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
|
|
|
|
libxslt.so:${PORTSDIR}/textproc/libxslt \
|
|
|
|
libcurl.so:${PORTSDIR}/ftp/curl
|
2014-03-04 01:45:37 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/vboxnet:${PORTSDIR}/emulators/virtualbox-ose-kmod \
|
2013-04-26 14:35:50 +02:00
|
|
|
cdrecord:${PORTSDIR}/sysutils/cdrtools
|
2009-06-15 20:01:41 +02:00
|
|
|
|
2012-03-15 10:32:29 +01:00
|
|
|
WRKSRC= ${WRKDIR}/VirtualBox-${PORTVERSION}
|
2009-06-15 20:01:41 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2014-03-29 00:35:31 +01:00
|
|
|
USES= compiler iconv pkgconfig tar:bzip2
|
2009-06-15 20:01:41 +02:00
|
|
|
USE_GNOME= libidl
|
2014-01-23 18:18:42 +01:00
|
|
|
USE_PYTHON_BUILD= yes
|
2009-06-15 20:01:41 +02:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2014-05-23 01:10:51 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-java --passive-mesa
|
|
|
|
CONFIGURE_ARGS+= --with-gcc="${CC}" --with-g++="${CXX}"
|
2009-06-15 20:01:41 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/virtualbox
|
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
CONFLICTS_INSTALL= virtualbox-ose-additions-4* \
|
|
|
|
virtualbox-ose-additions-devel-4* \
|
|
|
|
virtualbox-ose-devel-4* \
|
|
|
|
virtualbox-ose-legacy-4*
|
2009-06-15 20:01:41 +02:00
|
|
|
|
- Update to 4.0.8
- Add vboxheadless startscript [1]
- Add vboxwebsrv startscript [2]
- Change CONFLICTS to CONFLICTS_INSTALL [3]
- Relax hardening for PC-BSD 9 [4]
- Add VIMAGE support [5]
- Install VBoxExtPackHelperApp [6]
- Remove stale mirror
- Extend pkg-message for USB configuration
- Fix link_elf_obj: symbol RTStrCopy undefined [7]
PR: ports/156699 (based on) [3]
Submitted by: Stefan Tollkuehn <stefan.tollkuehn@editura.de>, [1][2]
Raul Gigea <raul.gigea@editura.de>, [1]
Tobias Oberstein <tobias.oberstein@tavendo.de>, [1]
Emil <the_mix_room@hotmail.com>, [3]
Kris Moore <kris@pcbsd.org>, [4]
Mikolaj Golub <to.my.trociny@gmail.com>, [5]
Mattia Rossi <mrossi@swin.edu.au>, [6]
Florian Smeets <flo@FreeBSD.org> [7]
Thanks to: dougb@, [1][2]
Cr4zi3/EFNet, [2]
crsd, [2]
beat@,
hps@,
Alexander Eichner,
all testers!
Approved by: bapt (vbox hat)
2011-05-22 15:51:59 +02:00
|
|
|
VBOXUSER?= vboxusers
|
|
|
|
VBOXWSUSER?= vboxusers
|
2009-06-15 20:01:41 +02:00
|
|
|
VBOXGROUP?= vboxusers
|
- Update to 4.0.8
- Add vboxheadless startscript [1]
- Add vboxwebsrv startscript [2]
- Change CONFLICTS to CONFLICTS_INSTALL [3]
- Relax hardening for PC-BSD 9 [4]
- Add VIMAGE support [5]
- Install VBoxExtPackHelperApp [6]
- Remove stale mirror
- Extend pkg-message for USB configuration
- Fix link_elf_obj: symbol RTStrCopy undefined [7]
PR: ports/156699 (based on) [3]
Submitted by: Stefan Tollkuehn <stefan.tollkuehn@editura.de>, [1][2]
Raul Gigea <raul.gigea@editura.de>, [1]
Tobias Oberstein <tobias.oberstein@tavendo.de>, [1]
Emil <the_mix_room@hotmail.com>, [3]
Kris Moore <kris@pcbsd.org>, [4]
Mikolaj Golub <to.my.trociny@gmail.com>, [5]
Mattia Rossi <mrossi@swin.edu.au>, [6]
Florian Smeets <flo@FreeBSD.org> [7]
Thanks to: dougb@, [1][2]
Cr4zi3/EFNet, [2]
crsd, [2]
beat@,
hps@,
Alexander Eichner,
all testers!
Approved by: bapt (vbox hat)
2011-05-22 15:51:59 +02:00
|
|
|
USERS= ${VBOXUSER}
|
2010-06-07 18:31:58 +02:00
|
|
|
GROUPS= ${VBOXGROUP}
|
2013-01-03 14:40:28 +01:00
|
|
|
VBOX_FRONTENDS= VBoxAutostart VBoxHeadless
|
emulators/virtualbox:
- Remove emulators/virtualbox port. Renamed to emulators/virtualbox-ose
and seperate port for the kernel modules created:
emulators/virtualbox-ose-kmod.
emulators/virtualbox-ose:
- Update to 3.1.2
- Update guest additions to 3.1.2
- Port has been renamed to virtualbox-ose to reflect that we are using
the OSE version. [1]
- Added proper PulseAudio support for FreeBSD [2]
- procfs is not required anymore because vbox uses sysctl(3) now [3]
- Update pkg-message to reflect recent changes
- Add nox's FreeBSD host networking patches that are now also in the
upstream vbox svn (modulo vbox variable naming style adjustments:)
http://lists.freebsd.org/pipermail/freebsd-emulation/2010-January/007260.html
http://www.virtualbox.org/changeset/25698
1. Allow direct tap networking again (for users that need the best
network performance and/or need more complex network setups, like when
they want to use routing instead of bridging to e.g. protect from guests
messing with the lan's arp tables; a tap + routing + proxy arp example
is in the above freebsd-emulation posting.)
2. Enable vbox' shared mac feature when using bridged mode on a wifi
interface, together with the virtualbox-ose-kmod change this
should fix bridged mode for wifi users. [4]
emulators/virtualbox-ose-kmod:
- Update to 3.1.2
- Add rc.d script to load kernel modules
- Fix build with a non-standard location for the system source [5]
- Merge aeichner's vboxnetflt fix committed to upstream vbox svn
(thanks!) that makes the shared mac feature enabled above actually work
on FreeBSD hosts. [6]
Please see http://wiki.freebsd.org/VirtualBox for update instructions.
Many thanks to the VirtualBox developers, all tester, patch submitter and
the whole vbox@ team.
PR: ports/141630 [2]
Noticed by: mm@ [1]
Submitted by: Noriyoshi Kawano <bowie AT nrik.jp> [2],
Baptiste Daroussin <baptiste.daroussin AT gmail.com> [3]
and Bernhard Froehlich <decke AT bluelife.at> [3],
nox@ [4], scf@ [5]
Obtained from: http://www.virtualbox.org/changeset/25699 [6]
On behalf of: vbox@ (decke, dhn, itetcu, miwi, nox)
2010-01-13 09:03:17 +01:00
|
|
|
VBOX_GUEST_VER= ${PORTVERSION}
|
2009-06-15 20:01:41 +02:00
|
|
|
|
2014-05-10 01:57:57 +02:00
|
|
|
OPTIONS_DEFINE= DBUS DEBUG GUESTADDITIONS MANUAL NLS PULSEAUDIO PYTHON \
|
|
|
|
QT4 UDPTUNNEL VDE VNC VPX WEBSERVICE X11
|
|
|
|
OPTIONS_DEFAULT= DBUS PYTHON QT4 UDPTUNNEL VNC WEBSERVICE X11
|
2014-03-04 01:45:37 +01:00
|
|
|
OPTIONS_SUB= yes
|
2014-05-23 01:10:51 +02:00
|
|
|
|
2013-01-03 14:40:28 +01:00
|
|
|
DEBUG_DESC= Debug symbols, additional logs and assertions
|
2014-05-23 01:10:51 +02:00
|
|
|
GUESTADDITIONS_DESC= Build with Guest Additions
|
2014-05-10 01:57:57 +02:00
|
|
|
MANUAL_DESC= Build with user manual
|
2012-06-30 09:21:54 +02:00
|
|
|
QT4_DESC= Build with QT4 Frontend
|
|
|
|
UDPTUNNEL_DESC= Build with UDP tunnel support
|
|
|
|
VDE_DESC= Build with VDE support
|
|
|
|
VNC_DESC= Build with VNC support
|
2014-01-23 18:18:42 +01:00
|
|
|
VPX_DESC= Use vpx for video capturing
|
2014-05-23 01:10:51 +02:00
|
|
|
WEBSERVICE_DESC= Build Webservice
|
2013-12-10 21:42:40 +01:00
|
|
|
|
|
|
|
DBUS_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus
|
2014-05-23 01:10:51 +02:00
|
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
|
2013-12-10 21:42:40 +01:00
|
|
|
VNC_LIB_DEPENDS= libvncserver.so:${PORTSDIR}/net/libvncserver
|
2014-01-23 18:18:42 +01:00
|
|
|
VPX_LIB_DEPENDS= libvpx.so:${PORTSDIR}/multimedia/libvpx
|
|
|
|
|
2013-12-10 21:42:40 +01:00
|
|
|
VDE_RUN_DEPENDS= vde_switch:${PORTSDIR}/net/vde2
|
2014-05-23 01:10:51 +02:00
|
|
|
|
|
|
|
DBUS_CONFIGURE_OFF= --disable-dbus
|
|
|
|
DEBUG_CONFIGURE_ON= --build-debug
|
|
|
|
MANUAL_CONFIGURE_OFF= --disable-docs
|
|
|
|
PULSEAUDIO_CONFIGURE_OFF= --disable-pulse
|
|
|
|
PYTHON_CONFIGURE_OFF= --disable-python
|
|
|
|
QT4_CONFIGURE_OFF= --disable-qt4
|
2013-12-10 21:42:40 +01:00
|
|
|
VDE_CONFIGURE_ON= --enable-vde
|
2014-05-23 01:10:51 +02:00
|
|
|
VNC_CONFIGURE_ON= --enable-vnc
|
|
|
|
VPX_CONFIGURE_OFF= --disable-libvpx
|
|
|
|
X11_CONFIGURE_OFF= --build-headless
|
2013-12-10 21:42:40 +01:00
|
|
|
|
2013-05-02 19:16:30 +02:00
|
|
|
# bmake doesn't know about unsetenv=true
|
|
|
|
.if defined(.PARSEDIR)
|
|
|
|
ENV=
|
|
|
|
.export ENV
|
|
|
|
.else
|
2013-01-03 14:40:28 +01:00
|
|
|
.SHELL: path="/bin/sh" unsetenv=true
|
2013-05-02 19:16:30 +02:00
|
|
|
.endif
|
2013-01-03 14:40:28 +01:00
|
|
|
|
2014-03-04 01:45:37 +01:00
|
|
|
PLIST_SUB+= GUEST_VER=${VBOX_GUEST_VER} \
|
|
|
|
PYTHON_VER=${PYTHON_VER} \
|
2009-09-11 01:16:56 +02:00
|
|
|
PYTHON_VERU=${PYTHON_VER:S/./_/} \
|
2014-03-04 01:45:37 +01:00
|
|
|
VBOXGROUP=${VBOXGROUP}
|
2009-09-11 01:16:56 +02:00
|
|
|
|
2013-12-10 21:42:40 +01:00
|
|
|
SUB_LIST+= VBOXUSER=${VBOXUSER} \
|
|
|
|
VBOXWSUSER=${VBOXWSUSER}
|
|
|
|
USE_RC_SUBR+= vboxheadless vboxwatchdog
|
- Update to 4.0.8
- Add vboxheadless startscript [1]
- Add vboxwebsrv startscript [2]
- Change CONFLICTS to CONFLICTS_INSTALL [3]
- Relax hardening for PC-BSD 9 [4]
- Add VIMAGE support [5]
- Install VBoxExtPackHelperApp [6]
- Remove stale mirror
- Extend pkg-message for USB configuration
- Fix link_elf_obj: symbol RTStrCopy undefined [7]
PR: ports/156699 (based on) [3]
Submitted by: Stefan Tollkuehn <stefan.tollkuehn@editura.de>, [1][2]
Raul Gigea <raul.gigea@editura.de>, [1]
Tobias Oberstein <tobias.oberstein@tavendo.de>, [1]
Emil <the_mix_room@hotmail.com>, [3]
Kris Moore <kris@pcbsd.org>, [4]
Mikolaj Golub <to.my.trociny@gmail.com>, [5]
Mattia Rossi <mrossi@swin.edu.au>, [6]
Florian Smeets <flo@FreeBSD.org> [7]
Thanks to: dougb@, [1][2]
Cr4zi3/EFNet, [2]
crsd, [2]
beat@,
hps@,
Alexander Eichner,
all testers!
Approved by: bapt (vbox hat)
2011-05-22 15:51:59 +02:00
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-06-15 20:01:41 +02:00
|
|
|
|
2012-06-30 09:21:54 +02:00
|
|
|
.if empty(PORT_OPTIONS:MQT4) && !empty(PORT_OPTIONS:MNLS)
|
2009-10-23 16:29:50 +02:00
|
|
|
BROKEN= NLS support requires QT4 frontend. Run 'make config' again!
|
|
|
|
.endif
|
|
|
|
|
2012-06-30 09:21:54 +02:00
|
|
|
.if empty(PORT_OPTIONS:MX11) && !empty(PORT_OPTIONS:MQT4)
|
2009-10-23 16:29:50 +02:00
|
|
|
BROKEN= QT4 frontend requires X11 support. Run 'make config' again!
|
|
|
|
.endif
|
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
|
|
KMK_BUILDTYPE= debug
|
2009-09-11 01:16:56 +02:00
|
|
|
.else
|
2014-05-23 01:10:51 +02:00
|
|
|
KMK_BUILDTYPE= release
|
2009-09-11 01:16:56 +02:00
|
|
|
.endif
|
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MGUESTADDITIONS}
|
|
|
|
GUESTADDITIONS= VBoxGuestAdditions_${VBOX_GUEST_VER}.iso
|
|
|
|
GADISTFILES= ${GUESTADDITIONS}:guestadditions
|
|
|
|
RESTRICTED= for personal use only
|
|
|
|
RESTRICTED_FILES= ${GUESTADDITIONS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMANUAL}
|
|
|
|
USE_TEX= dvipsk:build formats:build texlive
|
2009-06-15 20:01:41 +02:00
|
|
|
.endif
|
|
|
|
|
2014-01-23 18:18:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
|
|
USE_PYTHON= 2
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
PYDISTUTILS_PKGNAME= vboxapi
|
|
|
|
PYDISTUTILS_PKGVERSION= 1.0
|
|
|
|
PYDISTUTILS_NOEGGINFO= yes
|
2009-06-15 20:01:41 +02:00
|
|
|
.endif
|
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
|
|
QT_NONSTANDARD= yes
|
|
|
|
USE_QT4= linguist_build moc_build rcc_build uic_build
|
|
|
|
USE_QT4+= gui network opengl
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
VBOX_FRONTENDS+=VirtualBox VBoxTestOGL
|
2014-05-10 01:57:57 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-30 09:21:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MWEBSERVICE}
|
2010-06-07 18:31:58 +02:00
|
|
|
BUILD_DEPENDS+= soapcpp2:${PORTSDIR}/devel/gsoap
|
|
|
|
VBOX_WEB= vboxwebsrv webtest
|
- Update to 4.0.8
- Add vboxheadless startscript [1]
- Add vboxwebsrv startscript [2]
- Change CONFLICTS to CONFLICTS_INSTALL [3]
- Relax hardening for PC-BSD 9 [4]
- Add VIMAGE support [5]
- Install VBoxExtPackHelperApp [6]
- Remove stale mirror
- Extend pkg-message for USB configuration
- Fix link_elf_obj: symbol RTStrCopy undefined [7]
PR: ports/156699 (based on) [3]
Submitted by: Stefan Tollkuehn <stefan.tollkuehn@editura.de>, [1][2]
Raul Gigea <raul.gigea@editura.de>, [1]
Tobias Oberstein <tobias.oberstein@tavendo.de>, [1]
Emil <the_mix_room@hotmail.com>, [3]
Kris Moore <kris@pcbsd.org>, [4]
Mikolaj Golub <to.my.trociny@gmail.com>, [5]
Mattia Rossi <mrossi@swin.edu.au>, [6]
Florian Smeets <flo@FreeBSD.org> [7]
Thanks to: dougb@, [1][2]
Cr4zi3/EFNet, [2]
crsd, [2]
beat@,
hps@,
Alexander Eichner,
all testers!
Approved by: bapt (vbox hat)
2011-05-22 15:51:59 +02:00
|
|
|
USE_RC_SUBR+= vboxwebsrv
|
2010-06-07 18:31:58 +02:00
|
|
|
.endif
|
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
|
|
USE_SDL= sdl
|
|
|
|
USE_XORG= xcursor xmu inputproto xinerama
|
|
|
|
VBOX_FRONTENDS+=VBoxSDL
|
|
|
|
.endif
|
|
|
|
|
2009-06-15 20:01:41 +02:00
|
|
|
.if ${ARCH} == i386
|
|
|
|
KMK_ARCH= freebsd.x86
|
|
|
|
PLIST_SUB+= I386=""
|
|
|
|
.else
|
|
|
|
KMK_ARCH= freebsd.${ARCH}
|
|
|
|
PLIST_SUB+= I386="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-03 14:40:28 +01:00
|
|
|
PLIST_SUB+= ARCH="${KMK_ARCH}"
|
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
KMK_BUILDDIR= ${WRKSRC}/out/${KMK_ARCH}/${KMK_BUILDTYPE}
|
|
|
|
KMK_CONFIG= VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys
|
|
|
|
KMK_FLAGS= -j${MAKE_JOBS_NUMBER}
|
|
|
|
|
2012-07-02 01:41:31 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2014-01-23 18:18:42 +01:00
|
|
|
.if ${OSVERSION} < 900000
|
2014-03-04 01:45:37 +01:00
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-src-VBox-Devices-PC-vbox.dsl \
|
|
|
|
${PATCHDIR}/extrapatch-src-VBox-Main-src-server-generic-NetIf-generic.cpp
|
2010-06-29 21:01:08 +02:00
|
|
|
.endif
|
|
|
|
|
2014-03-29 00:35:31 +01:00
|
|
|
.if ${COMPILER_TYPE} == clang
|
|
|
|
PATCH_DEPENDS+= ${LOCALBASE}/share/kBuild/tools/GXX3.kmk:${PORTSDIR}/devel/kBuild
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-Config.kmk \
|
|
|
|
${PATCHDIR}/extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk \
|
|
|
|
${PATCHDIR}/extrapatch-src-recompiler-Makefile.kmk
|
|
|
|
.endif
|
|
|
|
|
2009-09-29 17:15:02 +02:00
|
|
|
pre-everything::
|
|
|
|
.if ${ARCH} == "amd64"
|
2012-02-21 15:31:55 +01:00
|
|
|
.if !exists(/usr/lib32/libc.so)
|
2009-09-29 17:15:02 +02:00
|
|
|
@${ECHO} 'Requires 32-bit libraries installed under /usr/lib32.'
|
2010-11-29 13:42:31 +01:00
|
|
|
@${ECHO} 'Do: cd /usr/src; make build32 install32; /etc/rc.d/ldconfig restart'
|
2009-09-29 17:15:02 +02:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2009-06-15 20:01:41 +02:00
|
|
|
post-patch:
|
2009-09-11 01:16:56 +02:00
|
|
|
@${ECHO} 'VBOX_PATH_APP_PRIVATE_ARCH = ${PREFIX}/lib/virtualbox' > ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_PATH_SHARED_LIBS = ${PREFIX}/lib/virtualbox' >> ${WRKSRC}/LocalConfig.kmk
|
2014-03-29 00:35:31 +01:00
|
|
|
@${ECHO} 'VBOX_WITH_RUNPATH = ${PREFIX}/lib/virtualbox' >> ${WRKSRC}/LocalConfig.kmk
|
2009-09-11 01:16:56 +02:00
|
|
|
@${ECHO} 'VBOX_PATH_APP_PRIVATE = ${DATADIR}' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_PATH_APP_DOCS = ${DOCSDIR}' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_WITH_INSTALLER = 1' >> ${WRKSRC}/LocalConfig.kmk
|
2014-04-08 19:59:45 +02:00
|
|
|
@${ECHO} 'VBOX_WITH_VBOXDRV =' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_WITH_TESTCASES =' >> ${WRKSRC}/LocalConfig.kmk
|
2010-04-18 11:37:05 +02:00
|
|
|
@${ECHO} 'SDK_VBOX_LIBPNG_INCS = ${PREFIX}/include/libpng' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'SDK_VBOX_LIBPNG_LIBS = png' >> ${WRKSRC}/LocalConfig.kmk
|
2014-04-08 19:59:45 +02:00
|
|
|
@${ECHO} 'VBOX_WITH_ADDITIONS =' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_WITH_X11_ADDITIONS =' >> ${WRKSRC}/LocalConfig.kmk
|
2012-06-30 09:21:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MUDPTUNNEL}
|
2012-02-21 15:31:55 +01:00
|
|
|
@${ECHO} 'VBOX_WITH_UDPTUNNEL = 1' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
.endif
|
2014-04-08 19:59:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MVNC}
|
|
|
|
@${ECHO} 'VBOX_WITH_EXTPACK_VNC = 1' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
.endif
|
2012-06-30 09:21:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MWEBSERVICE}
|
2010-06-07 18:31:58 +02:00
|
|
|
@${ECHO} 'VBOX_WITH_WEBSERVICES = 1' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_GSOAP_INSTALLED = 1' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_PATH_GSOAP = ${PREFIX}/lib/gsoap' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_PATH_GSOAP_BIN = ${PREFIX}/bin' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_PATH_GSOAP_IMPORT = ${PREFIX}/share/gsoap/import' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'VBOX_GCC_PEDANTIC_CXX = -Wshadow $(VBOX_GCC_WARN) -Wno-long-long' >> ${WRKSRC}/LocalConfig.kmk
|
2014-03-29 00:35:31 +01:00
|
|
|
.endif
|
|
|
|
.if ${COMPILER_TYPE} == clang
|
|
|
|
@${REINPLACE_CMD} -e 's| -finline-limit=8000||' \
|
|
|
|
-e 's| -mpreferred-stack-boundary=2||' ${WRKSRC}/Config.kmk
|
|
|
|
@${REINPLACE_CMD} -e 's| -fpermissive||' ${WRKSRC}/Config.kmk ${WRKSRC}/src/VBox/Main/webservice/Makefile.kmk
|
|
|
|
@${ECHO} 'VBOX_GCC_Wno-unused-parameter = -Wno-unused-parameter' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${ECHO} 'TOOL_VBoxGccFreeBSD_LD = ${CXX}' >> ${WRKSRC}/LocalConfig.kmk
|
|
|
|
@${SED} -e 's|GXX3|VBoxGccFreeBSD|g' ${LOCALBASE}/share/kBuild/tools/GXX3.kmk > ${WRKSRC}/tools/kBuildTools/VBoxGccFreeBSD.kmk
|
2009-09-11 01:16:56 +02:00
|
|
|
.endif
|
2009-06-15 20:01:41 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/Config.kmk ${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/kBuild/units/qt3.kmk ${WRKSRC}/kBuild/units/qt4.kmk \
|
2009-10-08 09:48:54 +02:00
|
|
|
${WRKSRC}/kBuild/sdks/LIBSDL.kmk \
|
|
|
|
${WRKSRC}/src/libs/xpcom18a4/python/gen_python_deps.py
|
2011-04-20 13:39:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|\$$KBUILDDIR_BIN/kmk_sed|${LOCALBASE}/bin/kmk_sed|g' ${WRKSRC}/configure
|
2013-09-04 20:06:07 +02:00
|
|
|
.if empty(ICONV_LIB)
|
|
|
|
@${REINPLACE_CMD} -e 's|iconv||' ${WRKSRC}/Config.kmk ${WRKSRC}/src/VBox/Runtime/Makefile.kmk
|
2014-02-21 22:22:56 +01:00
|
|
|
@${ECHO} 'VBOX_ICONV_DEFS = LIBICONV_PLUG' >> ${WRKSRC}/LocalConfig.kmk
|
2013-09-04 20:06:07 +02:00
|
|
|
.endif
|
2009-06-15 20:01:41 +02:00
|
|
|
|
|
|
|
pre-build:
|
2014-03-04 01:45:37 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/env.sh
|
2009-06-15 20:01:41 +02:00
|
|
|
|
|
|
|
do-build:
|
2014-03-04 01:45:37 +01:00
|
|
|
cd ${WRKSRC} && ${SH} env.sh && \
|
|
|
|
${KMK_CONFIG} ${LOCALBASE}/bin/kmk ${KMK_FLAGS}
|
2014-05-24 01:45:23 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
|
|
${PYTHON_CMD} -mcompileall ${KMK_BUILDDIR}/bin/sdk/bindings/xpcom/python/xpcom
|
|
|
|
.endif
|
2009-06-15 20:01:41 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-03-04 01:45:37 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2014-05-23 01:10:51 +02:00
|
|
|
cd ${KMK_BUILDDIR}/bin/sdk/bindings/xpcom && ${COPYTREE_SHARE} "idl samples" ${STAGEDIR}${DATADIR}
|
2009-08-14 18:10:23 +02:00
|
|
|
|
2014-03-04 01:45:37 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/virtualbox
|
2014-05-23 01:10:51 +02:00
|
|
|
cd ${KMK_BUILDDIR}/bin/sdk/bindings/xpcom/include && ${COPYTREE_SHARE} "*" ${STAGEDIR}${PREFIX}/include/virtualbox
|
2009-08-14 18:10:23 +02:00
|
|
|
|
2014-03-04 01:45:37 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/virtualbox
|
2014-05-23 01:10:51 +02:00
|
|
|
cd ${KMK_BUILDDIR}/bin && ${COPYTREE_SHARE} "*.so *.gc *.r0 *.fd components VBoxExtPackHelperApp" ${STAGEDIR}${PREFIX}/lib/virtualbox
|
2014-05-24 01:45:23 +02:00
|
|
|
${LN} -sf ${DATADIR}/sdk ${STAGEDIR}${PREFIX}/lib/virtualbox
|
2009-08-14 18:10:23 +02:00
|
|
|
|
2012-02-21 15:31:55 +01:00
|
|
|
.for f in VBoxManage VBoxNetAdpCtl VBoxNetDHCP VBoxSVC VBoxXPCOMIPCD VBoxBalloonCtrl ${VBOX_FRONTENDS} ${VBOX_WEB}
|
2014-05-23 01:10:51 +02:00
|
|
|
${INSTALL_PROGRAM} ${KMK_BUILDDIR}/bin/${f} ${STAGEDIR}${PREFIX}/lib/virtualbox/
|
2014-03-04 01:45:37 +01:00
|
|
|
${LN} -sf ${PREFIX}/lib/virtualbox/${f} ${STAGEDIR}${PREFIX}/bin/
|
2009-06-15 20:01:41 +02:00
|
|
|
.endfor
|
|
|
|
|
2012-06-30 09:21:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MGUESTADDITIONS}
|
2014-03-04 01:45:37 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/virtualbox/additions
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${GUESTADDITIONS} ${STAGEDIR}${PREFIX}/lib/virtualbox/additions/
|
|
|
|
${LN} -sf ${PREFIX}/lib/virtualbox/additions/${GUESTADDITIONS} ${STAGEDIR}${PREFIX}/lib/virtualbox/additions/VBoxGuestAdditions.iso
|
2009-06-15 20:01:41 +02:00
|
|
|
.endif
|
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MMANUAL}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${KMK_BUILDDIR}/bin/UserManual*.pdf ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
cd ${KMK_BUILDDIR}/obj/VirtualBox/qtnls && ${COPYTREE_SHARE} "*.qm" ${STAGEDIR}${DATADIR}/nls
|
|
|
|
.endif
|
|
|
|
|
2014-01-23 18:18:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2014-05-23 01:10:51 +02:00
|
|
|
cd ${KMK_BUILDDIR}/bin/sdk/installer && \
|
2014-05-24 01:48:13 +02:00
|
|
|
${SETENV} VBOX_INSTALL_PATH="${PREFIX}/lib/virtualbox" \
|
2014-03-04 01:45:37 +01:00
|
|
|
${PYTHON_CMD} vboxapisetup.py install --root=${STAGEDIR}
|
2009-09-11 01:16:56 +02:00
|
|
|
|
2014-05-24 01:45:23 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/xpcom
|
|
|
|
cd ${KMK_BUILDDIR}/bin/sdk/bindings/xpcom/python/xpcom && \
|
|
|
|
${COPYTREE_SHARE} "*" ${STAGEDIR}${PYTHON_SITELIBDIR}/xpcom
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/sdk/bindings/xpcom/python
|
|
|
|
${LN} -sf ${PYTHON_SITELIBDIR}/xpcom \
|
|
|
|
${STAGEDIR}${DATADIR}/sdk/bindings/xpcom/python
|
2014-01-23 18:18:42 +01:00
|
|
|
.endif
|
2009-08-14 18:10:23 +02:00
|
|
|
|
2012-06-30 09:21:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
2014-03-04 01:45:37 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_48px.png ${STAGEDIR}${PREFIX}/share/pixmaps/VBox.png
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/VBox/Installer/freebsd/virtualbox.desktop ${STAGEDIR}${PREFIX}/share/applications/virtualbox.desktop
|
2009-06-15 20:01:41 +02:00
|
|
|
.endif
|
|
|
|
|
2014-05-23 01:10:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MVNC}
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/virtualbox/ExtensionPacks/VNC/${KMK_ARCH}
|
|
|
|
${INSTALL_DATA} ${KMK_BUILDDIR}/bin/ExtensionPacks/VNC/ExtPack* ${STAGEDIR}${PREFIX}/lib/virtualbox/ExtensionPacks/VNC/
|
|
|
|
${INSTALL_LIB} ${KMK_BUILDDIR}/bin/ExtensionPacks/VNC/${KMK_ARCH}/* ${STAGEDIR}${PREFIX}/lib/virtualbox/ExtensionPacks/VNC/${KMK_ARCH}/
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWEBSERVICE}
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/sdk/bindings/webservice
|
|
|
|
.for f in vboxweb.wsdl
|
|
|
|
${INSTALL_DATA} ${KMK_BUILDDIR}/obj/webservice/${f} ${STAGEDIR}${DATADIR}/sdk/bindings/webservice/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2009-06-15 20:01:41 +02:00
|
|
|
.include <bsd.port.post.mk>
|