diff options
author | roy <roy@pkgsrc.org> | 2014-03-09 10:15:32 +0000 |
---|---|---|
committer | roy <roy@pkgsrc.org> | 2014-03-09 10:15:32 +0000 |
commit | 11046339eb94a7e3358d0c42fbccc82720747e56 (patch) | |
tree | 1f7e1db47953c8541d4e66b25932aae0a6c078ac /mk/terminfo.buildlink3.mk | |
parent | fa6eadc3a0bd244b3608b5cd8708f4f627f8c8dd (diff) | |
download | pkgsrc-11046339eb94a7e3358d0c42fbccc82720747e56.tar.gz |
Move the logic for testing if system curses supports the needed functions
from devel/ncurses to the mk infrastructure.
FAKE_NCURSES=yes
Provides the system curses as ncurses.h and libncurses.
USE_CURSES=wide
Links to system curses if they provide wide support, otherwise ncursesw.
wide-curses in the package options also triggers this.
Diffstat (limited to 'mk/terminfo.buildlink3.mk')
-rw-r--r-- | mk/terminfo.buildlink3.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/terminfo.buildlink3.mk b/mk/terminfo.buildlink3.mk index d12f86d9960..5b51aa4e910 100644 --- a/mk/terminfo.buildlink3.mk +++ b/mk/terminfo.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: terminfo.buildlink3.mk,v 1.4 2013/11/19 11:43:19 obache Exp $ +# $NetBSD: terminfo.buildlink3.mk,v 1.5 2014/03/09 10:15:32 roy Exp $ # # This Makefile fragment is meant to be included by packages that require # any terminfo implementation instead of one particular one. The available @@ -33,7 +33,7 @@ TERMINFO_BUILDLINK3_MK:= ${TERMINFO_BUILDLINK3_MK}+ # that may be used with terminfo.buildlink3.mk. # _TERMINFO_PKGS?= terminfo ncurses pdcurses -_TERMINFO_TYPES?= terminfo tinfo +_TERMINFO_TYPES?= terminfo tinfo curses ncurses CHECK_BUILTIN.terminfo:= yes . include "terminfo.builtin.mk" @@ -73,7 +73,8 @@ BUILD_DEFS_EFFECTS+= TERMINFO_TYPE # .if empty(TERMINFO_TYPE:Mnone) . for _tcap_ in ${_TERMINFO_TYPES} -. if empty(TERMINFO_TYPE:M${_tcap_}) +. if empty(TERMINFO_TYPE:M${_tcap_}) \ + && (!defined(CURSES_TYPE) || empty(CURSES_TYPE:M${_tcap_})) BUILDLINK_TRANSFORM+= l:${_tcap_}:${BUILDLINK_LIBNAME.terminfo} . endif . endfor |