summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2002-12-25 12:24:57 +0000
committergrant <grant@pkgsrc.org>2002-12-25 12:24:57 +0000
commitb81e5288fc1ef4ffe05a6c0292652db1702ba021 (patch)
tree0828e8037f76bb7fa69b6fe1acf91a9130b42b80 /mk
parent79cb913730fb600eb648518b676110b2f05c1e9c (diff)
downloadpkgsrc-b81e5288fc1ef4ffe05a6c0292652db1702ba021.tar.gz
Introduce automatic platform dependant PLIST handling, as proposed on
tech-pkg (http://mail-index.netbsd.org/tech-pkg/2002/11/27/0014.html). Packages no longer need to override PLIST_SRC to support differing PLISTs across platforms.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index b7bfd5a9242..08f07ef1653 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1113 2002/12/23 21:02:44 wiz Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1114 2002/12/25 12:24:57 grant Exp $
#
# This file is in the public domain.
#
@@ -496,9 +496,21 @@ DESCR= ${WRKDIR}/.DESCR
DESCR_SRC?= ${PKGDIR}/DESCR
.endif
PLIST= ${WRKDIR}/.PLIST
+
+# Automatic platform dependant PLIST handling
.if !defined(PLIST_SRC)
-PLIST_SRC?= ${PKGDIR}/PLIST
+. if exists(${PKGDIR}/PLIST.common)
+PLIST_SRC= ${PKGDIR}/PLIST.common
+. if exists(${PKGDIR}/PLIST.${OPSYS})
+PLIST_SRC+= ${PKGDIR}/PLIST.${OPSYS}
+. endif
+. elif exists(${PKGDIR}/PLIST.${OPSYS})
+PLIST_SRC= ${PKGDIR}/PLIST.${OPSYS}
+. else
+PLIST_SRC= ${PKGDIR}/PLIST
+. endif
.endif
+
DLIST= ${WRKDIR}/.DLIST
DDIR= ${WRKDIR}/.DDIR