diff options
author | marcus <marcus@FreeBSD.org> | 2004-05-03 13:35:11 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-05-03 13:35:11 +0800 |
commit | b38b7bc9cb8d51bc9e53d5256fd42c76e2bd99ea (patch) | |
tree | 7476a418891d708c284ebc3fd4ccea29c4b1a0b3 /net/libgnetwork | |
parent | b43665394096a3b5aa9d1c5eec88603a1eeed65e (diff) | |
download | freebsd-ports-gnome-b38b7bc9cb8d51bc9e53d5256fd42c76e2bd99ea.tar.gz freebsd-ports-gnome-b38b7bc9cb8d51bc9e53d5256fd42c76e2bd99ea.tar.zst freebsd-ports-gnome-b38b7bc9cb8d51bc9e53d5256fd42c76e2bd99ea.zip |
Fix the build in the case that SSL is not enabled (the default until this
port adds support for GnuTLS 1.0).
Reported by: bento
Diffstat (limited to 'net/libgnetwork')
-rw-r--r-- | net/libgnetwork/Makefile | 4 | ||||
-rw-r--r-- | net/libgnetwork/files/patch-libgnetwork_gnetwork-tcp-connection.c | 20 |
2 files changed, 22 insertions, 2 deletions
diff --git a/net/libgnetwork/Makefile b/net/libgnetwork/Makefile index d30fb741369c..6cd132c97347 100644 --- a/net/libgnetwork/Makefile +++ b/net/libgnetwork/Makefile @@ -22,8 +22,8 @@ USE_GNOME= gnomeprefix gnomehack intlhack gconf2 INSTALLS_SHLIB= yes USE_LIBTOOL_VER=13 USE_GMAKE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" -LDFLAGS+= -L${LOCALBASE}/lib +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" #.if !defined(WITHOUT_SSL) #LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls diff --git a/net/libgnetwork/files/patch-libgnetwork_gnetwork-tcp-connection.c b/net/libgnetwork/files/patch-libgnetwork_gnetwork-tcp-connection.c new file mode 100644 index 000000000000..a700f9f42fa1 --- /dev/null +++ b/net/libgnetwork/files/patch-libgnetwork_gnetwork-tcp-connection.c @@ -0,0 +1,20 @@ +--- libgnetwork/gnetwork-tcp-connection.c.orig Mon May 3 01:29:58 2004 ++++ libgnetwork/gnetwork-tcp-connection.c Mon May 3 01:32:55 2004 +@@ -450,6 +450,7 @@ + static void + open_ssl_connection (GNetworkTcpConnection * connection) + { ++#ifdef _USE_SSL + GIOChannel *channel; + GNetworkSslAuth *auth; + GError *error; +@@ -517,6 +518,9 @@ + g_object_notify (G_OBJECT (connection), "tcp-status"); + g_object_notify (G_OBJECT (connection), "status"); + g_object_thaw_notify (G_OBJECT (connection)); ++#else ++ g_warning ("SSL support not enabled."); ++#endif + } + + |