summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-02-16 09:32:29 +0000
committerobache <obache@pkgsrc.org>2013-02-16 09:32:29 +0000
commit7dc333fdb8b4910df7bef207f3af21fcfeee80cc (patch)
treeed79cc10e442dccd1a3d5443cdaa9040978c74a3
parent6f3b49767e094e4fb6b05f4a78e6a08ae77b6315 (diff)
downloadpkgsrc-7dc333fdb8b4910df7bef207f3af21fcfeee80cc.tar.gz
check usability of builtin termcap if FETCH_USING=ftp
to avoid circular dependency with termcap from pkgsrc (devel/ncurses).
-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"