summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant>2002-12-05 05:41:39 +0000
committergrant <grant>2002-12-05 05:41:39 +0000
commit150676713c9d4c8ab9d83bdcb7386d4d84ebf73f (patch)
treec4b0995c69962d7e617480843ac3c3de4c5a84fa /mk
parentc7a5ec33b3c64a6ef6370e4db686b1ace7837234 (diff)
downloadpkgsrc-150676713c9d4c8ab9d83bdcb7386d4d84ebf73f.tar.gz
Add OS and arch specific MESSAGE file handling. This removes the
need for packages to override MESSAGE_SRC to provide platform specific install messages.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index cb192b32c42..571de776103 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1100 2002/12/03 21:13:37 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1101 2002/12/05 05:41:39 grant Exp $
#
# This file is in the public domain.
#
@@ -556,7 +556,17 @@ DEINSTALL_FILE= ${PKGDIR}/DEINSTALL
# If MESSAGE hasn't been defined, then set MESSAGE_SRC to be a space-separated
# list of files to be concatenated together to generate the MESSAGE file.
#
-.if !defined(MESSAGE_SRC) && !defined(MESSAGE) && exists(${PKGDIR}/MESSAGE)
+.if !defined(MESSAGE_SRC) && !defined(MESSAGE)
+. 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.${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
+.elif exists(${PKGDIR}/MESSAGE)
MESSAGE_SRC= ${PKGDIR}/MESSAGE
.endif