diff options
author | jlam <jlam> | 2003-08-29 02:06:09 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-08-29 02:06:09 +0000 |
commit | 45ae768e44572cbdaaa409e4bc51248d1d889b2d (patch) | |
tree | 5c6801a0459c0ac441512ab64e9bf5f8cd96afa0 /mk/bsd.pkg.mk | |
parent | 3bc65c81f5d2447baaaab8650a356891be426245 (diff) | |
download | pkgsrc-45ae768e44572cbdaaa409e4bc51248d1d889b2d.tar.gz |
Support two new variables:
PKG_INSTALLATION_PREFS?= overwrite pkgviews
# This is a whitespace-separated list of installation types to try when
# building a package, in order of preference.
# Possible: any of: overwrite, pkgviews
# Default: overwrite pkgviews
PKG_INSTALLATION_TYPES?= overwrite
# This is a whitespace-separated list of installation types supported
# by the package.
#
# *NOTE*: This variable *must* be set in the package Makefile *before*
# the inclusion of bsd.prefs.mk.
#
# Possible: any of: overwrite, pkgviews
# Default: overwrite
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index ea544dd30a2..1c65046bc05 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1216.2.43 2003/08/29 00:53:05 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1216.2.44 2003/08/29 02:06:10 jlam Exp $ # # This file is in the public domain. # @@ -95,6 +95,10 @@ INTERACTIVE_STAGE?= none PKG_FAIL_REASON+= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite''." .endif +.if empty(PKG_INSTALLATION_TYPES:M${PKG_INSTALLATION_TYPE}) +PKG_FAIL_REASON+= "This package doesn't support PKG_INSTALLATION_TYPE=${PKG_INSTALLATION_TYPE}." +.endif + # The style of PLISTs that are used by the installed package. # Possible: dynamic, static # @@ -102,6 +106,8 @@ PKG_FAIL_REASON+= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite PLIST_TYPE?= dynamic .elif ${PKG_INSTALLATION_TYPE} == "overwrite" PLIST_TYPE?= static +.else +PLIST_TYPE?= static .endif # PLIST_TYPE can only be one of two values: "dynamic" or "static". If we |