pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add support for detecting the ncurses extension get...
details: https://anonhg.NetBSD.org/pkgsrc/rev/082855a70804
branches: trunk
changeset: 356607:082855a70804
user: roy <roy%pkgsrc.org@localhost>
date: Mon Jan 02 10:49:33 2017 +0000
description:
Add support for detecting the ncurses extension getsyx(3) in system curses.
diffstat:
mk/curses.builtin.mk | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 0e64a3d966ca -r 082855a70804 mk/curses.builtin.mk
--- a/mk/curses.builtin.mk Mon Jan 02 10:15:57 2017 +0000
+++ b/mk/curses.builtin.mk Mon Jan 02 10:49:33 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: curses.builtin.mk,v 1.11 2016/12/29 20:23:05 roy Exp $
+# $NetBSD: curses.builtin.mk,v 1.12 2017/01/02 10:49:33 roy Exp $
BUILTIN_PKG:= curses
@@ -6,6 +6,10 @@
BUILTIN_FIND_HEADERS_VAR:= H_CURSES
BUILTIN_FIND_HEADERS.H_CURSES= curses.h
+BUILTIN_FIND_FILES_VAR+= H_CURSES_GETSYX
+BUILTIN_FIND_FILES.H_CURSES_GETSYX= ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_GETSYX= getsyx
+
BUILTIN_FIND_FILES_VAR+= H_CURSES_HALFDELAY
BUILTIN_FIND_FILES.H_CURSES_HALFDELAY= ${H_CURSES}
BUILTIN_FIND_GREP.H_CURSES_HALFDELAY= halfdelay
@@ -79,6 +83,12 @@
. if !empty(USE_CURSES:Mchgat) && !empty(H_CURSES_MVWCHGAT:M__nonexistent__)
USE_BUILTIN.curses= no
. endif
+# same for getsyx(3)
+. if !empty(USE_CURSES:Mgetsyx)
+. if !empty(H_CURSES_GETSYX:M__nonexistent__)
+USE_BUILTIN.curses= no
+. endif
+. endif
# same for halfdelay(3)
. if !empty(USE_CURSES:Mhalfdelay)
. if !empty(H_CURSES_HALFDELAY:M__nonexistent__)
Home |
Main Index |
Thread Index |
Old Index