pkgsrc/mk
jlam 03e9337879 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that
caches variable definitions that were computed by make.  These variables
are specified by listing them in MAKE_VARS, e.g.,

	.if !defined(FOO)
	FOO!=	very_time_consuming_command
	.endif
	MAKE_VARS+=	FOO

bsd.pkg.mk will include only the one generated during the most recent
phase.  A particular phase's makevars.mk file consists of variable
definitions that are a superset of all of the ones produced in previous
phases of the build.

The caching is useful because bsd.pkg.mk invokes make recursively,
which in the example above has the potential to run the very time-consuming
command each time unless we cause FOO to be defined for the sub-make
processes.  We don't cache via MAKE_FLAGS because MAKE_FLAGS isn't
consistently applied to every invocation of make, and also because
MAKE_FLAGS can overflow the maximum length of a make variable very
quickly if we add many values to it.

One important and desirable property of variables cached via MAKE_VARS
is that they only apply to the current package, and not to any
dependencies whose builds may have been triggered by the current
package.

The makevars.mk files are generated by new targets fetch-vars,
extract-vars, patch-vars, etc., and these targets are built during
the corresponding real-* target to ensure that they are being invoked
with PKG_PHASE set to the proper value.

Also, remove the variables cache file that bsd.wrapper.mk was generating
since the new makevars.mk files provide the same functionality at a
higher level.  Change all WRAPPER_VARS definitions that were used by
the old wrapper-phase cache file into MAKE_VARS definitions.
2005-05-09 05:06:55 +00:00
..
buildlink3 Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that 2005-05-09 05:06:55 +00:00
bulk Changes to the upload script: 2005-05-08 13:29:09 +00:00
compiler USE_BUILDLINK3 is no longer optional (and cannot be turned off). Per mail 2005-03-24 17:46:00 +00:00
defaults Rewrite how PKG_OPTIONS is computed: 2005-05-08 13:43:30 +00:00
gnu-config Add $NetBSD$. 2005-01-14 00:10:50 +00:00
install Execute chmod(1) after chown(1)/chgrp(1) so NetBSD's chown(2) does 2005-04-20 17:13:28 +00:00
platform Teach the new tools framework about INSTALL and set the appropriate 2005-05-03 20:41:53 +00:00
scripts Don't expand .la files in PLISTs that are symlinks. The expansion should 2004-11-12 21:21:08 +00:00
tools Remove redundant variable definitions that simply match their defaults. 2005-05-09 02:43:06 +00:00
wrapper Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that 2005-05-09 05:06:55 +00:00
AIX.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
alternatives.mk Explicitly use -g to avoid relying on default behavior. 2005-01-25 16:48:53 +00:00
apache.mk Fix typo. 2005-04-21 23:05:41 +00:00
autoconf.mk Changed name of variable from file to cfile (config file) so that pkglint has 2004-10-29 12:30:20 +00:00
automake.mk Update for automake-1.9. 2004-08-13 14:19:24 +00:00
bdb.buildlink3.mk Modify bdb.buildlink3.mk so that we choose a single, well-known package 2005-01-09 23:56:21 +00:00
bsd.hacks.mk We already know that bsd.prefs.mk is included before this, so reduce make 2004-11-30 15:09:45 +00:00
bsd.options.mk Rewrite how PKG_OPTIONS is computed: 2005-05-08 13:43:30 +00:00
bsd.pkg.install.mk RCD_SCRIPTS_EXAMPLEDIR is no longer customizable. 2005-05-02 20:33:57 +00:00
bsd.pkg.mk Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that 2005-05-09 05:06:55 +00:00
bsd.pkg.subdir.mk Pass "makedistinfo" down as one of the inherited targets. 2005-02-22 21:02:15 +00:00
bsd.pkg.use.mk Sense of a USE_BUILDLINK3 test was reversed when USE_BUILDLINK3 was 2005-04-09 23:16:45 +00:00
bsd.prefs.mk Teach bsd.pkg.mk to create a phase-specific "makevars.mk" file that 2005-05-09 05:06:55 +00:00
bsd.sites.mk Update sourceforge mirror sites: remove internap, unc, voxel 2005-04-19 15:18:44 +00:00
BSDOS.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
compiler.mk note that xlc support is on Darwin. 2005-02-16 08:41:20 +00:00
curses.buildlink3.mk Oy, what a hack. But then, so is Interix.... 2004-10-13 20:10:31 +00:00
Darwin.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
Darwin.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
db1.builtin.mk Don't remove library options from the command line quite so aggressively. 2004-12-23 14:27:04 +00:00
dirs.mk Enable theme-dirs. 2004-12-24 10:06:41 +00:00
djbware.mk Remove <errno.h> TODO item -- it's fine as is. Rationale: the 2005-04-10 02:25:54 +00:00
dlopen.buildlink3.mk Check that USE_BUILTIN.dl is "yes", not that it's just defined. 2004-11-26 09:32:06 +00:00
dlopen.builtin.mk Also match NetBSD security releases, e.g. 2.0.1, when deciding whether 2005-01-20 15:22:39 +00:00
DragonFly.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
DragonFly.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
emacs.mk Second cut of a fix for the problem where PKGNAME is geting set to xemacs-${VERRSION} 2005-04-08 19:05:29 +00:00
endian.mk Rewrite to avoid needing egrep. 2005-04-30 03:01:06 +00:00
fonts.mk Fix ttf/type1 handling in fonts.mk: 2004-12-28 14:38:03 +00:00
FreeBSD.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
FreeBSD.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
ghostscript.mk The lists of ghostscript version patterns should match all ghostscript 2005-02-07 07:18:40 +00:00
Interix.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
Interix.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
IRIX.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
IRIX.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
java-env.mk Let this file be included even if JAVA_WRAPPERS is empty; this was possible 2005-03-19 16:46:45 +00:00
java-vm.mk Check for the JRE and not the SDK package to figure which version of the 2005-04-20 13:17:40 +00:00
krb5.buildlink3.mk Modify krb5.buildlink3.mk so that we choose a single, well-known 2005-01-09 23:59:26 +00:00
Linux.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
Linux.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
motif.buildlink3.mk Whitespace nit. 2004-08-27 06:33:17 +00:00
mysql.buildlink3.mk Remove support for 30, since mysql3 packages have been removed. Noted by kristerw. 2005-04-26 13:29:00 +00:00
NetBSD.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
NetBSD.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
nroff.buildlink3.mk Short bl3 fragment to provide a NROFF (base system or textproc/groff 2005-03-15 04:45:50 +00:00
OpenBSD.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
OpenBSD.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
OSF1.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
ossaudio.buildlink3.mk OpenBSD was fork()ed from NetBSD, so this uses -lossaudio as well. 2004-11-18 04:00:50 +00:00
pam.buildlink3.mk Add OS conditional blocks to exclude some PAM implementations from 2005-04-25 14:21:47 +00:00
pgsql.buildlink3.mk catch up with PostgreSQL 8.0.2 and support Darwin .dylib 2005-04-11 20:35:24 +00:00
pthread.buildlink3.mk Fixed quoting errors. Approved by jlam. 2005-04-13 16:16:50 +00:00
pthread.builtin.mk Rework code to more easily allow listing other platform that, like NetBSD, 2005-01-17 08:29:30 +00:00
reduce-depends.mk _DEPENDS.${_path_} can contain more than one dependency pattern, so split 2004-10-06 21:51:41 +00:00
solaris-pam.builtin.mk Modify linux-pam and solaris-pam builtin.mk files to be more general 2005-01-14 07:54:20 +00:00
subst.mk Avoid checking for !empty(...) so that we that defer variable references. 2005-04-30 15:05:06 +00:00
SunOS.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
SunOS.x11.dist Add my_MM locale, initially used by gaim-1.1.1. 2005-01-04 09:01:44 +00:00
texinfo.mk - Move all CHECK_FILES_SKIP definitions to a central place in bsd.pkg.mk. 2005-01-15 10:50:17 +00:00
tools.mk USE_BUILDLINK3 is no longer optional (and cannot be turned off). Per mail 2005-03-24 17:46:00 +00:00
UnixWare.pkg.dist There is no uk_UA.ISO_8859-1. Luckily no package believes otherwise, 2005-04-28 19:15:38 +00:00
xaw.buildlink3.mk xaw for buildlink3. 2004-04-11 23:35:16 +00:00