summaryrefslogtreecommitdiff
path: root/devel/ncurses
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2007-07-02 02:08:20 +0000
committertnn <tnn@pkgsrc.org>2007-07-02 02:08:20 +0000
commit842a293f92f1edc0478850848b1add1c55e122f0 (patch)
treeddea347527262a9ffd41d5ff6859304f35108a8f /devel/ncurses
parent0234d40e0a6d9ba2108fc86e59a50c72ad5afa5d (diff)
downloadpkgsrc-842a293f92f1edc0478850848b1add1c55e122f0.tar.gz
On platforms that have neither a builtin groff nor builtin curses
we can end up with a circular dependency: ncurses -> groff -> netpbm -> flex -> bison -> gtexinfo -> ncurses ncurses may depend on groff because of USE_TOOLS+=tbl. Break the circular dependency by using --without-manpage-tbl if there is no tbl(1) available and we're unable to build groff because of missing curses.
Diffstat (limited to 'devel/ncurses')
-rw-r--r--devel/ncurses/Makefile.common14
1 files changed, 13 insertions, 1 deletions
diff --git a/devel/ncurses/Makefile.common b/devel/ncurses/Makefile.common
index 2eb7704e711..e91e8793c38 100644
--- a/devel/ncurses/Makefile.common
+++ b/devel/ncurses/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.5 2007/02/06 14:34:54 rillig Exp $
+# $NetBSD: Makefile.common,v 1.6 2007/07/02 02:08:20 tnn Exp $
DISTNAME= ncurses-${NC_VERS}
NC_VERS= 5.6
@@ -31,6 +31,18 @@ CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR}
MAKE_JOBS_SAFE= no
.include "../../mk/bsd.prefs.mk"
+.if !defined(TOOLS_TBL)
+# This means that groff needs to be built to get tbl(1).
+# We can only build groff if there is a builtin implementation of curses,
+# otherwise we get a circular dependency problem.
+# Additionally, Interix is special, see ../../mk/curses.buildlink3.mk
+. if !(exists(/usr/include/curses.h) || exists(/usr/include/ncurses.h)) || \
+ ${OPSYS} == "Interix"
+# None was available, so disable use of tbl(1)
+USE_TOOLS:= ${USE_TOOLS:Ntbl}
+CONFIGURE_ARGS+= --without-manpage-tbl
+. endif
+.endif
.if ${OPSYS} == "SunOS"
PLIST_SUBST+= NOT_SUNOS="@comment "