diff options
author | roy <roy@pkgsrc.org> | 2013-10-16 16:51:28 +0000 |
---|---|---|
committer | roy <roy@pkgsrc.org> | 2013-10-16 16:51:28 +0000 |
commit | acb1773dbb8c2c9e1cae5741a932fb74a4dcdb89 (patch) | |
tree | 0119444e0883e6c0e817b03e6a8f932e52cdf653 | |
parent | 20cb7283e874d1b47872414a041c66acdec14f49 (diff) | |
download | pkgsrc-acb1773dbb8c2c9e1cae5741a932fb74a4dcdb89.tar.gz |
If TERMINFO or CURSES is already set, don't undefine them.
-rw-r--r-- | mk/termcap.buildlink3.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/termcap.buildlink3.mk b/mk/termcap.buildlink3.mk index 3a719293ff0..79603e3fae8 100644 --- a/mk/termcap.buildlink3.mk +++ b/mk/termcap.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: termcap.buildlink3.mk,v 1.8 2010/02/07 09:46:14 roy Exp $ +# $NetBSD: termcap.buildlink3.mk,v 1.9 2013/10/16 16:51:28 roy Exp $ # # This Makefile fragment is meant to be included by packages that require # a termcap implementation that supports the basic termcap functions: @@ -43,7 +43,9 @@ BUILD_DEFS_EFFECTS+= TERMCAP_TYPE # e.g. curses -- see termcap.builtin.mk for details. # . for _tcap_ in ${_TERMCAP_TYPES:Ntermcap:Ncurses} -. if empty(TERMCAP_TYPE:M${_tcap_}) +. if empty(TERMCAP_TYPE:M${_tcap_}) \ + && empty(TERMINFO_TYPE:M${_tcap_}) \ + && empty(CURSES_TYPE:M${_tcap_}) BUILDLINK_TRANSFORM+= rm:-l${_tcap_} . endif . endfor |