diff options
Diffstat (limited to 'ftp/ncftp2')
-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" |