From 6b14439ceb05912bce32f4207006dee2f23becd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 8 Mar 2009 13:42:03 +0000 Subject: [PATCH] * Apply patch from monni for bug #3453: add https support to wget git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29437 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/network/wget/Jamfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/bin/network/wget/Jamfile b/src/bin/network/wget/Jamfile index 2c53e621fe..7a9333bbc6 100644 --- a/src/bin/network/wget/Jamfile +++ b/src/bin/network/wget/Jamfile @@ -8,6 +8,21 @@ local defines = [ FDefines HAVE_CONFIG_H=1 ] ; SubDirCcFlags $(defines) ; SubDirC++Flags $(defines) ; +local SSL_FILES ; +local SSL_LIBS ; + +if $(USE_SSL) { + SubDirCcFlags -DHAVE_LIBSSL ; + if ! $(SSL_DIR) { + sslDir = [ FDirName $(HAIKU_OUTPUT_DIR) cross-ssl common ] ; + } else { + sslDir = $(SSL_DIR) ; + } + SubDirSysHdrs [ FDirName $(sslDir) include ] ; + SSL_FILES = openssl.c ; + SSL_LIBS = $(sslDir)/lib/libssl.so $(sslDir)/lib/libcrypto.so ; +} + BinCommand wget : cmpt.c connect.c @@ -40,5 +55,6 @@ BinCommand wget : utils.c version.c xmalloc.c - : $(TARGET_NETWORK_LIBS) + $(SSL_FILES) + : $(TARGET_NETWORK_LIBS) $(SSL_LIBS) ;