diff options
author | naddy <naddy@FreeBSD.org> | 2002-08-30 04:10:31 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2002-08-30 04:10:31 +0800 |
commit | b20d4ff3e4be56eeb2eb22aa3e221365801b150e (patch) | |
tree | 556593c2b4712a1ca371b9ab5b2e888dfefa00c2 /ftp | |
parent | bff307e788567436e8bbfdde4e723a9b8d724432 (diff) | |
download | freebsd-ports-gnome-b20d4ff3e4be56eeb2eb22aa3e221365801b150e.tar.gz freebsd-ports-gnome-b20d4ff3e4be56eeb2eb22aa3e221365801b150e.tar.zst freebsd-ports-gnome-b20d4ff3e4be56eeb2eb22aa3e221365801b150e.zip |
Add optional SOCKS5 support.
PR: 42106
Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/ncftp2/Makefile | 5 | ||||
-rw-r--r-- | ftp/ncftp2/files/patch-aa | 2 | ||||
-rw-r--r-- | ftp/ncftp2/files/patch-ac | 11 |
3 files changed, 17 insertions, 1 deletions
diff --git a/ftp/ncftp2/Makefile b/ftp/ncftp2/Makefile index 6d685cca6416..cf4ef12c2e96 100644 --- a/ftp/ncftp2/Makefile +++ b/ftp/ncftp2/Makefile @@ -16,6 +16,11 @@ GNU_CONFIGURE= yes CONFIGURE_ENV= ac_cv_func_getmaxyx=yes ac_cv_lib_readline=yes MAN1= ncftp2.1 +.if defined(WITH_SOCKS) +BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5 +CONFIGURE_ARGS+= --enable-socks5 +.endif + do-install: $(INSTALL_PROGRAM) $(WRKSRC)/ncftp $(PREFIX)/bin/ncftp2 $(INSTALL_MAN) $(WRKSRC)/ncftp.1 $(PREFIX)/man/man1/ncftp2.1 diff --git a/ftp/ncftp2/files/patch-aa b/ftp/ncftp2/files/patch-aa index c5dfa7bceac2..76e0986df2c7 100644 --- a/ftp/ncftp2/files/patch-aa +++ b/ftp/ncftp2/files/patch-aa @@ -13,7 +13,7 @@ VPATH=@srcdir@ CPPFLAGS=-I. -I@srcdir@ @CPPFLAGS@ -! LIBS= -lreadline -lncurses -lmytinfo +! LIBS=@LIBS@ -lmytinfo SHARED_LDFLAGS=@LDFLAGS@ STATIC_LDFLAGS=@LDFLAGS@ @SLDFLAGS@ diff --git a/ftp/ncftp2/files/patch-ac b/ftp/ncftp2/files/patch-ac new file mode 100644 index 000000000000..81ead5f4ae12 --- /dev/null +++ b/ftp/ncftp2/files/patch-ac @@ -0,0 +1,11 @@ +--- configure.bak Sun Jun 8 14:25:04 1997 ++++ configure Wed Aug 28 11:40:19 2002 +@@ -1766,7 +1766,7 @@ + echo "$ac_t""no" 1>&6 + fi + +- if test "$ac_cv_lib_socks5" = yes ; then ++ if test "$ac_cv_lib_socks5_SOCKSinit" = yes ; then + nc_cv_socks=no + else + LIBS="$savelibs" |