Commit graph

8 commits

Author SHA1 Message Date
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
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.
2009-03-20 19:23:50 +00:00
dsl
d24555b956 Fix the .include lines so that make looks in the right place first.
Remember .include "foo.mk" is looked for (first) in the directory that
contains the makefile being processed (like in C), so remove all the
${.PARSEDIR} and ../ sequences that just cause grief.
2007-10-13 11:04:15 +00:00
rillig
6ded5eb97b Some useful keywords for "bmake help". 2007-10-01 22:32:45 +00:00
rillig
ba2968b999 Reverted everything that had not been mentioned in the previous commit
message. Related to PR 36588.
2007-08-11 21:15:22 +00:00
rillig
3b06ad5673 pkg_info -Q does not print a newline if a variable isn't defined at all
in the installed package's +BUILD_INFO. Therefore, an empty line is
printed in advance to avoid a warning by make(1). Fixes PR 36588.
2007-08-11 16:25:16 +00:00
rillig
97712cb6ae If a package is already installed, the PKG_OPTIONS of the installed
package is returned rather than querying the source package. First, this
is more correct, and second, it greatly speeds up pkgsrc, especially
when many packages are already installed.
2007-05-07 09:26:40 +00:00
rillig
8b016e4a05 Fixed typo in the comment. 2007-04-10 03:45:36 +00:00
rillig
322a55983b Added a procedure to determine the build options of a package. This file
can be used instead of writing the same code in every package.
2007-03-18 11:09:32 +00:00