summaryrefslogtreecommitdiff
path: root/mk/build
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2017-06-01 02:15:10 +0000
committerjlam <jlam@pkgsrc.org>2017-06-01 02:15:10 +0000
commite7fe02e33c402c818cb69cc8fa554c23adc2cb5a (patch)
treedb49484496fa6798a789721536b886beae253c9b /mk/build
parentaf0fdc41317355088c9f02fa3203e52441290057 (diff)
downloadpkgsrc-e7fe02e33c402c818cb69cc8fa554c23adc2cb5a.tar.gz
Provide switch to activate new frameworks to replace "pkginstall".
If ${_USE_NEW_PKGINSTALL} is "yes", then use the new "pkgtasks", "init", and "pkgformat/pkg"-scripts frameworks instead of the existing "pkginstall" framework.
Diffstat (limited to 'mk/build')
-rw-r--r--mk/build/bsd.build.mk6
-rw-r--r--mk/build/build.mk4
2 files changed, 8 insertions, 2 deletions
diff --git a/mk/build/bsd.build.mk b/mk/build/bsd.build.mk
index 7a647a5ae4a..d9a4cb5f34b 100644
--- a/mk/build/bsd.build.mk
+++ b/mk/build/bsd.build.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.build.mk,v 1.11 2008/02/07 21:36:13 rillig Exp $
+# $NetBSD: bsd.build.mk,v 1.12 2017/06/01 02:15:10 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to building sources for a package.
@@ -36,7 +36,11 @@ _COOKIE.test= ${WRKDIR}/.test_done
build:
@${DO_NADA}
. elif defined(_PKGSRC_BARRIER)
+. if ${_USE_NEW_PKGINSTALL:Uno} != "no"
+build: configure build-cookie
+. else
build: configure build-cookie pkginstall
+. endif
. else
build: barrier
. endif
diff --git a/mk/build/build.mk b/mk/build/build.mk
index 5366b97c3bc..4fc61febebe 100644
--- a/mk/build/build.mk
+++ b/mk/build/build.mk
@@ -1,4 +1,4 @@
-# $NetBSD: build.mk,v 1.21 2012/05/27 14:32:29 cheusov Exp $
+# $NetBSD: build.mk,v 1.22 2017/06/01 02:15:10 jlam Exp $
#
# This file defines what happens in the build phase, excluding the
# self-test, which is defined in test.mk.
@@ -67,7 +67,9 @@ _BUILD_TARGETS+= configure
_BUILD_TARGETS+= acquire-build-lock
_BUILD_TARGETS+= ${_COOKIE.build}
_BUILD_TARGETS+= release-build-lock
+.if ${_USE_NEW_PKGINSTALL:Uno} == "no"
_BUILD_TARGETS+= pkginstall
+.endif
.PHONY: build
.if !target(build)