diff options
author | obache <obache@pkgsrc.org> | 2014-11-02 06:17:39 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2014-11-02 06:17:39 +0000 |
commit | 9e994bca21ff69fa0b992a6ca8061361d9cc0aff (patch) | |
tree | 3b81c8c9d2e2fc128386974afd00b800ca9b2d03 /mk | |
parent | 5d42459e6a31776fe04fa6b4c70ed5bb6bf2997a (diff) | |
download | pkgsrc-9e994bca21ff69fa0b992a6ca8061361d9cc0aff.tar.gz |
introduce MESSAGE_SRC_DFLT, same as PLIST_SRC_DFLT for PLIST_SRC.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/pkgformat/pkg/metadata.mk | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/mk/pkgformat/pkg/metadata.mk b/mk/pkgformat/pkg/metadata.mk index f894ab7d215..07b36d72c88 100644 --- a/mk/pkgformat/pkg/metadata.mk +++ b/mk/pkgformat/pkg/metadata.mk @@ -1,4 +1,4 @@ -# $NetBSD: metadata.mk,v 1.8 2014/03/02 07:18:36 obache Exp $ +# $NetBSD: metadata.mk,v 1.9 2014/11/02 06:17:39 obache Exp $ ###################################################################### ### The targets below are all PRIVATE. @@ -207,26 +207,25 @@ ${_DESCR_FILE}: ${DESCR_SRC} ### This file contains important messages which apply to this package, ### and are shown during installation. ### -.if !defined(MESSAGE_SRC) -. if exists(${PKGDIR}/MESSAGE) -MESSAGE_SRC= ${PKGDIR}/MESSAGE -. else -. if exists(${PKGDIR}/MESSAGE.common) -MESSAGE_SRC= ${PKGDIR}/MESSAGE.common -. endif -. if exists(${PKGDIR}/MESSAGE.${OPSYS}) -MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS} -. endif -. if exists(${PKGDIR}/MESSAGE.${MACHINE_ARCH:C/i[3-6]86/i386/g}) -MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${MACHINE_ARCH:C/i[3-6]86/i386/g} -. endif -. if exists(${PKGDIR}/MESSAGE.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g}) -MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g} -. endif +.if exists(${PKGDIR}/MESSAGE) +MESSAGE_SRC_DFLT= ${PKGDIR}/MESSAGE +.else +. if exists(${PKGDIR}/MESSAGE.common) +MESSAGE_SRC_DFLT= ${PKGDIR}/MESSAGE.common +. endif +. if exists(${PKGDIR}/MESSAGE.${OPSYS}) +MESSAGE_SRC_DFLT+= ${PKGDIR}/MESSAGE.${OPSYS} +. endif +. if exists(${PKGDIR}/MESSAGE.${MACHINE_ARCH:C/i[3-6]86/i386/g}) +MESSAGE_SRC_DFLT+= ${PKGDIR}/MESSAGE.${MACHINE_ARCH:C/i[3-6]86/i386/g} +. endif +. if exists(${PKGDIR}/MESSAGE.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g}) +MESSAGE_SRC_DFLT+= ${PKGDIR}/MESSAGE.${OPSYS}-${MACHINE_ARCH:C/i[3-6]86/i386/g} . endif .endif +MESSAGE_SRC?= ${MESSAGE_SRC_DFLT} -.if defined(MESSAGE_SRC) +.if !empty(MESSAGE_SRC) _MESSAGE_FILE= ${PKG_DB_TMPDIR}/+DISPLAY _METADATA_TARGETS+= ${_MESSAGE_FILE} |