diff options
author | jlam <jlam> | 2003-08-21 04:07:37 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-08-21 04:07:37 +0000 |
commit | 430a476ed54314c9ab24f86f31894cae79ccb018 (patch) | |
tree | 8d7daf4b121d1bb2c59336da76122db5ef165586 | |
parent | 8fd9099837bb5314db304099757ee04990407332 (diff) | |
download | pkgsrc-430a476ed54314c9ab24f86f31894cae79ccb018.tar.gz |
Support PLIST_TYPE, which can be either "dynamic" or "static" to represent
whether we are using the dynamic PLIST facility or if we're using the PLIST
kept with pkgsrc. PLIST_TYPE is only relevant if PKG_INSTALLATION_TYPE is
set to "pkgviews".
-rw-r--r-- | mk/bsd.pkg.mk | 38 | ||||
-rw-r--r-- | mk/bsd.prefs.mk | 7 |
2 files changed, 33 insertions, 12 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index ff55758cc94..772550992db 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1216.2.24 2003/08/21 02:06:13 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1216.2.25 2003/08/21 04:07:37 jlam Exp $ # # This file is in the public domain. # @@ -87,13 +87,37 @@ _DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} INTERACTIVE_STAGE?= none +# The style of installation to be performed for the package. +# Possible: overwrite, pkgviews +# +PKG_INSTALLATION_TYPE?= overwrite + # PKG_INSTALLATION_TYPE can only be one of two values: "pkgviews" or -# "overwrite". If we don't explicitly ask for "pkgviews", assume # "overwrite". # .if (${PKG_INSTALLATION_TYPE} != "pkgviews") && \ (${PKG_INSTALLATION_TYPE} != "overwrite") -PKG_FAIL_REASON= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite''." +PKG_FAIL_REASON+= "PKG_INSTALLATION_TYPE must be \`\`pkgviews'' or \`\`overwrite''." +.endif + +# The style of PLISTs that are used by the installed package. +# Possible: dynamic, static +# +.if ${PKG_INSTALLATION_TYPE} == "pkgviews" +PLIST_TYPE?= dynamic +.else # ${PKG_INSTALLATION_TYPE} == "overwrite" +PLIST_TYPE?= static +.endif + +# PLIST_TYPE can only be one of two values: "dynamic" or "static". If we +# don't explicitly ask for "static", assume "dynamic". +# +.if (${PLIST_TYPE} != "dynamic") && (${PLIST_TYPE} != "static") +PKG_FAIL_REASON+= "PLIST_TYPE must be \`\`dynamic'' or \`\`static''." +.endif + +.if (${PKG_INSTALLATION_TYPE} == "overwrite") && (${PLIST_TYPE} != "static") +PKG_FAIL_REASON+= "PLIST_TYPE must be \`\`static'' for \`\`overwrite'' packages." .endif # Set the default BUILDLINK_DIR, BUILDLINK_X11PKG_DIR, BUILDLINK_X11_DIR so @@ -111,7 +135,7 @@ _USE_BUILDLINK3= yes _USE_BUILDLINK3= no .endif .if empty(USE_BUILDLINK2:M[nN][oO]) && empty(_USE_BUILDLINK3:M[nN][oO]) -PKG_FAIL_REASON= "Please undefine USE_BUILDLINK2 when using pkgviews." +PKG_FAIL_REASON+= "Please undefine USE_BUILDLINK2 when using pkgviews." .endif .if defined(USE_IMAKE) @@ -162,7 +186,9 @@ PKG_DBDIR= ${PKG_DBDIR_DFLT} PKG_DBDIR= ${DEPOTBASE} PREFIX= ${DEPOTBASE}/${PKGNAME} NO_MTREE= yes -PLIST_SRC= # empty, since we use dynamic PLIST generation +. if ${PLIST_TYPE} == "dynamic" +PLIST_SRC= # empty, since we're using a dynamic PLIST +. endif # # _PLIST_IGNORE_FILES basically mirrors the list of ignored files found # in pkg_views(1). It's used by the dynamic PLIST generator to skip @@ -4722,7 +4748,7 @@ ${MESSAGE}: ${MESSAGE_SRC} # the contents of ${PLIST_SRC}. # GENERATE_PLIST?= ${TRUE}; -.if ${PKG_INSTALLATION_TYPE} == "pkgviews" +.if ${PLIST_TYPE} == "dynamic" _PLIST_IGNORE_CMD= \ ( while read i; do \ ignore=no; \ diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 8f388d5b571..35a63c6b5cc 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.118.2.9 2003/08/21 02:06:15 jlam Exp $ +# $NetBSD: bsd.prefs.mk,v 1.118.2.10 2003/08/21 04:07:38 jlam Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -368,9 +368,4 @@ _COMPILER_LD_FLAG= # pattern for Sun compilers _COMPILER_LD_FLAG= -Wl, # pattern for GCC and others .endif -# The style of installation to be performed for the package. -# Possible: overwrite, pkgviews -# -PKG_INSTALLATION_TYPE?= overwrite - .endif # BSD_PKG_MK |