summaryrefslogtreecommitdiff
path: root/mk/termcap.buildlink3.mk
AgeCommit message (Collapse)AuthorFilesLines
2018-12-20mk/termcap.buildlink3.mk: add show-all-termcap target for debuggingrillig1-1/+12
2016-04-11update PKG_{FAIL,SKIP}_REASON with +=dbj1-2/+2
2013-10-19Fix for older bmakeroy1-3/+3
2013-10-16If TERMINFO or CURSES is already set, don't undefine them.roy1-2/+4
2010-02-07Add builtin for working out if we have terminfo installed natively.roy1-3/+4
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-4/+2
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2008-03-05TERMCAP_TYPE isn't really a variable that you can set, so add it tojlam1-2/+2
BUILD_DEFS_EFFECTS instead of BUILD_DEFS.
2008-03-05+ Fix error in previous commit -- too much of the termcap buildlinkjlam1-3/+31
code was moved to the builtin.mk file. The buildlink3.mk file should contain the bits that always apply to all packages that include it. The builtin.mk file should include the bits that only apply if "termcap" is listed in ${BUILDLINK_PACKAGES} (this isn't the case if we use curses to replace termcap). As such, redistribute the code as follows: + Move the parts that remove -l options for terminal libraries we don't support, as well as for transforming "-ltermcap" into the appropriate libraries, from the builtin.mk back into the buildlink3.mk. + Leave the parts the remove -lcurses and -lncurses in the builtin.mk. We can remove the ${TERMCAP_TYPE} == "curses" check since that part of the file is protected by CHECK_BUILTIN.termcap, so it should only be triggered if "termcap" is in BUILDLINK_PACKAGES, which only happens if ${TERMCAP_TYPE} isn't "curses".
2008-03-05+ Only remove -lcurses and -lncurses in BUILDLINK_TRANSFORM if thejlam1-31/+3
package does not use either curses or ncurses. We determine this by inspecting BUILDLINK_PACKAGES and looking for "curses" and "ncurses". + Because the above logic uses BUILDLINK_PACKAGES, the code must be moved from termcap.buildlink3.mk into termcap.builtin.mk where it is safe to inspect BUILDLINK_PACKAGES.
2008-03-05If the TERMCAP_TYPE isn't "curses", then also remove "-lncurses" fromjlam1-1/+4
the command line so we don't find any system ncurses library. XXX This currently causes problems with packages using both termcap XXX (usually via readline) and curses. This will be fixed in time.
2008-03-02+ Teach buildlink3.mk to cause GNU configure script to not find any otherjlam1-3/+18
terminal library other than the one we specify. + Also look for "termlib" as some systems have that. Note that we need to make the library search more sophisticated to work correctly on more exotic platforms.
2008-02-29Rename termlib.* to termcap.* to better document exactly what packagesjlam1-0/+52
are trying to use (the termcap t*() API).