svn commit: r386475 - in head/emulators/virtualbox-ose: . files
Jung-uk Kim
jkim at FreeBSD.org
Fri May 15 19:29:11 UTC 2015
Author: jkim
Date: Fri May 15 19:29:10 2015
New Revision: 386475
URL: https://svnweb.freebsd.org/changeset/ports/386475
Log:
Fix build without OpenSSL in the base.
PR: 199377
Modified:
head/emulators/virtualbox-ose/Makefile
head/emulators/virtualbox-ose/files/patch-configure
Modified: head/emulators/virtualbox-ose/Makefile
==============================================================================
--- head/emulators/virtualbox-ose/Makefile Fri May 15 19:21:54 2015 (r386474)
+++ head/emulators/virtualbox-ose/Makefile Fri May 15 19:29:10 2015 (r386475)
@@ -36,6 +36,7 @@ ONLY_FOR_ARCHS= i386 amd64
USES= compiler cpe iconv pkgconfig tar:bzip2
USE_GNOME= libidl
USE_LDCONFIG= ${VBOX_DIR}
+USE_OPENSSL= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-java --passive-mesa
@@ -206,6 +207,10 @@ EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-C
${PATCHDIR}/extrapatch-src-recompiler-Makefile.kmk
.endif
+.if !defined(WITH_OPENSSL_BASE)
+CONFIGURE_ARGS+= --with-openssl-dir="${OPENSSLBASE}"
+.endif
+
pre-everything::
.if ${ARCH} == "amd64"
.if !exists(/usr/lib32/libc.so)
Modified: head/emulators/virtualbox-ose/files/patch-configure
==============================================================================
--- head/emulators/virtualbox-ose/files/patch-configure Fri May 15 19:21:54 2015 (r386474)
+++ head/emulators/virtualbox-ose/files/patch-configure Fri May 15 19:29:10 2015 (r386475)
@@ -1,6 +1,6 @@
---- configure.orig 2012-03-16 10:34:01.000000000 +0100
-+++ configure 2012-03-24 18:52:57.271018829 +0100
-@@ -135,6 +135,8 @@
+--- configure.orig 2015-05-13 11:08:57.000000000 -0400
++++ configure 2015-05-15 14:16:05.988372000 -0400
+@@ -140,6 +140,8 @@
LIBPULSE="-L/usr/local/lib"
INCPNG="-I/usr/local/include"
LIBPNG="-L/usr/local/lib -lpng"
@@ -9,7 +9,7 @@
else
INCCURL=""
LIBCURL="-lcurl"
-@@ -1837,8 +1839,8 @@
+@@ -1947,8 +1949,8 @@
echo "compiling the following source file:" >> $LOG
cat $ODIR.tmp_src.cc >> $LOG
echo "using the following command line:" >> $LOG
@@ -20,3 +20,12 @@
if [ $? -eq 0 ]; then
found=1
break
+@@ -2357,7 +2359,7 @@
+ --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 -lcrypto -lssl"
+ ;;
+ --with-ow-dir=*)
+ WATCOM=`echo $option | cut -d'=' -f2`
More information about the svn-ports-all
mailing list