2018-11-30 19:38:19 +01:00
|
|
|
# $NetBSD: plist.mk,v 1.51 2018/11/30 18:38:20 rillig Exp $
|
2006-01-13 00:43:56 +01:00
|
|
|
#
|
|
|
|
# This Makefile fragment handles the creation of PLISTs for use by
|
|
|
|
# pkg_create(8).
|
|
|
|
#
|
2006-03-14 18:14:47 +01:00
|
|
|
# The following variables affect the PLIST generation:
|
2006-01-13 00:43:56 +01:00
|
|
|
#
|
|
|
|
# PLIST_TYPE specifies whether the generated PLIST is derived
|
|
|
|
# automatically from the installed files, or if the PLIST entries
|
|
|
|
# are listed in files. Valid values are "dynamic" and "static",
|
|
|
|
# and the default value is "static".
|
|
|
|
#
|
2008-04-08 22:52:15 +02:00
|
|
|
# PLIST_VARS is the list of names corresponding to automatic variables
|
|
|
|
# generated by plist.mk to simplify having conditionally-present
|
|
|
|
# entries in the PLIST. If "var" is listed in PLIST_VARS, then the
|
|
|
|
# automatic variable is named PLIST.var. If PLIST.var is defined,
|
|
|
|
# then in the PLIST generation, the ${PLIST.var} symbol is replaced
|
|
|
|
# with the empty string, or "@comment " otherwise.
|
|
|
|
#
|
2012-05-13 14:39:47 +02:00
|
|
|
# PLIST_AWK_ENV holds the shell environment passed to PLIST_AWK.
|
|
|
|
#
|
|
|
|
# PLIST_AWK is the awk script that does post-processing of the PLIST.
|
|
|
|
#
|
2007-06-09 13:02:23 +02:00
|
|
|
# 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,
|
|
|
|
# in the following order (if the files are present):
|
|
|
|
#
|
|
|
|
# PLIST.common
|
|
|
|
# PLIST.${OPSYS} (e.g., PLIST.NetBSD)
|
|
|
|
# PLIST.${MACHINE_ARCH} (e.g,, PLIST.macppc)
|
|
|
|
# PLIST.${OPSYS}-${MACHINE_ARCH} (e.g., PLIST.NetBSD-macppc)
|
|
|
|
# PLIST
|
|
|
|
# PLIST.common_end
|
2006-01-13 00:43:56 +01:00
|
|
|
#
|
|
|
|
# GENERATE_PLIST is a sequence of commands, terminating in a semicolon,
|
|
|
|
# that outputs contents for a PLIST to stdout and is appended to
|
|
|
|
# the contents of ${PLIST_SRC}.
|
|
|
|
#
|
2006-03-14 18:14:47 +01:00
|
|
|
# IGNORE_INFO_DIRS is a list of ${PREFIX}-relative paths that do
|
|
|
|
# *not* contain info files.
|
|
|
|
#
|
2006-01-13 00:43:56 +01:00
|
|
|
|
2007-10-10 04:37:13 +02:00
|
|
|
_VARGROUPS+= plist
|
|
|
|
_USER_VARS.plist= # none
|
2008-04-08 22:52:15 +02:00
|
|
|
_PKG_VARS.plist= PLIST_SUBST PLIST_VARS PLIST_SRC GENERATE_PLIST
|
2007-10-10 04:37:13 +02:00
|
|
|
_SYS_VARS.plist= PLIST_TYPE PLIST
|
2018-11-30 19:38:19 +01:00
|
|
|
_SORTED_VARS.plist= *_SUBST *_VARS
|
|
|
|
_LISTED_VARS.plist= *_SRC GENERATE_PLIST
|
2007-10-10 04:37:13 +02:00
|
|
|
|
2008-04-08 22:52:15 +02:00
|
|
|
PLIST_VARS?= # empty
|
2012-05-13 14:39:47 +02:00
|
|
|
PLIST_AWK?= # empty
|
|
|
|
PLIST_AWK_ENV?= # empty
|
2008-04-08 22:52:15 +02:00
|
|
|
|
2006-01-13 00:43:56 +01:00
|
|
|
PLIST_TYPE?= static
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
2007-07-18 16:12:30 +02:00
|
|
|
.if exists(${PKGDIR}/PLIST.common)
|
|
|
|
PLIST_SRC_DFLT+= ${PKGDIR}/PLIST.common
|
|
|
|
.endif
|
|
|
|
.if exists(${PKGDIR}/PLIST.${OPSYS})
|
|
|
|
PLIST_SRC_DFLT+= ${PKGDIR}/PLIST.${OPSYS}
|
|
|
|
.endif
|
|
|
|
.if exists(${PKGDIR}/PLIST.${MACHINE_ARCH:C/i[3-6]86/i386/g})
|
|
|
|
PLIST_SRC_DFLT+= ${PKGDIR}/PLIST.${MACHINE_ARCH:C/i[3-6]86/i386/g}
|
|
|
|
.endif
|
|
|
|
.if exists(${PKGDIR}/PLIST.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g})
|
|
|
|
PLIST_SRC_DFLT+= ${PKGDIR}/PLIST.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g}
|
|
|
|
.endif
|
2007-07-29 07:18:36 +02:00
|
|
|
.if defined(EMUL_PLATFORM) && exists(${PKGDIR}/PLIST.${EMUL_PLATFORM})
|
|
|
|
PLIST_SRC_DFLT+= ${PKGDIR}/PLIST.${EMUL_PLATFORM}
|
|
|
|
.endif
|
2007-07-18 16:12:30 +02:00
|
|
|
.if exists(${PKGDIR}/PLIST)
|
|
|
|
PLIST_SRC_DFLT+= ${PKGDIR}/PLIST
|
|
|
|
.endif
|
|
|
|
.if exists(${PKGDIR}/PLIST.common_end)
|
|
|
|
PLIST_SRC_DFLT+= ${PKGDIR}/PLIST.common_end
|
|
|
|
.endif
|
2007-10-26 00:00:39 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# If the following 3 conditions hold, then fail the package build:
|
|
|
|
#
|
|
|
|
# (1) The package doesn't set PLIST_SRC.
|
|
|
|
# (2) The package doesn't set GENERATE_PLIST.
|
|
|
|
# (3) There are no PLIST files.
|
|
|
|
#
|
|
|
|
.if !defined(PLIST_SRC) && !defined(GENERATE_PLIST)
|
|
|
|
. if !defined(PLIST_SRC_DFLT) || empty(PLIST_SRC_DFLT)
|
|
|
|
PKG_FAIL_REASON+= "Missing PLIST file or PLIST/GENERATE_PLIST definition."
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2007-07-18 16:12:30 +02:00
|
|
|
PLIST_SRC?= ${PLIST_SRC_DFLT}
|
2006-01-13 00:43:56 +01:00
|
|
|
|
|
|
|
# This is the path to the generated PLIST file.
|
|
|
|
PLIST= ${WRKDIR}/.PLIST
|
2007-05-28 15:59:10 +02:00
|
|
|
_PLIST_NOKEYWORDS=${PLIST}_nokeywords
|
2006-01-13 00:43:56 +01:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
.if (defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake))
|
|
|
|
_IMAKE_MANINSTALL= ${IMAKE_MANINSTALL}
|
2012-03-04 09:03:56 +01:00
|
|
|
_PLIST_MANINSTALL= ${IMAKE_MANINSTALL}
|
2006-06-08 05:11:17 +02:00
|
|
|
.else
|
|
|
|
_IMAKE_MANINSTALL= # empty
|
2012-03-04 09:03:56 +01:00
|
|
|
_PLIST_MANINSTALL= ${MANINSTALL}
|
2006-01-13 00:43:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
_LIBTOOL_EXPAND= \
|
2011-09-08 22:17:15 +02:00
|
|
|
${PKGSRC_SETENV} ECHO=${TOOLS_ECHO:Q} GREP=${TOOLS_GREP:Q} \
|
2006-01-13 00:43:56 +01:00
|
|
|
SORT=${TOOLS_SORT:Q} TEST=${TOOLS_TEST:Q} \
|
2013-02-10 13:03:00 +01:00
|
|
|
BASENAME=${BASENAME:Q} DIRNAME=${DIRNAME:Q} \
|
|
|
|
PWD_CMD=${PWD_CMD:Q} \
|
|
|
|
SHLIB_TYPE=${SHLIB_TYPE:Q} \
|
2006-01-13 00:43:56 +01:00
|
|
|
${SH} ${.CURDIR}/../../mk/plist/libtool-expand
|
|
|
|
|
2006-03-14 18:14:47 +01:00
|
|
|
.if !defined(_IGNORE_INFO_PATH)
|
|
|
|
. for _dir_ in ${IGNORE_INFO_DIRS}
|
|
|
|
_IGNORE_INFO_PATH:= ${_IGNORE_INFO_PATH}:${_dir_}
|
|
|
|
. endfor
|
|
|
|
_IGNORE_INFO_PATH:= ${_IGNORE_INFO_PATH:S/^://}
|
|
|
|
.endif
|
|
|
|
MAKEVARS+= _IGNORE_INFO_PATH
|
|
|
|
|
2006-01-13 00:43:56 +01:00
|
|
|
# _PLIST_AWK_ENV holds the shell environment passed to the awk script
|
|
|
|
# that does post-processing of the PLIST. See the individual *.awk
|
|
|
|
# scripts for information on each of the variable set in the environment.
|
|
|
|
#
|
2006-04-17 08:12:46 +02:00
|
|
|
_PLIST_AWK_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q}
|
2006-04-17 08:30:48 +02:00
|
|
|
_PLIST_AWK_ENV+= USE_PKGLOCALEDIR=${USE_PKGLOCALEDIR:Dyes:Uno}
|
2013-09-12 13:01:47 +02:00
|
|
|
_PLIST_AWK_ENV+= CATMAN_SECTION_SUFFIX=${CATMAN_SECTION_SUFFIX:Q}
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_AWK_ENV+= IMAKE_MANINSTALL=${_IMAKE_MANINSTALL:Q}
|
2006-03-14 18:14:47 +01:00
|
|
|
_PLIST_AWK_ENV+= IGNORE_INFO_PATH=${_IGNORE_INFO_PATH:Q}
|
2006-03-20 02:48:57 +01:00
|
|
|
_PLIST_AWK_ENV+= PKGINFODIR=${PKGINFODIR:Q}
|
2006-04-05 07:54:01 +02:00
|
|
|
_PLIST_AWK_ENV+= IGNORE_LIBTOOLIZE=${IGNORE_LIBTOOLIZE:Q}
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_AWK_ENV+= LIBTOOLIZE_PLIST=${LIBTOOLIZE_PLIST:Q}
|
2006-03-14 17:54:28 +01:00
|
|
|
_PLIST_AWK_ENV+= LIBTOOL_EXPAND=${_LIBTOOL_EXPAND:Q}
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_AWK_ENV+= LS=${TOOLS_LS:Q}
|
2012-03-04 09:03:56 +01:00
|
|
|
_PLIST_AWK_ENV+= MANINSTALL=${_PLIST_MANINSTALL:Q}
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_AWK_ENV+= MANZ=${_MANZ:Q}
|
2012-12-06 12:36:30 +01:00
|
|
|
_PLIST_AWK_ENV+= PKGGNUDIR=${PKGGNUDIR:Q}
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_AWK_ENV+= PKGMANDIR=${PKGMANDIR:Q}
|
2006-10-09 14:25:44 +02:00
|
|
|
_PLIST_AWK_ENV+= PREFIX=${DESTDIR:Q}${PREFIX:Q}
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_AWK_ENV+= TEST=${TOOLS_TEST:Q}
|
2012-05-13 14:39:47 +02:00
|
|
|
_PLIST_AWK_ENV+= ${PLIST_AWK_ENV}
|
2006-01-13 00:43:56 +01:00
|
|
|
|
|
|
|
# PLIST_SUBST contains package-settable "${variable}" to "value"
|
|
|
|
# substitutions for PLISTs
|
|
|
|
#
|
|
|
|
PLIST_SUBST+= OPSYS=${OPSYS:Q} \
|
|
|
|
OS_VERSION=${OS_VERSION:Q} \
|
|
|
|
MACHINE_ARCH=${MACHINE_ARCH:Q} \
|
|
|
|
MACHINE_GNU_ARCH=${MACHINE_GNU_ARCH:Q} \
|
|
|
|
MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM:Q} \
|
|
|
|
LN=${LN:Q} \
|
|
|
|
LOWER_VENDOR=${LOWER_VENDOR:Q} \
|
|
|
|
LOWER_OPSYS=${LOWER_OPSYS:Q} \
|
|
|
|
LOWER_OS_VERSION=${LOWER_OS_VERSION:Q} \
|
|
|
|
PKGBASE=${PKGBASE:Q} \
|
|
|
|
PKGNAME=${PKGNAME_NOREV:Q} \
|
|
|
|
PKGLOCALEDIR=${PKGLOCALEDIR:Q} \
|
2007-02-20 10:22:14 +01:00
|
|
|
PKGVERSION=${PKGVERSION:C/nb[0-9]*$//:Q} \
|
2006-01-13 00:43:56 +01:00
|
|
|
LOCALBASE=${LOCALBASE:Q} \
|
|
|
|
VIEWBASE=${VIEWBASE:Q} \
|
|
|
|
X11BASE=${X11BASE:Q} \
|
|
|
|
CHGRP=${CHGRP:Q} \
|
|
|
|
CHMOD=${CHMOD:Q} \
|
|
|
|
CHOWN=${CHOWN:Q} \
|
|
|
|
MKDIR=${MKDIR:Q} \
|
|
|
|
RMDIR=${RMDIR:Q} \
|
|
|
|
RM=${RM:Q} \
|
|
|
|
TRUE=${TRUE:Q} \
|
2012-12-06 12:36:30 +01:00
|
|
|
PKGGNUDIR=${PKGGNUDIR:Q} \
|
2006-01-13 00:43:56 +01:00
|
|
|
PKGMANDIR=${PKGMANDIR:Q}
|
|
|
|
|
2008-04-08 22:52:15 +02:00
|
|
|
.for _var_ in ${PLIST_VARS}
|
|
|
|
PLIST_SUBST+= ${PLIST.${_var_}:DPLIST.${_var_}=:UPLIST.${_var_}="@comment "}
|
|
|
|
.endfor
|
|
|
|
|
2006-01-13 00:43:56 +01:00
|
|
|
# Pass the PLIST_SUBST substitutions to the subst.awk script by prepending
|
|
|
|
# PLIST_" to all of the variable names and adding them into the environment.
|
|
|
|
#
|
|
|
|
_PLIST_AWK_ENV+= ${PLIST_SUBST:S/^/PLIST_/}
|
|
|
|
_PLIST_AWK_ENV+= PLIST_SUBST_VARS=${PLIST_SUBST:S/^/PLIST_/:C/=.*//:M*:Q}
|
|
|
|
|
2007-10-31 22:09:03 +01:00
|
|
|
_PLIST_1_AWK+= -f ${PKGSRCDIR}/mk/plist/plist-functions.awk
|
|
|
|
_PLIST_1_AWK+= -f ${PKGSRCDIR}/mk/plist/plist-subst.awk
|
|
|
|
_PLIST_1_AWK+= -f ${PKGSRCDIR}/mk/plist/plist-macros.awk
|
|
|
|
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-functions.awk
|
2006-04-17 08:12:46 +02:00
|
|
|
_PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-locale.awk
|
2012-12-06 12:36:30 +01:00
|
|
|
_PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-gnu.awk
|
2006-01-13 00:43:56 +01:00
|
|
|
_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
|
2013-02-10 13:03:00 +01:00
|
|
|
.if ${OPSYS} == "Cygwin"
|
|
|
|
_PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-cygwin.awk
|
|
|
|
.endif
|
2012-05-13 14:39:47 +02:00
|
|
|
_PLIST_AWK+= ${PLIST_AWK}
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_AWK+= -f ${.CURDIR}/../../mk/plist/plist-default.awk
|
|
|
|
|
2006-03-20 02:48:57 +01:00
|
|
|
_PLIST_INFO_AWK+= -f ${.CURDIR}/../../mk/plist/plist-functions.awk
|
|
|
|
_PLIST_INFO_AWK+= -f ${.CURDIR}/../../mk/plist/plist-info.awk
|
|
|
|
|
2006-01-13 00:43:56 +01:00
|
|
|
_PLIST_SHLIB_AWK= -f ${_SHLIB_AWKFILE.${SHLIB_TYPE}}
|
2007-04-11 21:01:00 +02:00
|
|
|
_SHLIB_AWKFILE.ECOFF= ${.CURDIR}/../../mk/plist/shlib-elf.awk
|
2006-01-13 00:43:56 +01:00
|
|
|
_SHLIB_AWKFILE.ELF= ${.CURDIR}/../../mk/plist/shlib-elf.awk
|
2007-04-20 01:13:42 +02:00
|
|
|
_SHLIB_AWKFILE.SOM= ${.CURDIR}/../../mk/plist/shlib-som.awk
|
2008-10-30 19:48:13 +01:00
|
|
|
_SHLIB_AWKFILE.aixlib= ${.CURDIR}/../../mk/plist/shlib-elf.awk
|
2006-01-13 00:43:56 +01:00
|
|
|
_SHLIB_AWKFILE.a.out= ${.CURDIR}/../../mk/plist/shlib-aout.awk
|
2013-02-10 13:03:00 +01:00
|
|
|
_SHLIB_AWKFILE.PEwin= ${.CURDIR}/../../mk/plist/shlib-pe.awk
|
2006-01-13 00:43:56 +01:00
|
|
|
_SHLIB_AWKFILE.dylib= ${.CURDIR}/../../mk/plist/shlib-dylib.awk
|
|
|
|
_SHLIB_AWKFILE.none= ${.CURDIR}/../../mk/plist/shlib-none.awk
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# GENERATE_PLIST is a sequence of commands, terminating in a semicolon,
|
|
|
|
# that outputs contents for a PLIST to stdout and is appended to
|
|
|
|
# the contents of ${PLIST_SRC}.
|
|
|
|
#
|
2007-10-26 00:00:39 +02:00
|
|
|
.if empty(PLIST_SRC)
|
|
|
|
GENERATE_PLIST?= ${ECHO} "@comment "${PKGNAME:Q}" has no files.";
|
|
|
|
.else
|
2007-10-25 19:49:45 +02:00
|
|
|
GENERATE_PLIST?= ${TRUE};
|
2007-10-26 00:00:39 +02:00
|
|
|
.endif
|
2007-10-25 19:49:45 +02:00
|
|
|
|
2006-07-16 01:58:52 +02:00
|
|
|
_BUILD_DEFS+= _PLIST_IGNORE_FILES
|
2006-01-13 00:43:56 +01:00
|
|
|
|
|
|
|
.if ${PLIST_TYPE} == "dynamic"
|
|
|
|
_PLIST_IGNORE_CMD= \
|
|
|
|
( while read i; do \
|
|
|
|
ignore=no; \
|
|
|
|
for p in ${_PLIST_IGNORE_FILES}; do \
|
|
|
|
case "$$i" in \
|
|
|
|
$$p) ignore=yes; break ;; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
|
|
|
[ "$$ignore" = "yes" ] || ${ECHO} "$$i"; \
|
|
|
|
done )
|
|
|
|
_GENERATE_PLIST= \
|
2006-10-09 14:25:44 +02:00
|
|
|
${FIND} ${DESTDIR}${PREFIX} \! -type d -print | ${SORT} | \
|
|
|
|
${SED} -e "s|^${DESTDIR}${PREFIX}/||" | \
|
2006-01-13 00:43:56 +01:00
|
|
|
${_PLIST_IGNORE_CMD}; \
|
2006-10-09 14:25:44 +02:00
|
|
|
${FIND} ${DESTDIR}${PREFIX} -type d -print | ${SORT} -r | \
|
2006-01-13 00:43:56 +01:00
|
|
|
${GREP} -v "^${PREFIX}$$" | \
|
|
|
|
${_PLIST_IGNORE_CMD} | \
|
2006-10-09 14:25:44 +02:00
|
|
|
${SED} -e "s|^${DESTDIR}${PREFIX}/|@unexec ${RMDIR} -p %D/|" \
|
2006-01-13 00:43:56 +01:00
|
|
|
-e "s,$$, 2>/dev/null || ${TRUE},";
|
|
|
|
.else
|
2007-10-25 19:49:45 +02:00
|
|
|
_GENERATE_PLIST= ${CAT} /dev/null ${PLIST_SRC}; ${GENERATE_PLIST}
|
2006-01-13 00:43:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.PHONY: plist
|
2007-05-28 15:54:25 +02:00
|
|
|
plist: ${PLIST} ${_PLIST_NOKEYWORDS}
|
2006-01-13 00:43:56 +01:00
|
|
|
|
2007-10-25 18:46:14 +02:00
|
|
|
.if (${PLIST_TYPE} == "static") && !empty(PLIST_SRC)
|
2006-01-13 00:43:56 +01:00
|
|
|
${PLIST}: ${PLIST_SRC}
|
|
|
|
.endif
|
|
|
|
${PLIST}:
|
2007-10-31 22:09:03 +01:00
|
|
|
${RUN} ${MKDIR} ${.TARGET:H}
|
|
|
|
${RUN} { ${_GENERATE_PLIST} } > ${.TARGET}-1src
|
2011-09-08 22:17:15 +02:00
|
|
|
${RUN} ${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK} ${_PLIST_1_AWK} < ${.TARGET}-1src > ${.TARGET}-2mac
|
|
|
|
${RUN} ${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK} ${_PLIST_AWK} < ${.TARGET}-2mac > ${.TARGET}-3mag
|
|
|
|
${RUN} ${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK} ${_PLIST_SHLIB_AWK} < ${.TARGET}-3mag > ${.TARGET}
|
2006-03-20 02:48:57 +01:00
|
|
|
|
2007-05-28 15:54:25 +02:00
|
|
|
# for list of keywords see pkg_create(1)
|
|
|
|
${_PLIST_NOKEYWORDS}: ${PLIST}
|
2009-03-17 23:13:36 +01:00
|
|
|
${RUN} ${AWK} < ${PLIST} > ${.TARGET} ' \
|
2007-05-28 15:54:25 +02:00
|
|
|
BEGIN { \
|
|
|
|
FILTER="@("; \
|
|
|
|
FILTER=FILTER"cd|cwd|src|exec|unexec|mode|option";\
|
|
|
|
FILTER=FILTER"|owner|group|comment|ignore"; \
|
|
|
|
FILTER=FILTER"|ignore_inst|name|dirrm|mtree"; \
|
|
|
|
FILTER=FILTER"|display|pkgdep|blddep|pkgcfl"; \
|
|
|
|
FILTER=FILTER")[[:space:]]"; \
|
|
|
|
}; \
|
|
|
|
$$0 ~ FILTER { next }; \
|
|
|
|
{ print }'
|
|
|
|
|
2006-03-20 02:48:57 +01:00
|
|
|
.if defined(INFO_FILES)
|
|
|
|
INFO_FILES_cmd= \
|
|
|
|
${CAT} ${PLIST} | \
|
2011-09-08 22:17:15 +02:00
|
|
|
${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK} ${_PLIST_INFO_AWK} | \
|
2007-03-07 17:32:45 +01:00
|
|
|
${AWK} '($$0 !~ "-[0-9]*(\\.gz)?$$") { print }'
|
2006-03-20 02:48:57 +01:00
|
|
|
.endif
|
2012-05-27 16:32:28 +02:00
|
|
|
|
2017-06-14 18:23:09 +02:00
|
|
|
ICON_THEMES_cmd= \
|
|
|
|
${CAT} ${PLIST} | \
|
|
|
|
${PKGSRC_SETENV} ${_PLIST_AWK_ENV} ${AWK} -F / \
|
|
|
|
'$$0 ~ "^share/icons/[^/]+/.*$$" { print $$3 }' | \
|
|
|
|
${SORT} -u
|
|
|
|
|
2012-05-27 16:32:28 +02:00
|
|
|
######################################################################
|
|
|
|
### plist-clean (PRIVATE)
|
|
|
|
######################################################################
|
|
|
|
### plist-clean removes the files for the "plist"
|
|
|
|
### so that the "plist" target may be re-invoked.
|
|
|
|
###
|
|
|
|
.PHONY: plist-clean
|
|
|
|
plist-clean:
|
|
|
|
${RUN} ${RM} -f ${PLIST} ${_PLIST_NOKEYWORDS} ${_DEPENDS_PLIST}
|