mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
General status: * VirtualBox 7.1.x is still not fully ported to FreeBSD, so we are adding 7.0.x in experimental/test mode. * 7.0.x is being tested on hosts of several FreeBSD developers and users. * As far as we know, 7.0.x has the same system requirements as 6.1.x - amd64 with VT-x (we even tested it on Core 2 Duo E6xxx), so after confirming stability with more users, 7.0.x is expected to replace 6.1.x. * The following ports also need to be created for this replacement: - emulators/virtualbox-ose-additions-70; - emulators/virtualbox-ose-additions-nox11-70; - www/phpvirtualbox-70. * If 7.1.x has the same system requirements, then when we port 7.1.x, it will replace 7.0.x. This patch is a joint effort by several FreeBSD developers and users. Thanks to everyone involved! Changelog: https://www.virtualbox.org/wiki/Changelog-7.0 PR: 271146
117 lines
4.2 KiB
Text
117 lines
4.2 KiB
Text
--- configure.orig 2024-10-10 20:19:24.000000000 +0200
|
|
+++ configure 2024-12-27 13:12:46.010746000 +0100
|
|
@@ -154,10 +154,14 @@
|
|
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"
|
|
@@ -1207,6 +1211,9 @@
|
|
printf("found version %d.%d.%d",
|
|
SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
|
|
#if SDL_VERSION_ATLEAST(1,2,7)
|
|
+#if !defined(SDL_VIDEO_DRIVER_X11)
|
|
+#error SDL must be compiled with X11 support
|
|
+#endif
|
|
printf(", OK.\n");
|
|
return 0;
|
|
#else
|
|
@@ -1291,7 +1298,7 @@
|
|
#endif
|
|
}
|
|
EOF
|
|
- if test_compile "-lasound" asound asound; then
|
|
+ if test_compile "$INCALSA $LIBALSA -lasound" asound asound; then
|
|
test_execute
|
|
fi
|
|
}
|
|
@@ -1605,6 +1612,7 @@
|
|
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 * 100 + $cc_min)) -ge 408 ] && FLGQT5="$FLGQT5 -std=c++11"
|
|
+ FLGQT5="$FLGQT5 -std=c++11"
|
|
INCQT5=`strip_I "$FLGQT5"`
|
|
LIBDIR5=`pkg-config Qt5Core --variable=libdir`
|
|
LIBQT5=`pkg-config Qt5Core Qt5Gui --libs`
|
|
@@ -2180,8 +2188,8 @@
|
|
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
|
|
@@ -2297,7 +2305,7 @@
|
|
else
|
|
cnf_append "VBOX_GSOAP_CXX_SOURCES" ""
|
|
fi
|
|
- cnf_append "VBOX_GSOAP_CXX_LIBS" "`strip_l "$GSOAP_CXX_LIBS"`"
|
|
+ cnf_append "VBOX_GSOAP_CXX_LIBS" "`strip_l "$GSOAP_CXX_LIBS"` z"
|
|
gsoap_version=`pkg-config gsoapssl++ --modversion`
|
|
log_success "found version $gsoap_version"
|
|
return
|
|
@@ -2661,7 +2669,7 @@
|
|
--with-openssl-dir=*)
|
|
OPENSSLDIR=`echo $option | cut -d'=' -f2`
|
|
INCCRYPTO="-I${OPENSSLDIR}/include"
|
|
- LIBCRYPTO="${OPENSSLDIR}/lib/libssl.a ${OPENSSLDIR}/lib/libcrypto.a"
|
|
+ LIBCRYPTO="-L${OPENSSLDIR}/lib -lssl -lcrypto"
|
|
# On Darwin (at least for macports) static OpenSSL also needs zlib.
|
|
[ "$OS" = "darwin" ] && LIBCRYPTO="$LIBCRYPTO ${OPENSSLDIR}/lib/libz.a"
|
|
# On Linux static OpenSSL typically needs a few additional libraries.
|
|
@@ -3028,12 +3036,22 @@
|
|
[ $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"
|
|
+ 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
|
|
|
|
@@ -3049,14 +3067,6 @@
|
|
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
|