pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk If the TERMCAP_TYPE isn't "curses", then also remov...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6fd220ddada1
branches:  trunk
changeset: 539416:6fd220ddada1
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Mar 05 03:58:20 2008 +0000

description:
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:

 mk/termcap.buildlink3.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 84d365ed18b5 -r 6fd220ddada1 mk/termcap.buildlink3.mk
--- a/mk/termcap.buildlink3.mk  Tue Mar 04 22:37:46 2008 +0000
+++ b/mk/termcap.buildlink3.mk  Wed Mar 05 03:58:20 2008 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index