pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   roy
Date:           Mon Jan  2 10:49:33 UTC 2017

Modified Files:
        pkgsrc/mk: curses.builtin.mk

Log Message:
Add support for detecting the ncurses extension getsyx(3) in system curses.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/mk/curses.builtin.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/curses.builtin.mk
diff -u pkgsrc/mk/curses.builtin.mk:1.11 pkgsrc/mk/curses.builtin.mk:1.12
--- pkgsrc/mk/curses.builtin.mk:1.11    Thu Dec 29 20:23:05 2016
+++ pkgsrc/mk/curses.builtin.mk Mon Jan  2 10:49:33 2017
@@ -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_LIBS:=                    curses
 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 @@ USE_BUILTIN.curses!=                                                 \
 .  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