summaryrefslogtreecommitdiff
path: root/mk/termcap.buildlink3.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-05 03:58:20 +0000
committerjlam <jlam@pkgsrc.org>2008-03-05 03:58:20 +0000
commitcfc5bf44589891e9321d0c790bea9e9d55b1d031 (patch)
tree3ee91f67d37177ad6aa45689273693d4fe7705c8 /mk/termcap.buildlink3.mk
parent84361e6a3dc5227650a7ced48b9450ba0decd2d5 (diff)
downloadpkgsrc-cfc5bf44589891e9321d0c790bea9e9d55b1d031.tar.gz
If the TERMCAP_TYPE isn't "curses", then also remove "-lncurses" from
the command line so we don't find any system ncurses library. XXX This currently causes problems with packages using both termcap XXX (usually via readline) and curses. This will be fixed in time.
Diffstat (limited to 'mk/termcap.buildlink3.mk')
-rw-r--r--mk/termcap.buildlink3.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/termcap.buildlink3.mk b/mk/termcap.buildlink3.mk
index 4533ec38e33..50c9e4851cd 100644
--- a/mk/termcap.buildlink3.mk
+++ b/mk/termcap.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: termcap.buildlink3.mk,v 1.2 2008/03/02 07:05:28 jlam Exp $
+# $NetBSD: termcap.buildlink3.mk,v 1.3 2008/03/05 03:58:20 jlam Exp $
#
# This Makefile fragment is meant to be included by packages that require
# a termcap implementation that supports the basic termcap functions:
@@ -44,6 +44,9 @@ BUILD_DEFS+= TERMCAP_TYPE
BUILDLINK_TRANSFORM+= rm:-l${_tcap_}
. endif
.endfor
+.if empty(TERMCAP_TYPE:Mcurses)
+BUILDLINK_TRANSFORM+= rm:-lncurses
+.endif
BUILDLINK_TRANSFORM+= l:termcap:${BUILDLINK_LIBNAME.termcap}
.endif # TERMCAP_BUILDLINK3_MK