diff options
author | asau <asau@pkgsrc.org> | 2012-08-14 15:27:07 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2012-08-14 15:27:07 +0000 |
commit | 6349fac7670103cfbc6ad97e02c8dd92cb104246 (patch) | |
tree | 8931d64c790756718f3700a9336db1bcb388b8b2 /mk/bsd.prefs.mk | |
parent | 3eb096c4d735177bc7f17f90d310b38cda5a4b09 (diff) | |
download | pkgsrc-6349fac7670103cfbc6ad97e02c8dd92cb104246.tar.gz |
Introduce explicit name for no staged installation support: "none".
Keep "none" a default value for PKG_DESTDIR_SUPPORT for now.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index f132478dad5..c30935870bb 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.325 2012/07/27 09:44:31 jperkin Exp $ +# $NetBSD: bsd.prefs.mk,v 1.326 2012/08/14 15:27:07 asau Exp $ # # This file includes the mk.conf file, which contains the user settings. # @@ -432,10 +432,10 @@ do-install: # After 2011Q1, the default is to use DESTDIR. USE_DESTDIR?= yes -# PKG_DESTDIR_SUPPORT can only be one of "destdir" or "user-destdir". -PKG_DESTDIR_SUPPORT?= # empty +# PKG_DESTDIR_SUPPORT can only be one of "none", "destdir", or "user-destdir". +PKG_DESTDIR_SUPPORT?= none -.if empty(PKG_DESTDIR_SUPPORT) || empty(USE_DESTDIR:M[Yy][Ee][Ss]) +.if ${PKG_DESTDIR_SUPPORT} == "none" || empty(USE_DESTDIR:M[Yy][Ee][Ss]) . if empty(USE_DESTDIR:M[Yy][Ee][Ss]) && empty(USE_DESTDIR:M[Nn][Oo]) PKG_FAIL_REASON+= "USE_DESTDIR must be either \`\`yes'' or \`\`no''" . endif @@ -445,12 +445,12 @@ _USE_DESTDIR= user-destdir .elif ${PKG_DESTDIR_SUPPORT} == "destdir" _USE_DESTDIR= destdir .else -PKG_FAIL_REASON+= "PKG_DESTDIR_SUPPORT must be \`\`destdir'' or \`\`user-destdir''." +PKG_FAIL_REASON+= "PKG_DESTDIR_SUPPORT must be \`\`none'', \`\`destdir'', or \`\`user-destdir''." .endif # This stanza serves to warn the user; deciding to not build # non-DESTDIR-capable packages when not in DESTDIR mode is above. -.if empty(PKG_DESTDIR_SUPPORT) +.if ${PKG_DESTDIR_SUPPORT} == "none" WARNINGS+= "[bsd.prefs.mk] The package ${PKGNAME} is missing DESTDIR support." .endif |