summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-05-13 12:39:47 +0000
committerobache <obache@pkgsrc.org>2012-05-13 12:39:47 +0000
commit7874a0a7e9f5d31462a13b6c85c3c5e9214f0c16 (patch)
tree92f7dcfc577b309c6d4edeb2c69c8d5c1cf7473e
parent50c2a8eed397dee908a9e2f22652e9dc267e4bc5 (diff)
downloadpkgsrc-7874a0a7e9f5d31462a13b6c85c3c5e9214f0c16.tar.gz
Allow to additional post-processing PLIST with PLIST_AWK and PLIST_AWK_ENV.
-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