diff options
author | jperkin <jperkin> | 2015-04-27 19:59:07 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2015-04-27 19:59:07 +0000 |
commit | 8f32b1c1ff1cf2509c8a768dbf7c0b403940b919 (patch) | |
tree | 0c048ea23e21ffbc04b595ccab1dfa0120d912c5 /mk/bsd.pkg.mk | |
parent | 7d888602eaf845f8999331fbe849f83b11363466 (diff) | |
download | pkgsrc-8f32b1c1ff1cf2509c8a768dbf7c0b403940b919.tar.gz |
Split cwrappers from legacy wrappers. We no longer generate the legacy
wrappers when USE_CWRAPPERS is enabled, saving a reasonable amount of
I/O during builds, mostly due to avoiding the transform/untransform sed
file generations.
WRAPPER_DIR and WRAPPER_BINDIR are used by various packages to override
or point to specific wrappers, and these now point to the cwrappers
directory when enabled, removing the need for CWRAPPERS_BIN_DIR
duplication and fixing packages which previously were using legacy
wrappers by accident.
A number of targets are now duplicated between bsd.wrapper.mk and
cwrappers.mk, the intention being that the legacy wrappers will be
deprecated once cwrappers is verified on all supported platforms. If
that turns out to take longer than expected, we will probably want to
introduce a wrapper.mk to abstract them away before loading the
appropriate back-end.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 00a0a6cf88e..16cd59fe2e2 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.2011 2015/03/07 21:14:32 tnn Exp $ +# $NetBSD: bsd.pkg.mk,v 1.2012 2015/04/27 19:59:07 jperkin Exp $ # # This file is in the public domain. # @@ -406,10 +406,11 @@ fake-home: ${FAKEHOMEDIR} ${FAKEHOMEDIR}: ${RUN} ${MKDIR} ${.TARGET} -.include "wrapper/bsd.wrapper.mk" - +# Use C-based wrappers or legacy shell versions. .if ${USE_CWRAPPERS:tl} != "no" .include "cwrappers.mk" +.else +.include "wrapper/bsd.wrapper.mk" .endif .if defined(ABI_DEPENDS) || defined(BUILD_ABI_DEPENDS) |