summaryrefslogtreecommitdiff
path: root/net/tnftp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/tnftp/Makefile')
-rw-r--r--net/tnftp/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/tnftp/Makefile b/net/tnftp/Makefile
index 7b99bd86c91..4da4126481b 100644
--- a/net/tnftp/Makefile
+++ b/net/tnftp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2012/10/31 04:54:40 asau Exp $
+# $NetBSD: Makefile,v 1.30 2013/02/16 09:32:29 obache Exp $
DISTNAME= tnftp-20070806
SVR4_PKGNAME= tnftp
@@ -42,5 +42,16 @@ CHECK_BUILTIN.readline:= no
USE_BUILTIN.termcap?= yes
.endif
+# Check usability of builtin termcap if FETCH_USING=ftp
+# to avoid circular dependency with termcap from pkgsrc (devel/ncurses).
+CHECK_BUILTIN.termcap:= yes
+.include "../../mk/termcap.builtin.mk"
+CHECK_BUILTIN.termcap:= no
+
+.if !empty(FETCH_USING:Mftp) && !empty(USE_BUILTIN.termcap:M[Nn][Oo])
+CONFIGURE_ARGS+= --disable-editcomplete
+.else
.include "../../mk/termcap.buildlink3.mk"
+.endif
+
.include "../../mk/bsd.pkg.mk"