pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/plist Allow to additional post-processing PLIST wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/74ff77672027
branches:  trunk
changeset: 603789:74ff77672027
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun May 13 12:39:47 2012 +0000

description:
Allow to additional post-processing PLIST with PLIST_AWK and PLIST_AWK_ENV.

diffstat:

 mk/plist/plist.mk |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 67bf20c387ee -r 74ff77672027 mk/plist/plist.mk
--- a/mk/plist/plist.mk Sun May 13 11:29:33 2012 +0000
+++ b/mk/plist/plist.mk Sun May 13 12:39:47 2012 +0000
@@ -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 @@
 _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+=       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-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



Home | Main Index | Thread Index | Old Index