summaryrefslogtreecommitdiff
path: root/mk/curses.builtin.mk
AgeCommit message (Collapse)AuthorFilesLines
2008-02-27+ Define BUILTIN_LIBNAME.* unconditionally so that their values canjlam1-6/+5
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.
2008-02-27Define BUILTIN_LIBNAME.* outside of the CHECK_BUILTIN.*-protectedjlam1-5/+10
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.
2008-02-27+ The termlib.buildlink3.mk file is meant to be included by packagesjlam1-2/+3
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.
2008-02-27Allow preferring a pkgsrc "curses" implementation for all packagesjlam1-7/+1
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
2008-02-25+ Introduce a way for a user to set the default curses implementationjlam1-0/+71
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 <curses.h> 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 <ncurses.h> and -lncurses.