head 1.22; access; symbols pkgsrc-2023Q4:1.21.0.14 pkgsrc-2023Q4-base:1.21 pkgsrc-2023Q3:1.21.0.12 pkgsrc-2023Q3-base:1.21 pkgsrc-2023Q2:1.21.0.10 pkgsrc-2023Q2-base:1.21 pkgsrc-2023Q1:1.21.0.8 pkgsrc-2023Q1-base:1.21 pkgsrc-2022Q4:1.21.0.6 pkgsrc-2022Q4-base:1.21 pkgsrc-2022Q3:1.21.0.4 pkgsrc-2022Q3-base:1.21 pkgsrc-2022Q2:1.21.0.2 pkgsrc-2022Q2-base:1.21 pkgsrc-2022Q1:1.20.0.24 pkgsrc-2022Q1-base:1.20 pkgsrc-2021Q4:1.20.0.22 pkgsrc-2021Q4-base:1.20 pkgsrc-2021Q3:1.20.0.20 pkgsrc-2021Q3-base:1.20 pkgsrc-2021Q2:1.20.0.18 pkgsrc-2021Q2-base:1.20 pkgsrc-2021Q1:1.20.0.16 pkgsrc-2021Q1-base:1.20 pkgsrc-2020Q4:1.20.0.14 pkgsrc-2020Q4-base:1.20 pkgsrc-2020Q3:1.20.0.12 pkgsrc-2020Q3-base:1.20 pkgsrc-2020Q2:1.20.0.10 pkgsrc-2020Q2-base:1.20 pkgsrc-2020Q1:1.20.0.6 pkgsrc-2020Q1-base:1.20 pkgsrc-2019Q4:1.20.0.8 pkgsrc-2019Q4-base:1.20 pkgsrc-2019Q3:1.20.0.4 pkgsrc-2019Q3-base:1.20 pkgsrc-2019Q2:1.20.0.2 pkgsrc-2019Q2-base:1.20 pkgsrc-2019Q1:1.19.0.4 pkgsrc-2019Q1-base:1.19 pkgsrc-2018Q4:1.19.0.2 pkgsrc-2018Q4-base:1.19 pkgsrc-2018Q3:1.18.0.14 pkgsrc-2018Q3-base:1.18 pkgsrc-2018Q2:1.18.0.12 pkgsrc-2018Q2-base:1.18 pkgsrc-2018Q1:1.18.0.10 pkgsrc-2018Q1-base:1.18 pkgsrc-2017Q4:1.18.0.8 pkgsrc-2017Q4-base:1.18 pkgsrc-2017Q3:1.18.0.6 pkgsrc-2017Q3-base:1.18 pkgsrc-2017Q2:1.18.0.2 pkgsrc-2017Q2-base:1.18 pkgsrc-2017Q1:1.17.0.2 pkgsrc-2017Q1-base:1.17 pkgsrc-2016Q4:1.10.0.2 pkgsrc-2016Q4-base:1.10 pkgsrc-2016Q3:1.9.0.10 pkgsrc-2016Q3-base:1.9 pkgsrc-2016Q2:1.9.0.8 pkgsrc-2016Q2-base:1.9 pkgsrc-2016Q1:1.9.0.6 pkgsrc-2016Q1-base:1.9 pkgsrc-2015Q4:1.9.0.4 pkgsrc-2015Q4-base:1.9 pkgsrc-2015Q3:1.9.0.2 pkgsrc-2015Q3-base:1.9 pkgsrc-2015Q2:1.8.0.12 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.10 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.8 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.6 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.4 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.2 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.7.0.2 pkgsrc-2013Q4-base:1.7 pkgsrc-2013Q3:1.6.0.4 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.2 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.5.0.46 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.44 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.42 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.40 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.38 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.36 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.34 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.32 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.30 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.28 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.26 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.24 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.22 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.20 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.18 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.16 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.14 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.12 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.10 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.8 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.6 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.4 pkgsrc-2008Q1:1.5.0.2 pkgsrc-2008Q1-base:1.5; locks; strict; comment @# @; 1.22 date 2024.01.13.20.26.47; author riastradh; state Exp; branches; next 1.21; commitid my8xlviqHLVXqkUE; 1.21 date 2022.06.06.01.24.11; author gutteridge; state Exp; branches; next 1.20; commitid UARVKfNrk9EKWUGD; 1.20 date 2019.06.17.18.19.55; author sjmulder; state Exp; branches; next 1.19; commitid VEAbvzcaamMhrzrB; 1.19 date 2018.10.04.15.34.42; author roy; state Exp; branches; next 1.18; commitid hyWWxof9PgW5LEUA; 1.18 date 2017.04.24.12.16.38; author sborrill; state Exp; branches; next 1.17; commitid 3XW9pqfWJNdhDMOz; 1.17 date 2017.03.20.10.03.57; author roy; state Exp; branches 1.17.2.1; next 1.16; commitid fNmZJG2XDJhD1hKz; 1.16 date 2017.03.20.10.03.27; author roy; state Exp; branches; next 1.15; commitid 6GGtnuZaVYud0hKz; 1.15 date 2017.03.20.00.10.06; author roy; state Exp; branches; next 1.14; commitid zfNjxihn0fpUJdKz; 1.14 date 2017.01.05.21.32.39; author roy; state Exp; branches; next 1.13; commitid KV2mOkeMAD2ndPAz; 1.13 date 2017.01.05.21.19.24; author roy; state Exp; branches; next 1.12; commitid YeH1WLL6RGxO8PAz; 1.12 date 2017.01.02.10.49.33; author roy; state Exp; branches; next 1.11; commitid 8bkv4fQSWnOBKnAz; 1.11 date 2016.12.29.20.23.05; author roy; state Exp; branches; next 1.10; commitid LauapYTHMo0n3Vzz; 1.10 date 2016.11.25.13.35.33; author joerg; state Exp; branches; next 1.9; commitid WZSM2XqRY8RjTvvz; 1.9 date 2015.09.08.11.36.34; author jperkin; state Exp; branches; next 1.8; commitid 5p8ys5r17nZzurAy; 1.8 date 2014.03.09.10.15.32; author roy; state Exp; branches; next 1.7; commitid 8nrg5rrVyszrE0sx; 1.7 date 2013.11.23.09.10.14; author obache; state Exp; branches; next 1.6; commitid A2FzxLO4eB58Inex; 1.6 date 2013.04.21.07.53.14; author obache; state Exp; branches; next 1.5; 1.5 date 2008.02.27.15.26.34; author jlam; state Exp; branches; next 1.4; 1.4 date 2008.02.27.06.14.23; author jlam; state Exp; branches; next 1.3; 1.3 date 2008.02.27.04.47.02; author jlam; state Exp; branches; next 1.2; 1.2 date 2008.02.27.02.26.07; author jlam; state Exp; branches; next 1.1; 1.1 date 2008.02.25.04.19.34; author jlam; state Exp; branches; next ; 1.17.2.1 date 2017.04.25.18.03.16; author bsiegert; state Exp; branches; next ; commitid T2MNPV5UmJvkwWOz; desc @@ 1.22 log @buildlink3, mk/*.builtin.mk: Use TOOLS_CROSS_DESTDIR for file checks. These are always about the target system, which during cross builds, or native builds of cross-libtool-base, is relative to TOOLS_CROSS_DESTDIR. This is necessary for cross-libtool-base -- the one special package that is built as a native package as if it were cross-compiled, so _CROSS_DESTDIR is empty but TOOLS_CROSS_DESTDIR is the cross destdir -- because cross-libtool-base uses buildlink3 and dlopen.builtin.mk. No change to native builds because _CROSS_DESTDIR and TOOLS_CROSS_DESTDIR are both empty in native builds. XXX Perhaps almost every use of _CROSS_DESTDIR outside mk/pkgformat should be replaced by TOOLS_CROSS_DESTDIR. @ text @# $NetBSD: curses.builtin.mk,v 1.21 2022/06/06 01:24:11 gutteridge Exp $ BUILTIN_PKG:= curses BUILTIN_FIND_LIBS:= curses BUILTIN_FIND_HEADERS_VAR:= H_CURSES BUILTIN_FIND_HEADERS.H_CURSES= curses.h # Functions and defines to search for. # These are valid USE_CURSES options and will determine whether the # package can use the built-in curses or not. # BUILTIN_TEST_CURSES_FUNCS= chgat getsyx halfdelay putwin BUILTIN_TEST_CURSES_FUNCS+= resize_term resizeterm ripoffline set_escdelay syncok BUILTIN_TEST_CURSES_FUNCS+= wgetnstr wsyncup mvwchgat vw_printw BUILTIN_TEST_CURSES_FUNCS+= getmouse BUILTIN_TEST_CURSES_DEFINES= WA_NORMAL .for func in ${BUILTIN_TEST_CURSES_FUNCS} BUILTIN_FIND_FILES_VAR+= H_CURSES_${func:tu} BUILTIN_FIND_FILES.H_CURSES_${func:tu}= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_${func:tu}= ${func} .endfor .for defn in ${BUILTIN_TEST_CURSES_DEFINES} BUILTIN_FIND_FILES_VAR+= H_CURSES_${defn} BUILTIN_FIND_FILES.H_CURSES_${defn}= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_${defn}= ${defn} .endfor .include "buildlink3/bsd.builtin.mk" ### ### Determine if there is a built-in implementation of the package and ### set IS_BUILTIN. appropriately ("yes" or "no"). ### .if !defined(IS_BUILTIN.curses) IS_BUILTIN.curses= no . if empty(H_CURSES:M${LOCALBASE}/*) && \ exists(${TOOLS_CROSS_DESTDIR}${H_CURSES}) IS_BUILTIN.curses= yes . endif .endif MAKEVARS+= IS_BUILTIN.curses ### ### Determine whether we should use the built-in implementation if it ### exists, and set USE_BUILTIN. appropriate ("yes" or "no"). ### .if !defined(USE_BUILTIN.curses) . if ${PREFER.curses} == "pkgsrc" USE_BUILTIN.curses= no . else USE_BUILTIN.curses= ${IS_BUILTIN.curses} . if defined(BUILTIN_PKG.curses) && !empty(IS_BUILTIN.curses:M[yY][eE][sS]) USE_BUILTIN.curses= yes . for _dep_ in ${BUILDLINK_API_DEPENDS.curses} . if !empty(USE_BUILTIN.curses:M[yY][eE][sS]) USE_BUILTIN.curses!= \ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.curses:Q}; then \ ${ECHO} yes; \ else \ ${ECHO} no; \ fi . endif . endfor . endif . endif # PREFER.curses .endif # If it is set to chgat, a curses implementation with chgat(3) support # is considered good enough. .if defined(USE_CURSES) && empty(USE_CURSES:M[yY][eE][sS]) . for func in ${BUILTIN_TEST_CURSES_FUNCS} . if !empty(USE_CURSES:M${func}) && \ !empty(H_CURSES_${func:tu}:M__nonexistent__) USE_BUILTIN.curses= no . endif . endfor . for defn in ${BUILTIN_TEST_CURSES_DEFINES} . if !empty(USE_CURSES:M${defn}) && \ !empty(H_CURSES_${defn}:M__nonexistent__) USE_BUILTIN.curses= no . endif . endfor # AFAIK there is no way of working out if a system curses library has wide # character support. So be safe and say no unless we know for sure. . if !empty(USE_CURSES:Mwide) . if ${OPSYS} == "NetBSD" . if !empty(MACHINE_PLATFORM:MNetBSD-[0-4].*-*) USE_BUILTIN.curses= no . endif . else USE_BUILTIN.curses= no . endif . endif .endif # Even if the package requested tests above pass, # some system curses just are not good enough. # If your system is one, add it here so a suitable # curses from pkgsrc can be installed. _INCOMPAT_CURSES?= .for _pattern_ in ${_INCOMPAT_CURSES} ${INCOMPAT_CURSES} . if !empty(MACHINE_PLATFORM:M${_pattern_}) USE_BUILTIN.curses= no . endif .endfor MAKEVARS+= USE_BUILTIN.curses # Define BUILTIN_LIBNAME.curses to be the base name of the built-in # curses library. # .if !empty(BUILTIN_LIB_FOUND.curses:M[yY][eE][sS]) BUILTIN_LIBNAME.curses= curses .endif BUILTIN_LIBNAME.curses= curses ### ### The section below only applies if we are not including this file ### solely to determine whether a built-in implementation exists. ### CHECK_BUILTIN.curses?= no .if !empty(CHECK_BUILTIN.curses:M[nN][oO]) . if !empty(USE_BUILTIN.curses:M[yY][eE][sS]) . if exists(${TOOLS_CROSS_DESTDIR}${H_CURSES}) BUILDLINK_INCDIRS.curses?= ${H_CURSES:H} . endif BUILDLINK_LIBNAME.curses= ${BUILTIN_LIBNAME.curses} . endif .endif # CHECK_BUILTIN.curses @ 1.21 log @curses.builtin.mk: fix a typo in a comment @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.20 2019/06/17 18:19:55 sjmulder Exp $ d39 2 a40 1 . if empty(H_CURSES:M${LOCALBASE}/*) && exists(${H_CURSES}) d129 1 a129 1 . if exists(${H_CURSES}) @ 1.20 log @mk/curses.builtin.mk: add mouse function check Lets one do USE_CURSES=getmouse @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.19 2018/10/04 15:34:42 roy Exp $ d11 1 a11 1 # package can use the builtin curses or not. @ 1.19 log @Add ripoffline as a curses function to test for @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.18 2017/04/24 12:16:38 sborrill Exp $ d16 1 @ 1.18 log @Add vw_printw to list of functions to check for when assessing suitability of builtin curses @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.17 2017/03/20 10:03:57 roy Exp $ d14 1 a14 1 BUILTIN_TEST_CURSES_FUNCS+= resize_term resizeterm set_escdelay syncok @ 1.17 log @quickly remove debug @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.16 2017/03/20 10:03:27 roy Exp $ d15 1 a15 1 BUILTIN_TEST_CURSES_FUNCS+= wgetnstr wsyncup mvwchgat @ 1.17.2.1 log @Pullup ticket #5360 - requested by sevan mk/curses.builtin.mk: bugfix Revisions pulled up: - mk/curses.builtin.mk 1.18 --- Module Name: pkgsrc Committed By: sborrill Date: Mon Apr 24 12:16:38 UTC 2017 Modified Files: pkgsrc/mk: curses.builtin.mk Log Message: Add vw_printw to list of functions to check for when assessing suitability of builtin curses @ text @d1 1 a1 1 # $NetBSD$ d15 1 a15 1 BUILTIN_TEST_CURSES_FUNCS+= wgetnstr wsyncup mvwchgat vw_printw @ 1.16 log @Roll the duplicated function and define tests into lists and then loop through each with one test. Reduces code size, makes reading it a lot easier and is more maintainable. Patch from jperkin@@ @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.15 2017/03/20 00:10:06 roy Exp $ d21 1 a21 1 BUILTIN_FIND_GREP.H_CURSES_${func:tu}= ${func}x @ 1.15 log @Add a test for syncok(3). @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.14 2017/01/05 21:32:39 roy Exp $ d9 20 a28 43 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 BUILTIN_FIND_FILES_VAR+= H_CURSES_PUTWIN BUILTIN_FIND_FILES.H_CURSES_PUTWIN= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_PUTWIN= putwin BUILTIN_FIND_FILES_VAR+= H_CURSES_RESIZE_TERM BUILTIN_FIND_FILES.H_CURSES_RESIZE_TERM= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_RESIZE_TERM= resize_term BUILTIN_FIND_FILES_VAR+= H_CURSES_RESIZETERM BUILTIN_FIND_FILES.H_CURSES_RESIZETERM= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_RESIZETERM= resizeterm BUILTIN_FIND_FILES_VAR+= H_CURSES_SET_ESCDELAY BUILTIN_FIND_FILES.H_CURSES_SET_ESCDELAY= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_SET_ESCDELAY= set_escdelay BUILTIN_FIND_FILES_VAR+= H_CURSES_SYNCOK BUILTIN_FIND_FILES.H_CURSES_SYNCOK= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_SYNCOK= syncok BUILTIN_FIND_FILES_VAR+= H_CURSES_WA_NORMAL BUILTIN_FIND_FILES.H_CURSES_WA_NORMAL= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_WA_NORMAL= WA_NORMAL BUILTIN_FIND_FILES_VAR+= H_CURSES_WGETNSTR BUILTIN_FIND_FILES.H_CURSES_WGETNSTR= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_WGETNSTR= wgetnstr BUILTIN_FIND_FILES_VAR+= H_CURSES_WSYNCUP BUILTIN_FIND_FILES.H_CURSES_WSYNCUP= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_WSYNCUP= wsyncup BUILTIN_FIND_FILES_VAR+= H_CURSES_MVWCHGAT BUILTIN_FIND_FILES.H_CURSES_MVWCHGAT= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_MVWCHGAT= mvwchgat d72 3 a74 6 . 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__) d77 4 a80 20 . endif # same for halfdelay(3) . if !empty(USE_CURSES:Mhalfdelay) . if !empty(H_CURSES_HALFDELAY:M__nonexistent__) USE_BUILTIN.curses= no . endif . endif # same for putwin(3) . if !empty(USE_CURSES:Mputwin) && !empty(H_CURSES_PUTWIN:M__nonexistent__) USE_BUILTIN.curses= no . endif # same for set_escdelay(3) . if !empty(USE_CURSES:Mset_escdelay) . if !empty(H_CURSES_SET_ESCDELAY:M__nonexistent__) USE_BUILTIN.curses= no . endif . endif # same for syncok(3) . if !empty(USE_CURSES:Msyncok) . if !empty(H_CURSES_SYNCOK:M__nonexistent__) d83 1 a83 27 . endif # same for resize_term(3) . if !empty(USE_CURSES:Mresize_term) . if !empty(H_CURSES_RESIZE_TERM:M__nonexistent__) USE_BUILTIN.curses= no . endif . endif # same for resizeterm(3) . if !empty(USE_CURSES:Mresizeterm) . if !empty(H_CURSES_RESIZETERM:M__nonexistent__) USE_BUILTIN.curses= no . endif . endif # same for WA_NORMAL . if !empty(USE_CURSES:MWA_NORMAL) . if !empty(H_CURSES_WA_NORMAL:M__nonexistent__) USE_BUILTIN.curses= no . endif . endif # same for wgetnstr(3) . if !empty(USE_CURSES:Mwgetnstr) && !empty(H_CURSES_WGETNSTR:M__nonexistent__) USE_BUILTIN.curses= no . endif # same for wsyncup(3) . if !empty(USE_CURSES:Mwsyncup) && !empty(H_CURSES_WSYNCUP:M__nonexistent__) USE_BUILTIN.curses= no . endif @ 1.14 log @Add a test for resize_term(3). @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.13 2017/01/05 21:19:24 roy Exp $ d33 4 d120 6 @ 1.13 log @Add a test for set_escdelay @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.12 2017/01/02 10:49:33 roy Exp $ d5 23 a27 19 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 BUILTIN_FIND_FILES_VAR+= H_CURSES_PUTWIN BUILTIN_FIND_FILES.H_CURSES_PUTWIN= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_PUTWIN= putwin BUILTIN_FIND_FILES_VAR+= H_CURSES_RESIZETERM BUILTIN_FIND_FILES.H_CURSES_RESIZETERM= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_RESIZETERM= resizeterm d33 15 a47 15 BUILTIN_FIND_FILES_VAR+= H_CURSES_WA_NORMAL BUILTIN_FIND_FILES.H_CURSES_WA_NORMAL= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_WA_NORMAL= WA_NORMAL BUILTIN_FIND_FILES_VAR+= H_CURSES_WGETNSTR BUILTIN_FIND_FILES.H_CURSES_WGETNSTR= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_WGETNSTR= wgetnstr BUILTIN_FIND_FILES_VAR+= H_CURSES_WSYNCUP BUILTIN_FIND_FILES.H_CURSES_WSYNCUP= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_WSYNCUP= wsyncup BUILTIN_FIND_FILES_VAR+= H_CURSES_MVWCHGAT BUILTIN_FIND_FILES.H_CURSES_MVWCHGAT= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_MVWCHGAT= mvwchgat d116 6 @ 1.12 log @Add support for detecting the ncurses extension getsyx(3) in system curses. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.11 2016/12/29 20:23:05 roy Exp $ d17 4 d25 3 a27 3 BUILTIN_FIND_FILES_VAR+= H_CURSES_PUTWIN BUILTIN_FIND_FILES.H_CURSES_PUTWIN= ${H_CURSES} BUILTIN_FIND_GREP.H_CURSES_PUTWIN= putwin d102 1 a102 1 ## same for putwin(3) d106 6 d118 1 a118 1 ## same for WA_NORMAL d124 1 a124 1 ## same for wgetnstr(3) @ 1.11 log @Fix USE_CURSES feature support. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.10 2016/11/25 13:35:33 joerg Exp $ d9 4 d86 6 @ 1.10 log @Don't try to adjust BUILDLINK_INCDIRS.curses by a non existing prefix. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.9 2015/09/08 11:36:34 jperkin Exp $ d5 3 a7 3 BUILTIN_FIND_LIBS:= curses BUILTIN_FIND_HEADERS_VAR:= H_CURSES BUILTIN_FIND_HEADERS.H_CURSES= curses.h d9 2 a10 2 BUILTIN_FIND_FILES_VAR+= H_CURSES_HALFDELAY BUILTIN_FIND_FILES.H_CURSES_HALFDELAY= ${BUILTIN_FIND_FILES.H_CURSES} d13 2 a14 2 BUILTIN_FIND_FILES_VAR+= H_CURSES_RESIZETERM BUILTIN_FIND_FILES.H_CURSES_RESIZETERM= ${BUILTIN_FIND_FILES.H_CURSES} d17 2 a18 2 BUILTIN_FIND_FILES_VAR+= H_CURSES_PUTWIN BUILTIN_FIND_FILES.H_CURSES_PUTWIN= ${BUILTIN_FIND_FILES.H_CURSES} d21 2 a22 2 BUILTIN_FIND_FILES_VAR+= H_CURSES_WA_NORMAL BUILTIN_FIND_FILES.H_CURSES_WA_NORMAL= ${BUILTIN_FIND_FILES.H_CURSES} d25 2 a26 2 BUILTIN_FIND_FILES_VAR+= H_CURSES_WGETNSTR BUILTIN_FIND_FILES.H_CURSES_WGETNSTR= ${BUILTIN_FIND_FILES.H_CURSES} d29 2 a30 2 BUILTIN_FIND_FILES_VAR+= H_CURSES_WSYNCUP BUILTIN_FIND_FILES.H_CURSES_WSYNCUP= ${BUILTIN_FIND_FILES.H_CURSES} d33 2 a34 2 BUILTIN_FIND_FILES_VAR+= H_CURSES_MVWCHGAT BUILTIN_FIND_FILES.H_CURSES_MVWCHGAT= ${BUILTIN_FIND_FILES.H_CURSES} @ 1.9 log @Remove NetBSD 0.x and 1.x settings, these have long since been unsupported. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.8 2014/03/09 10:15:32 roy Exp $ d156 1 a156 1 BUILDLINK_INCDIRS.curses?= ${H_CURSES:H:S/^${BUILDLINK_PREFIX.curses}\///} @ 1.8 log @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. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.7 2013/11/23 09:10:14 obache Exp $ d129 1 a129 2 _INCOMPAT_CURSES?= NetBSD-0.*-* NetBSD-1.[0123]*-* \ NetBSD-1.4.*-* NetBSD-1.4[A-X]-* @ 1.7 log @Use find-headers instead of find-files to detect builtin header files. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.6 2013/04/21 07:53:14 obache Exp $ d9 28 d75 62 d146 2 @ 1.6 log @tell location of builtin curses.h for Haiku. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.5 2008/02/27 15:26:34 jlam Exp $ d6 2 a7 3 BUILTIN_FIND_FILES_VAR:= H_CURSES BUILTIN_FIND_FILES.H_CURSES= /usr/include/curses.h BUILTIN_FIND_FILES.H_CURSES+= /boot/develop/headers/3rdparty/curses.h @ 1.5 log @+ Define BUILTIN_LIBNAME.* unconditionally so that their values can always be used in other builtin.mk files. + In the USE_BUILTIN.* == "yes" case, set BUILDLINK_LIBNAME.* to the corresponding BUILTIN_LIBNAME.* value so that BUILDLINK_LIBNAME.* can always be used in other buildlink3.mk files. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.4 2008/02/27 06:14:23 jlam Exp $ d8 1 @ 1.4 log @Define BUILTIN_LIBNAME.* outside of the CHECK_BUILTIN.*-protected section to be the name of the built-in library if USE_BUILTIN.* is "yes". These variables can be used in other builtin.mk files. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.3 2008/02/27 04:47:02 jlam Exp $ d49 2 a50 2 # Define BUILTIN_LIBNAME.curses to be the built-in curses library only if # we're using the built-in curses. d52 1 a52 2 .if !empty(USE_BUILTIN.curses:M[yY][eE][sS]) . if !empty(BUILTIN_LIB_FOUND.curses:M[yY][eE][sS]) a53 1 . endif d67 1 @ 1.3 log @+ The termlib.buildlink3.mk file is meant to be included by packages that need basic termlib functionality, i.e. tgetent(), tgoto(), tputs(), etc. Together with the termlib.builtin.mk file, they will use either a built-in termcap library, a built-in X/Open "enhanced" curses library, or ncurses to provide these functions. + Add BUILDLINK_LIBNAME.* definitions to the various curses buildlink3.mk and builtin.mk files that give the "base" library name of the curses library, e.g. curses, ncurses, etc. These are used by the termlib files to set BUILDLINK_LIBNAME.termlib. @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.2 2008/02/27 02:26:07 jlam Exp $ d49 9 a68 4 . if !empty(BUILTIN_LIB_FOUND.curses:M[yY][eE][sS]) BUILDLINK_LIBNAME.curses= curses BUILDLINK_LDADD.curses?= -l${BUILDLINK_LIBNAME.curses} . endif @ 1.2 log @Allow preferring a pkgsrc "curses" implementation for all packages that include curses.buildlink3.mk. Generally, the rule is not to set CURSES_DEFAULT unless it's to set it to "ncurses" or "pdcurses". # Example mk.conf settings and their results. # Use the system curses. PREFER_NATIVE= yes # default value CURSES_DEFAULT= curses # default value # Use system "ncurses" if it's available, otherwise use devel/ncurses # from pkgsrc. # PREFER_NATIVE= yes # default value CURSES_DEFAULT= ncurses # Use devel/ncurses from pkgsrc. PREFER_PKGSRC= yes # Use devel/pdcurses from pkgsrc. PREFER_PKGSRC= yes CURSES_DEFAULT= pdcurses # This causes a package build failure because there is no pkgsrc # curses. # PREFER_PKGSRC= yes CURSES_DEFAULT= curses @ text @d1 1 a1 1 # $NetBSD: curses.builtin.mk,v 1.1 2008/02/25 04:19:34 jlam Exp $ d61 2 a62 1 BUILDLINK_LDADD.curses?= -lcurses @ 1.1 log @+ Introduce a way for a user to set the default curses implementation used by packages that need curses. From curses.buildlink3.mk: CURSES_DEFAULT This value represents the type of curses we wish to use on the system. Setting this to "curses" means that the system curses implementation is fine. Possible: curses, ncurses, pdcurses + Move all code to detect a built-in version of curses into a curses.builtin.mk file. + Add code to {n,pd}curses/buildlink3.mk so make the headers and libraries usable as and -lcurses if _PKG_USE_CURSES is defined. _PKG_USE_CURSES is only defined by curses.buildlink3.mk. + Improve the detection of native ncurses in ncurses/builtin.mk and allow headers and libraries to be usable as and -lncurses. @ text @d1 1 a1 1 # $NetBSD$ a27 6 # # There will probably never be a devel/curses package because ncurses is # the recommended curses on many platforms, so we should always prefer the # native curses package. # PREFER.curses= native @