View | Details | Raw Unified | Return to bug 167826
Collapse All | Expand All

(-)irc/xchat/Makefile (+6 lines)
Lines 36-41 Link Here
36
		NOTIFY "Depend on libnotify for notifications" off \
36
		NOTIFY "Depend on libnotify for notifications" off \
37
		PERL "Enable Perl support" on \
37
		PERL "Enable Perl support" on \
38
		PYTHON "Enable Python support" off \
38
		PYTHON "Enable Python support" off \
39
		SOCKS "Build with socks5 support" off \
39
		TCL "Enable TCL support" off
40
		TCL "Enable TCL support" off
40
41
41
.if defined(WITH_PYTHON)
42
.if defined(WITH_PYTHON)
Lines 98-103 Link Here
98
PLIST_SUB+=	PYTHON="@comment "
99
PLIST_SUB+=	PYTHON="@comment "
99
.endif
100
.endif
100
101
102
.if defined(WITH_SOCKS)
103
LIB_DEPENDS+=	socks.1:${PORTSDIR}/net/dante
104
CONFIGURE_ARGS+=--enable-socks
105
.endif
106
101
.if defined(WITH_TCL)
107
.if defined(WITH_TCL)
102
USE_TCL=	84+
108
USE_TCL=	84+
103
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
109
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
(-)irc/xchat/files/patch-socks (+64 lines)
Added Link Here
1
--- configure.orig
2
+++ configure
3
@@ -18485,13 +18485,13 @@
4
 
5
 if test "$socks" = yes; then
6
 	socks=no
7
-	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCKSconnect in -lsocks5" >&5
8
-$as_echo_n "checking for SOCKSconnect in -lsocks5... " >&6; }
9
-if test "${ac_cv_lib_socks5_SOCKSconnect+set}" = set; then :
10
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Rconnect in -lsocks" >&5
11
+$as_echo_n "checking for Rconnect in -lsocks... " >&6; }
12
+if test "${ac_cv_lib_socks_Rconnect+set}" = set; then :
13
   $as_echo_n "(cached) " >&6
14
 else
15
   ac_check_lib_save_LIBS=$LIBS
16
-LIBS="-lsocks5  $LIBS"
17
+LIBS="-lsocks  $LIBS"
18
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19
 /* end confdefs.h.  */
20
 
21
@@ -18501,27 +18501,27 @@
22
 #ifdef __cplusplus
23
 extern "C"
24
 #endif
25
-char SOCKSconnect ();
26
+char Rconnect ();
27
 int
28
 main ()
29
 {
30
-return SOCKSconnect ();
31
+return Rconnect ();
32
   ;
33
   return 0;
34
 }
35
 _ACEOF
36
 if ac_fn_c_try_link "$LINENO"; then :
37
-  ac_cv_lib_socks5_SOCKSconnect=yes
38
+  ac_cv_lib_socks_Rconnect=yes
39
 else
40
-  ac_cv_lib_socks5_SOCKSconnect=no
41
+  ac_cv_lib_socks_Rconnect=no
42
 fi
43
 rm -f core conftest.err conftest.$ac_objext \
44
     conftest$ac_exeext conftest.$ac_ext
45
 LIBS=$ac_check_lib_save_LIBS
46
 fi
47
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socks5_SOCKSconnect" >&5
48
-$as_echo "$ac_cv_lib_socks5_SOCKSconnect" >&6; }
49
-if test "x$ac_cv_lib_socks5_SOCKSconnect" = x""yes; then :
50
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socks_Rconnect" >&5
51
+$as_echo "$ac_cv_lib_socks_Rconnect" >&6; }
52
+if test "x$ac_cv_lib_socks_Rconnect" = x""yes; then :
53
   have_socks=yes
54
 fi
55
 
56
@@ -18542,7 +18542,7 @@
57
 			socks=yes
58
 			$as_echo "#define SOCKS 1" >>confdefs.h
59
 
60
-			LIBS="$LIBS -lsocks5"
61
+			LIBS="$LIBS -lsocks"
62
 		fi
63
 	fi
64
 fi

Return to bug 167826