summaryrefslogtreecommitdiff
path: root/mk/curses.buildlink3.mk
AgeCommit message (Collapse)AuthorFilesLines
2010-02-07Fix another silly typo.roy1-2/+2
2010-02-07Remove typo.roy1-2/+1
2010-02-07Add builtin for working out if we have terminfo installed natively.roy1-3/+3
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-09-16Do not force ncurses on Interix; it does not have a proper shared library.minskim1-8/+1
Instead, let curses.buildlink3.mk find out a usable one. This fixes the error reported in PR 39531. However, the PR will remain open for now because it raises another issue whether tnftp should depend on curses or not.
2008-02-29Ensure that BUILDLINK_PREFIX.curses is always defined.jlam1-1/+3
2008-02-27If FOO is empty, then ${FOO:S/^/-l/} has a value of "-l". This is notjlam1-2/+2
what we want. Instead, use another pattern to strip away lone "-l" in BUILDLINK_LDADD.*.
2008-02-27+ Define BUILTIN_LIBNAME.* unconditionally so that their values canjlam1-2/+1
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-27Set BUILDLINK_LDADD.curses in the CURSES_TYPE == "curses" case.jlam1-1/+3
2008-02-27+ The termlib.buildlink3.mk file is meant to be included by packagesjlam1-1/+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-3/+3
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-15/+89
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.
2007-11-03Clarified the comment.rillig1-3/+6
2007-10-17Made the .include lines simpler.rillig1-2/+2
2004-10-13Oy, what a hack. But then, so is Interix....tv1-1/+10
On Interix, force inclusion of devel/ncurses/buildlink3.mk from mk/curses.buildlink3.mk. This forces inclusion of its builtin.mk too. In devel/ncurses/builtin.mk, if using Interix's builtin ncurses, always transform -lncurses to -lcurses. (-lncurses is static, but -lcurses is shared; we want the shared version.)
2004-03-18Fix serious bug where BUILDLINK_PACKAGES wasn't being ordered properlyjlam1-9/+5
by moving the inclusion of buildlink3.mk files outside of the protected region. This bug would be seen by users that have set PREFER_PKGSRC or PREFER_NATIVE to non-default values. BUILDLINK_PACKAGES should be ordered so that for any package in the list, that package doesn't depend on any packages to the left of it in the list. This ordering property is used to check for builtin packages in the correct order. The problem was that including a buildlink3.mk file for <pkg> correctly ensured that <pkg> was removed from BUILDLINK_PACKAGES and appended to the end. However, since the inclusion of any other buildlink3.mk files within that buildlink3.mk was in a region that was protected against multiple inclusion, those dependencies weren't also moved to the end of BUILDLINK_PACKAGES.
2004-02-13curses.buildlink[23].mk files to be included by packages that use thejlam1-0/+16
curses library in some way. This file will automatically include ncurses/buildlink[23].mk if a curses implementation isn't available. If a package truly needs ncurses, then it should include ncurses/buildlink[23].mk directly.