| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: plist.mk,v 1.40 2011/09/08 20:17:16 abs Exp $ | | 1 | # $NetBSD: plist.mk,v 1.40.4.1 2012/03/11 10:44:42 spz Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment handles the creation of PLISTs for use by | | 3 | # This Makefile fragment handles the creation of PLISTs for use by |
4 | # pkg_create(8). | | 4 | # pkg_create(8). |
5 | # | | 5 | # |
6 | # The following variables affect the PLIST generation: | | 6 | # The following variables affect the PLIST generation: |
7 | # | | 7 | # |
8 | # PLIST_TYPE specifies whether the generated PLIST is derived | | 8 | # PLIST_TYPE specifies whether the generated PLIST is derived |
9 | # automatically from the installed files, or if the PLIST entries | | 9 | # automatically from the installed files, or if the PLIST entries |
10 | # are listed in files. Valid values are "dynamic" and "static", | | 10 | # are listed in files. Valid values are "dynamic" and "static", |
11 | # and the default value is "static". | | 11 | # and the default value is "static". |
12 | # | | 12 | # |
13 | # PLIST_VARS is the list of names corresponding to automatic variables | | 13 | # PLIST_VARS is the list of names corresponding to automatic variables |
14 | # generated by plist.mk to simplify having conditionally-present | | 14 | # generated by plist.mk to simplify having conditionally-present |
| @@ -86,28 +86,30 @@ PKG_FAIL_REASON+= "Missing PLIST fi | | | @@ -86,28 +86,30 @@ PKG_FAIL_REASON+= "Missing PLIST fi |
86 | . endif | | 86 | . endif |
87 | .endif | | 87 | .endif |
88 | | | 88 | |
89 | PLIST_SRC?= ${PLIST_SRC_DFLT} | | 89 | PLIST_SRC?= ${PLIST_SRC_DFLT} |
90 | | | 90 | |
91 | # This is the path to the generated PLIST file. | | 91 | # This is the path to the generated PLIST file. |
92 | PLIST= ${WRKDIR}/.PLIST | | 92 | PLIST= ${WRKDIR}/.PLIST |
93 | _PLIST_NOKEYWORDS=${PLIST}_nokeywords | | 93 | _PLIST_NOKEYWORDS=${PLIST}_nokeywords |
94 | | | 94 | |
95 | ###################################################################### | | 95 | ###################################################################### |
96 | | | 96 | |
97 | .if (defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake)) | | 97 | .if (defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake)) |
98 | _IMAKE_MANINSTALL= ${IMAKE_MANINSTALL} | | 98 | _IMAKE_MANINSTALL= ${IMAKE_MANINSTALL} |
| | | 99 | _PLIST_MANINSTALL= ${IMAKE_MANINSTALL} |
99 | .else | | 100 | .else |
100 | _IMAKE_MANINSTALL= # empty | | 101 | _IMAKE_MANINSTALL= # empty |
| | | 102 | _PLIST_MANINSTALL= ${MANINSTALL} |
101 | .endif | | 103 | .endif |
102 | | | 104 | |
103 | _LIBTOOL_EXPAND= \ | | 105 | _LIBTOOL_EXPAND= \ |
104 | ${PKGSRC_SETENV} ECHO=${TOOLS_ECHO:Q} GREP=${TOOLS_GREP:Q} \ | | 106 | ${PKGSRC_SETENV} ECHO=${TOOLS_ECHO:Q} GREP=${TOOLS_GREP:Q} \ |
105 | SORT=${TOOLS_SORT:Q} TEST=${TOOLS_TEST:Q} \ | | 107 | SORT=${TOOLS_SORT:Q} TEST=${TOOLS_TEST:Q} \ |
106 | ${SH} ${.CURDIR}/../../mk/plist/libtool-expand | | 108 | ${SH} ${.CURDIR}/../../mk/plist/libtool-expand |
107 | | | 109 | |
108 | .if !defined(_IGNORE_INFO_PATH) | | 110 | .if !defined(_IGNORE_INFO_PATH) |
109 | . for _dir_ in ${IGNORE_INFO_DIRS} | | 111 | . for _dir_ in ${IGNORE_INFO_DIRS} |
110 | _IGNORE_INFO_PATH:= ${_IGNORE_INFO_PATH}:${_dir_} | | 112 | _IGNORE_INFO_PATH:= ${_IGNORE_INFO_PATH}:${_dir_} |
111 | . endfor | | 113 | . endfor |
112 | _IGNORE_INFO_PATH:= ${_IGNORE_INFO_PATH:S/^://} | | 114 | _IGNORE_INFO_PATH:= ${_IGNORE_INFO_PATH:S/^://} |
113 | .endif | | 115 | .endif |
| @@ -116,27 +118,27 @@ MAKEVARS+= _IGNORE_INFO_PATH | | | @@ -116,27 +118,27 @@ MAKEVARS+= _IGNORE_INFO_PATH |
116 | # _PLIST_AWK_ENV holds the shell environment passed to the awk script | | 118 | # _PLIST_AWK_ENV holds the shell environment passed to the awk script |
117 | # that does post-processing of the PLIST. See the individual *.awk | | 119 | # that does post-processing of the PLIST. See the individual *.awk |
118 | # scripts for information on each of the variable set in the environment. | | 120 | # scripts for information on each of the variable set in the environment. |
119 | # | | 121 | # |
120 | _PLIST_AWK_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} | | 122 | _PLIST_AWK_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} |
121 | _PLIST_AWK_ENV+= USE_PKGLOCALEDIR=${USE_PKGLOCALEDIR:Dyes:Uno} | | 123 | _PLIST_AWK_ENV+= USE_PKGLOCALEDIR=${USE_PKGLOCALEDIR:Dyes:Uno} |
122 | _PLIST_AWK_ENV+= IMAKE_MANINSTALL=${_IMAKE_MANINSTALL:Q} | | 124 | _PLIST_AWK_ENV+= IMAKE_MANINSTALL=${_IMAKE_MANINSTALL:Q} |
123 | _PLIST_AWK_ENV+= IGNORE_INFO_PATH=${_IGNORE_INFO_PATH:Q} | | 125 | _PLIST_AWK_ENV+= IGNORE_INFO_PATH=${_IGNORE_INFO_PATH:Q} |
124 | _PLIST_AWK_ENV+= PKGINFODIR=${PKGINFODIR:Q} | | 126 | _PLIST_AWK_ENV+= PKGINFODIR=${PKGINFODIR:Q} |
125 | _PLIST_AWK_ENV+= IGNORE_LIBTOOLIZE=${IGNORE_LIBTOOLIZE:Q} | | 127 | _PLIST_AWK_ENV+= IGNORE_LIBTOOLIZE=${IGNORE_LIBTOOLIZE:Q} |
126 | _PLIST_AWK_ENV+= LIBTOOLIZE_PLIST=${LIBTOOLIZE_PLIST:Q} | | 128 | _PLIST_AWK_ENV+= LIBTOOLIZE_PLIST=${LIBTOOLIZE_PLIST:Q} |
127 | _PLIST_AWK_ENV+= LIBTOOL_EXPAND=${_LIBTOOL_EXPAND:Q} | | 129 | _PLIST_AWK_ENV+= LIBTOOL_EXPAND=${_LIBTOOL_EXPAND:Q} |
128 | _PLIST_AWK_ENV+= LS=${TOOLS_LS:Q} | | 130 | _PLIST_AWK_ENV+= LS=${TOOLS_LS:Q} |
129 | _PLIST_AWK_ENV+= MANINSTALL=${MANINSTALL:Q} | | 131 | _PLIST_AWK_ENV+= MANINSTALL=${_PLIST_MANINSTALL:Q} |
130 | _PLIST_AWK_ENV+= MANZ=${_MANZ:Q} | | 132 | _PLIST_AWK_ENV+= MANZ=${_MANZ:Q} |
131 | _PLIST_AWK_ENV+= PKGMANDIR=${PKGMANDIR:Q} | | 133 | _PLIST_AWK_ENV+= PKGMANDIR=${PKGMANDIR:Q} |
132 | _PLIST_AWK_ENV+= PREFIX=${DESTDIR:Q}${PREFIX:Q} | | 134 | _PLIST_AWK_ENV+= PREFIX=${DESTDIR:Q}${PREFIX:Q} |
133 | _PLIST_AWK_ENV+= TEST=${TOOLS_TEST:Q} | | 135 | _PLIST_AWK_ENV+= TEST=${TOOLS_TEST:Q} |
134 | | | 136 | |
135 | # PLIST_SUBST contains package-settable "${variable}" to "value" | | 137 | # PLIST_SUBST contains package-settable "${variable}" to "value" |
136 | # substitutions for PLISTs | | 138 | # substitutions for PLISTs |
137 | # | | 139 | # |
138 | PLIST_SUBST+= OPSYS=${OPSYS:Q} \ | | 140 | PLIST_SUBST+= OPSYS=${OPSYS:Q} \ |
139 | OS_VERSION=${OS_VERSION:Q} \ | | 141 | OS_VERSION=${OS_VERSION:Q} \ |
140 | MACHINE_ARCH=${MACHINE_ARCH:Q} \ | | 142 | MACHINE_ARCH=${MACHINE_ARCH:Q} \ |
141 | MACHINE_GNU_ARCH=${MACHINE_GNU_ARCH:Q} \ | | 143 | MACHINE_GNU_ARCH=${MACHINE_GNU_ARCH:Q} \ |
142 | MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM:Q} \ | | 144 | MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM:Q} \ |