diff options
-rw-r--r-- | mk/plist/plist.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/plist/plist.mk b/mk/plist/plist.mk index 55f357bba4b..db9a5adf255 100644 --- a/mk/plist/plist.mk +++ b/mk/plist/plist.mk @@ -1,4 +1,4 @@ -# $NetBSD: plist.mk,v 1.41 2012/03/04 08:03:56 tron Exp $ +# $NetBSD: plist.mk,v 1.42 2012/05/13 12:39:47 obache Exp $ # # This Makefile fragment handles the creation of PLISTs for use by # pkg_create(8). @@ -17,6 +17,10 @@ # then in the PLIST generation, the ${PLIST.var} symbol is replaced # with the empty string, or "@comment " otherwise. # +# PLIST_AWK_ENV holds the shell environment passed to PLIST_AWK. +# +# PLIST_AWK is the awk script that does post-processing of the PLIST. +# # PLIST_SRC is the list of source files from which the PLIST file of # the binary package will be generated. By default, its value is # constructed from the PLIST.* files within the package directory, @@ -43,6 +47,8 @@ _PKG_VARS.plist= PLIST_SUBST PLIST_VARS PLIST_SRC GENERATE_PLIST _SYS_VARS.plist= PLIST_TYPE PLIST PLIST_VARS?= # empty +PLIST_AWK?= # empty +PLIST_AWK_ENV?= # empty .if ${PKG_INSTALLATION_TYPE} == "pkgviews" PLIST_TYPE?= dynamic @@ -133,6 +139,7 @@ _PLIST_AWK_ENV+= MANZ=${_MANZ:Q} _PLIST_AWK_ENV+= PKGMANDIR=${PKGMANDIR:Q} _PLIST_AWK_ENV+= PREFIX=${DESTDIR:Q}${PREFIX:Q} _PLIST_AWK_ENV+= TEST=${TOOLS_TEST:Q} +_PLIST_AWK_ENV+= ${PLIST_AWK_ENV} # PLIST_SUBST contains package-settable "${variable}" to "value" # substitutions for PLISTs @@ -183,6 +190,7 @@ _PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-locale.awk _PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-info.awk _PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-man.awk _PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-libtool.awk +_PLIST_AWK+= ${PLIST_AWK} _PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-default.awk _PLIST_INFO_AWK+= -f ${.CURDIR}/../../mk/plist/plist-functions.awk |