summaryrefslogtreecommitdiff
path: root/mk/termcap.buildlink3.mk
AgeCommit message (Collapse)AuthorFilesLines
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).