| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: metadata.mk,v 1.34 2022/11/23 11:17:51 jperkin Exp $ | | 1 | # $NetBSD: metadata.mk,v 1.35 2023/10/12 13:31:10 riastradh Exp $ |
2 | | | 2 | |
3 | ###################################################################### | | 3 | ###################################################################### |
4 | ### The targets below are all PRIVATE. | | 4 | ### The targets below are all PRIVATE. |
5 | ###################################################################### | | 5 | ###################################################################### |
6 | | | 6 | |
7 | ###################################################################### | | 7 | ###################################################################### |
8 | ### | | 8 | ### |
9 | ### Temporary package meta-data directory. The contents of this directory | | 9 | ### Temporary package meta-data directory. The contents of this directory |
10 | ### are copied directly into the real package meta-data directory. | | 10 | ### are copied directly into the real package meta-data directory. |
11 | ### | | 11 | ### |
12 | PKG_DB_TMPDIR= ${WRKDIR}/.pkgdb | | 12 | PKG_DB_TMPDIR= ${WRKDIR}/.pkgdb |
13 | | | 13 | |
14 | unprivileged-install-hook: ${PKG_DB_TMPDIR} | | 14 | unprivileged-install-hook: ${PKG_DB_TMPDIR} |
| @@ -397,27 +397,27 @@ ${_SIZE_ALL_FILE}: ${_RDEPENDS_FILE} ${_ | | | @@ -397,27 +397,27 @@ ${_SIZE_ALL_FILE}: ${_RDEPENDS_FILE} ${_ |
397 | ### | | 397 | ### |
398 | ### This file contains the list of files and checksums, along with | | 398 | ### This file contains the list of files and checksums, along with |
399 | ### any special "@" commands, e.g. @dirrm. | | 399 | ### any special "@" commands, e.g. @dirrm. |
400 | ### | | 400 | ### |
401 | _CONTENTS_FILE= ${PKG_DB_TMPDIR}/+CONTENTS | | 401 | _CONTENTS_FILE= ${PKG_DB_TMPDIR}/+CONTENTS |
402 | _METADATA_TARGETS+= ${_CONTENTS_FILE} | | 402 | _METADATA_TARGETS+= ${_CONTENTS_FILE} |
403 | | | 403 | |
404 | _DEPENDS_PLIST= ${WRKDIR}/.PLIST_deps | | 404 | _DEPENDS_PLIST= ${WRKDIR}/.PLIST_deps |
405 | | | 405 | |
406 | ${_DEPENDS_PLIST}: ${PLIST} | | 406 | ${_DEPENDS_PLIST}: ${PLIST} |
407 | ${RUN} { \ | | 407 | ${RUN} { \ |
408 | ${ECHO} "@name ${PKGNAME}"; \ | | 408 | ${ECHO} "@name ${PKGNAME}"; \ |
409 | ${AWK} '$$1 == "full" { printf "@blddep %s\n@pkgdep %s\n", $$3, $$2; }' < ${_RDEPENDS_FILE}; \ | | 409 | ${AWK} '$$1 == "full" { printf "@blddep %s\n@pkgdep %s\n", $$3, $$2; }' < ${_RDEPENDS_FILE}; \ |
410 | ${AWK} '$$1 == "bootstrap" || $$1 == "build" { printf "@blddep %s\n", $$3; }' < ${_RDEPENDS_FILE}; \ | | 410 | ${AWK} '$$1 == "bootstrap" || $$1 == "build" || $$1 == "tool" { printf "@blddep %s\n", $$3; }' < ${_RDEPENDS_FILE}; \ |
411 | ${CAT} ${PLIST}; } > ${.TARGET} | | 411 | ${CAT} ${PLIST}; } > ${.TARGET} |
412 | | | 412 | |
413 | _PKG_CREATE_ARGS+= -l -U | | 413 | _PKG_CREATE_ARGS+= -l -U |
414 | _PKG_CREATE_ARGS+= -B ${_BUILD_INFO_FILE} | | 414 | _PKG_CREATE_ARGS+= -B ${_BUILD_INFO_FILE} |
415 | _PKG_CREATE_ARGS+= -b ${_BUILD_VERSION_FILE} | | 415 | _PKG_CREATE_ARGS+= -b ${_BUILD_VERSION_FILE} |
416 | _PKG_CREATE_ARGS+= -c ${_COMMENT_FILE} | | 416 | _PKG_CREATE_ARGS+= -c ${_COMMENT_FILE} |
417 | _PKG_CREATE_ARGS+= ${_MESSAGE_FILE:D -D ${_MESSAGE_FILE}} | | 417 | _PKG_CREATE_ARGS+= ${_MESSAGE_FILE:D -D ${_MESSAGE_FILE}} |
418 | _PKG_CREATE_ARGS+= -d ${_DESCR_FILE} | | 418 | _PKG_CREATE_ARGS+= -d ${_DESCR_FILE} |
419 | _PKG_CREATE_ARGS+= -f ${_DEPENDS_PLIST} | | 419 | _PKG_CREATE_ARGS+= -f ${_DEPENDS_PLIST} |
420 | _PKG_CREATE_ARGS+= ${PKG_PRESERVE:D -n ${_PRESERVE_FILE}} | | 420 | _PKG_CREATE_ARGS+= ${PKG_PRESERVE:D -n ${_PRESERVE_FILE}} |
421 | _PKG_CREATE_ARGS+= -S ${_SIZE_ALL_FILE} | | 421 | _PKG_CREATE_ARGS+= -S ${_SIZE_ALL_FILE} |
422 | _PKG_CREATE_ARGS+= -s ${_SIZE_PKG_FILE} | | 422 | _PKG_CREATE_ARGS+= -s ${_SIZE_PKG_FILE} |
423 | _PKG_CREATE_ARGS+= ${"${CONFLICTS:M*}" != "":?-C ${CONFLICTS:Q}:} | | 423 | _PKG_CREATE_ARGS+= ${"${CONFLICTS:M*}" != "":?-C ${CONFLICTS:Q}:} |