diff options
author | grant <grant> | 2002-12-05 05:41:39 +0000 |
---|---|---|
committer | grant <grant> | 2002-12-05 05:41:39 +0000 |
commit | 3f1f6e376cbd247e79f23b1f3659624501829994 (patch) | |
tree | c4b0995c69962d7e617480843ac3c3de4c5a84fa /mk | |
parent | da3afe77e2a0484df3cf97818cf3e385c0e0aad2 (diff) | |
download | pkgsrc-3f1f6e376cbd247e79f23b1f3659624501829994.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.mk | 14 |
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 |