summaryrefslogtreecommitdiff
path: root/net/ncftp2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/ncftp2/Makefile')
-rw-r--r--net/ncftp2/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/net/ncftp2/Makefile b/net/ncftp2/Makefile
index 09499e417b8..8994fe5c93f 100644
--- a/net/ncftp2/Makefile
+++ b/net/ncftp2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 1998/06/22 12:58:34 agc Exp $
+# $NetBSD: Makefile,v 1.9 1998/08/01 06:02:07 scottr Exp $
# FreeBSD Id: Makefile,v 1.39 1998/01/31 17:49:48 jseger Exp
#
@@ -13,6 +13,20 @@ DEPENDS+= ncurses-1.9.9g:../../devel/ncurses
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-readline
+.include "../../mk/bsd.prefs.mk"
+
+# Include SOCKS firewall support
+.if defined(USE_SOCKS) && (${USE_SOCKS} == 4 || ${USE_SOCKS} == 5)
+CFLAGS+= -I${PREFIX}/include
+.if ${USE_SOCKS} == 4
+CONFIGURE_ARGS+= --enable-socks
+DEPENDS+= socks4-2.2:../../net/socks4
+.else
+CONFIGURE_ARGS+= --enable-socks5
+DEPENDS+= socks5-1.0.2:../../net/socks5
+.endif
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ncftp ${PREFIX}/bin/ncftp2
${INSTALL_MAN} ${WRKSRC}/ncftp.1 ${PREFIX}/man/man1/ncftp2.1