aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/virtualbox-ose
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2016-09-13 06:52:05 +0800
committerJung-uk Kim <jkim@FreeBSD.org>2016-09-13 06:52:05 +0800
commit1563c9ac553e3e6876273555a15ce5dcbc839743 (patch)
tree70967bdac50eb3907dfd50c6f7627907a12910cf /emulators/virtualbox-ose
parent776bc7d758d00ff011c68b98720088650f240054 (diff)
downloadfreebsd-ports-gnome-1563c9ac553e3e6876273555a15ce5dcbc839743.tar.gz
freebsd-ports-gnome-1563c9ac553e3e6876273555a15ce5dcbc839743.tar.zst
freebsd-ports-gnome-1563c9ac553e3e6876273555a15ce5dcbc839743.zip
Update to 5.1.6.
Diffstat (limited to 'emulators/virtualbox-ose')
-rw-r--r--emulators/virtualbox-ose/Makefile8
-rw-r--r--emulators/virtualbox-ose/distinfo10
-rw-r--r--emulators/virtualbox-ose/files/patch-configure21
-rw-r--r--emulators/virtualbox-ose/files/patch-src_VBox_Devices_Audio_DrvHostOSSAudio.cpp46
4 files changed, 19 insertions, 66 deletions
diff --git a/emulators/virtualbox-ose/Makefile b/emulators/virtualbox-ose/Makefile
index 965c09c12b45..8f5a34f39d17 100644
--- a/emulators/virtualbox-ose/Makefile
+++ b/emulators/virtualbox-ose/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= virtualbox-ose
-PORTVERSION= 5.1.4
+PORTVERSION= 5.1.6
CATEGORIES= emulators
MASTER_SITES= http://download.virtualbox.org/virtualbox/${PORTVERSION}/
DISTFILES= VirtualBox-${PORTVERSION}${EXTRACT_SUFX} ${GUESTADDITIONS}
@@ -280,12 +280,6 @@ post-patch:
${WRKSRC}/LocalConfig.kmk
@${ECHO} 'VBOX_WITH_VALIDATIONKIT =' >> ${WRKSRC}/LocalConfig.kmk
@${ECHO} 'VBOX_WITH_X11_ADDITIONS =' >> ${WRKSRC}/LocalConfig.kmk
-.if empty(PORT_OPTIONS:MALSA)
- @${ECHO} 'VBOX_WITH_AUDIO_ALSA =' >> ${WRKSRC}/LocalConfig.kmk
-.endif
-.if empty(PORT_OPTIONS:MPULSEAUDIO)
- @${ECHO} 'VBOX_WITH_AUDIO_PULSE =' >> ${WRKSRC}/LocalConfig.kmk
-.endif
.if ${PORT_OPTIONS:MQT4}
@${ECHO} 'TOOL_QT4_BIN_SUFF = -qt4' >> ${WRKSRC}/LocalConfig.kmk
.endif
diff --git a/emulators/virtualbox-ose/distinfo b/emulators/virtualbox-ose/distinfo
index 26883ddcd6fa..95a07bfad3c0 100644
--- a/emulators/virtualbox-ose/distinfo
+++ b/emulators/virtualbox-ose/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1472243715
-SHA256 (VirtualBox-5.1.4.tar.bz2) = b9a14a7771059c55c44b97f8d4eef9bea84544f3e215e0caa563bc35e2f16aaf
-SIZE (VirtualBox-5.1.4.tar.bz2) = 114642581
-SHA256 (VBoxGuestAdditions_5.1.4.iso) = e385b698338003595f6cdeee7b631ec6713058ba1227d1f2a1da342bdf741982
-SIZE (VBoxGuestAdditions_5.1.4.iso) = 59262976
+TIMESTAMP = 1473714391
+SHA256 (VirtualBox-5.1.6.tar.bz2) = 2e0112b0d85841587b8f212e6ba8f6c35b31e1cce6b6999497dc917cd37e6911
+SIZE (VirtualBox-5.1.6.tar.bz2) = 114669517
+SHA256 (VBoxGuestAdditions_5.1.6.iso) = cbcf9b9b1000e09911b3d20e1efe529aef8a945cf130f6abffc14a39522cc1ed
+SIZE (VBoxGuestAdditions_5.1.6.iso) = 59258880
diff --git a/emulators/virtualbox-ose/files/patch-configure b/emulators/virtualbox-ose/files/patch-configure
index bfdf2a2ae812..82994e000506 100644
--- a/emulators/virtualbox-ose/files/patch-configure
+++ b/emulators/virtualbox-ose/files/patch-configure
@@ -1,4 +1,4 @@
---- configure.orig 2016-08-16 19:55:20 UTC
+--- configure.orig 2016-09-12 16:11:24 UTC
+++ configure
@@ -140,10 +140,14 @@ CXX_FLAGS=""
if [ "$OS" = "freebsd" ]; then
@@ -54,7 +54,7 @@
;;
--with-ow-dir=*)
WATCOM=`echo $option | cut -d'=' -f2`
-@@ -2942,8 +2949,15 @@ if [ $ONLY_ADDITIONS -eq 0 ]; then
+@@ -2944,13 +2951,20 @@ if [ $ONLY_ADDITIONS -eq 0 ]; then
[ $WITH_PYTHON -eq 1 ] && check_python
[ $WITH_JAVA -eq 1 ] && check_java
@@ -63,22 +63,27 @@
+ if [ $WITH_ALSA -eq 1 ]; then
+ check_alsa
+ else
-+ cnf_append "VBOX_WITH_ALSA" ""
-+ fi
-+ if [ $WITH_DBUS -eq 0 ]; then
-+ cnf_append "VBOX_WITH_DBUS" ""
++ cnf_append "VBOX_WITH_AUDIO_ALSA" ""
+ fi
if [ $WITH_PULSE -eq 1 ]; then
check_pulse
elif [ $WITH_PULSE -eq 0 ]; then
-@@ -2965,14 +2979,6 @@ if [ "$OS" = "linux" ]; then
+ cnf_append "VBOX_WITH_AUDIO_PULSE" ""
+ fi
++ if [ $WITH_DBUS -eq 0 ]; then
++ cnf_append "VBOX_WITH_DBUS" ""
++ fi
+ fi
+ fi
+
+@@ -2967,14 +2981,6 @@ if [ "$OS" = "linux" ]; then
cnf_append "VBOX_WITH_ADDITION_DRIVERS" ""
fi
if [ $ONLY_ADDITIONS -eq 0 ]; then
- if [ $WITH_ALSA -eq 1 ]; then
- check_alsa
- else
-- cnf_append "VBOX_WITH_ALSA" ""
+- cnf_append "VBOX_WITH_AUDIO_ALSA" ""
- fi
- if [ $WITH_DBUS -eq 0 ]; then
- cnf_append "VBOX_WITH_DBUS" ""
diff --git a/emulators/virtualbox-ose/files/patch-src_VBox_Devices_Audio_DrvHostOSSAudio.cpp b/emulators/virtualbox-ose/files/patch-src_VBox_Devices_Audio_DrvHostOSSAudio.cpp
deleted file mode 100644
index ccaaea1fb88c..000000000000
--- a/emulators/virtualbox-ose/files/patch-src_VBox_Devices_Audio_DrvHostOSSAudio.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
---- src/VBox/Devices/Audio/DrvHostOSSAudio.cpp.orig 2016-08-16 19:57:22 UTC
-+++ src/VBox/Devices/Audio/DrvHostOSSAudio.cpp
-@@ -254,14 +254,14 @@ static int ossStreamClose(int *phFile)
- }
-
-
--static int ossStreamOpen(const char *pszDev, int fOpen, POSSAUDIOSTREAMCFG pReq, POSSAUDIOSTREAMCFG pObt, int *phFile)
-+static int ossStreamOpen(const char *pszDev, bool fIn, POSSAUDIOSTREAMCFG pReq, POSSAUDIOSTREAMCFG pObt, int *phFile)
- {
- int rc;
-
- int hFile = -1;
- do
- {
-- hFile = open(pszDev, fOpen);
-+ hFile = open(pszDev, (fIn ? O_RDONLY : O_WRONLY) | O_NONBLOCK);
- if (hFile == -1)
- {
- LogRel(("OSS: Failed to open %s: %s (%d)\n", pszDev, strerror(errno), errno));
-@@ -312,7 +312,7 @@ static int ossStreamOpen(const char *psz
- }
-
- audio_buf_info abinfo;
-- if (ioctl(hFile, (fOpen & O_RDONLY) ? SNDCTL_DSP_GETISPACE : SNDCTL_DSP_GETOSPACE, &abinfo))
-+ if (ioctl(hFile, fIn ? SNDCTL_DSP_GETISPACE : SNDCTL_DSP_GETOSPACE, &abinfo))
- {
- LogRel(("OSS: Failed to retrieve buffer length: %s (%d)\n", strerror(errno), errno));
- rc = RTErrConvertFromErrno(errno);
-@@ -670,7 +670,7 @@ static int ossCreateStreamIn(PPDMAUDIOST
- reqStream.cFragments = s_OSSConf.nfrags;
- reqStream.cbFragmentSize = s_OSSConf.fragsize;
-
-- rc = ossStreamOpen(s_OSSConf.devpath_in, O_RDONLY | O_NONBLOCK, &reqStream, &obtStream, &hFile);
-+ rc = ossStreamOpen(s_OSSConf.devpath_in, true /* fIn */, &reqStream, &obtStream, &hFile);
- if (RT_SUCCESS(rc))
- {
- pCfgAcq->enmFormat = obtStream.enmFormat;
-@@ -742,7 +742,7 @@ static int ossCreateStreamOut(PPDMAUDIOS
- reqStream.cFragments = s_OSSConf.nfrags;
- reqStream.cbFragmentSize = s_OSSConf.fragsize;
-
-- rc = ossStreamOpen(s_OSSConf.devpath_out, O_WRONLY | O_NONBLOCK, &reqStream, &obtStream, &hFile);
-+ rc = ossStreamOpen(s_OSSConf.devpath_out, false /* fIn */, &reqStream, &obtStream, &hFile);
- if (RT_SUCCESS(rc))
- {
- pCfgAcq->enmFormat = obtStream.enmFormat;