summaryrefslogtreecommitdiff
path: root/mk/plist/plist.mk
diff options
context:
space:
mode:
authorobache <obache>2012-05-13 12:39:47 +0000
committerobache <obache>2012-05-13 12:39:47 +0000
commit212a052a0a14f9b4144e2731ed8170b579dde568 (patch)
tree92f7dcfc577b309c6d4edeb2c69c8d5c1cf7473e /mk/plist/plist.mk
parent35776ba8218c3281149d19192ab25c30930837d3 (diff)
downloadpkgsrc-212a052a0a14f9b4144e2731ed8170b579dde568.tar.gz
Allow to additional post-processing PLIST with PLIST_AWK and PLIST_AWK_ENV.
Diffstat (limited to 'mk/plist/plist.mk')
-rw-r--r--mk/plist/plist.mk10
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