diff options
Diffstat (limited to 'mk/pkgformat/pkg/metadata.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} |