mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 10:36:38 -04:00
- Old VirtualBox OSE 5.2.44 preserved as "-legacy" versions of the ports (repocopied) - Add back extra patch removed in r528258, actually required to build DEBUG kmod - Correctly define WITH_DEBUG when enabling the DEBUG option, so binaries are not stripped Please note that this new version supports only amd64 CPUs. If you need to use older hardware please install the legacy ports. Note that moving VM snapshots across major updates is unsupported, it's strongly suggested to properly shutdown VMs before upgrading, please check UPDATING for further details. This update is the result of work from many people, and thanks to all who gave feedback and tested things. Patch based on work from: Mario Lobo <lobo@bsd.com.br> and jkim. PR: 234878 Submitted by: kunda <chitty_cloud@me.com> Approved by: vbox (implicit) Reviewed by: decke Tested by: jwb, martin ilavsky <ilavsky.martin@gmail.com>, Mario Lobo <lobo@bsd.com.br> Relnotes: https://www.virtualbox.org/wiki/Changelog-6.1 Differential Revision: https://reviews.freebsd.org/D28871
113 lines
3.9 KiB
Text
113 lines
3.9 KiB
Text
--- configure.orig 2021-01-07 15:31:21 UTC
|
|
+++ configure
|
|
@@ -140,10 +140,14 @@ CXX_FLAGS=""
|
|
if [ "$OS" = "freebsd" ]; then
|
|
INCCURL="-I/usr/local/include"
|
|
LIBCURL="-L/usr/local/lib -lcurl"
|
|
+ INCALSA="-I/usr/local/include"
|
|
+ LIBALSA="-L/usr/local/lib"
|
|
INCPULSE="-I/usr/local/include"
|
|
LIBPULSE="-L/usr/local/lib"
|
|
INCPNG="-I/usr/local/include"
|
|
LIBPNG="-L/usr/local/lib -lpng"
|
|
+ INCVNCSERVER="-I/usr/local/include"
|
|
+ LIBVNCSERVER="-L/usr/local/lib"
|
|
else
|
|
INCCURL=""
|
|
LIBCURL="-lcurl"
|
|
@@ -1258,7 +1262,7 @@ extern "C" int main(void)
|
|
#endif
|
|
}
|
|
EOF
|
|
- if test_compile "-lasound" asound asound; then
|
|
+ if test_compile "$INCALSA $LIBALSA -lasound" asound asound; then
|
|
test_execute
|
|
fi
|
|
}
|
|
@@ -1563,9 +1567,7 @@ EOF
|
|
if [ $? -eq 0 ]; then
|
|
echo "(Qt5 from pkg-config)" >> $LOG
|
|
FLGQT5=`pkg-config Qt5Core --cflags`
|
|
- # gcc 4.8 is able to compile with C++11 (see also VBOX_GCC_std in Config.kmk)
|
|
- [ $cc_maj -eq 4 -a $cc_min -eq 8 ] && FLGQT5="$FLGQT5 -std=c++11"
|
|
- INCQT5=`strip_I "$FLGQT5"`
|
|
+ FLGQT5="$FLGQT5 -std=c++11" INCQT5=`strip_I "$FLGQT5"`
|
|
LIBDIR5=`pkg-config Qt5Core --variable=libdir`
|
|
LIBQT5=`pkg-config Qt5Core --libs`
|
|
LIBQT5="-L$LIBDIR5 $LIBQT5"
|
|
@@ -1703,7 +1705,7 @@ check_libopus()
|
|
fi
|
|
cat > $ODIR.tmp_src.cc << EOF
|
|
#include <cstdio>
|
|
-#include <opus/opus.h>
|
|
+#include <opus.h>
|
|
extern "C" int main(void)
|
|
{
|
|
OpusEncoder *test;
|
|
@@ -2035,8 +2037,8 @@ EOF
|
|
echo "compiling the following source file:" >> $LOG
|
|
cat $ODIR.tmp_src.cc >> $LOG
|
|
echo "using the following command line:" >> $LOG
|
|
- echo "$CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so" >> $LOG
|
|
- $CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so >> $LOG 2>&1
|
|
+ echo "$CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so -pthread" >> $LOG
|
|
+ $CXX -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.cc -I$p/include/$d $p/$b/lib$d.so -pthread >> $LOG 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
found=1
|
|
break
|
|
@@ -2512,7 +2514,7 @@ for option in "$@"; do
|
|
--with-openssl-dir=*)
|
|
OPENSSLDIR=`echo $option | cut -d'=' -f2`
|
|
INCCRYPTO="-I${OPENSSLDIR}/include"
|
|
- LIBCRYPTO="${OPENSSLDIR}/lib/libcrypto.a ${OPENSSLDIR}/lib/libssl.a"
|
|
+ LIBCRYPTO="-L${OPENSSLDIR}/lib -lssl -lcrypto"
|
|
;;
|
|
--with-ow-dir=*)
|
|
WATCOM=`echo $option | cut -d'=' -f2`
|
|
@@ -2856,14 +2858,23 @@ if [ $ONLY_ADDITIONS -eq 0 ]; then
|
|
[ $WITH_PYTHON -eq 1 ] && check_python
|
|
[ $WITH_JAVA -eq 1 ] && check_java
|
|
|
|
- # PulseAudio
|
|
- if [ $WITH_PULSE -eq 1 ]; then
|
|
- check_pulse
|
|
- elif [ $WITH_PULSE -eq 0 ]; then # Force disabling PulseAudio.
|
|
- cnf_append "VBOX_WITH_AUDIO_PULSE" ""
|
|
- elif [ $WITH_PULSE -eq 2 ]; then # --enable-pulse was passed, force PulseAudio.
|
|
- cnf_append "VBOX_WITH_AUDIO_PULSE" "1"
|
|
- fi
|
|
+ if [ "$OS" = "linux" -o "$OS" = "freebsd" -o "$OS" = "netbsd" ]; then
|
|
+ if [ $WITH_ALSA -eq 1 ]; then
|
|
+ check_alsa
|
|
+ else
|
|
+ cnf_append "VBOX_WITH_AUDIO_ALSA" ""
|
|
+ fi
|
|
+ if [ $WITH_PULSE -eq 1 ]; then
|
|
+ check_pulse
|
|
+ elif [ $WITH_PULSE -eq 0 ]; then # Force disabling PulseAudio.
|
|
+ cnf_append "VBOX_WITH_AUDIO_PULSE" ""
|
|
+ elif [ $WITH_PULSE -eq 2 ]; then # --enable-pulse was passed, force PulseAudio.
|
|
+ cnf_append "VBOX_WITH_AUDIO_PULSE" "1"
|
|
+ fi
|
|
+ if [ $WITH_DBUS -eq 0 ]; then
|
|
+ cnf_append "VBOX_WITH_DBUS" ""
|
|
+ fi
|
|
+ fi
|
|
fi
|
|
|
|
# Linux-specific
|
|
@@ -2878,14 +2889,6 @@ if [ "$OS" = "linux" ]; then
|
|
cnf_append "VBOX_WITHOUT_LINUX_TEST_BUILDS" "1"
|
|
fi
|
|
if [ $ONLY_ADDITIONS -eq 0 ]; then
|
|
- if [ $WITH_ALSA -eq 1 ]; then
|
|
- check_alsa
|
|
- else
|
|
- cnf_append "VBOX_WITH_AUDIO_ALSA" ""
|
|
- fi
|
|
- if [ $WITH_DBUS -eq 0 ]; then
|
|
- cnf_append "VBOX_WITH_DBUS" ""
|
|
- fi
|
|
if [ $WITH_DEVMAPPER -eq 1 ]; then
|
|
check_libdevmapper
|
|
else
|