summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-05-30 10:40:02 +0000
committergrant <grant@pkgsrc.org>2004-05-30 10:40:02 +0000
commit74616d7f0c141cf839fe6e86aa32b895204ef851 (patch)
tree1811a4782dbb4725bc2f30d5a62563701cc656ff /mk
parent660fbc2248fec9f00dac901f2ea7f1a59aee6335 (diff)
downloadpkgsrc-74616d7f0c141cf839fe6e86aa32b895204ef851.tar.gz
correctly set BDB_TYPE when native db is not available, eg. Solaris,
IRIX using the first BDB_ACCEPTED.
Diffstat (limited to 'mk')
-rw-r--r--mk/bdb.buildlink3.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/mk/bdb.buildlink3.mk b/mk/bdb.buildlink3.mk
index 50dc02bd35e..523498c5568 100644
--- a/mk/bdb.buildlink3.mk
+++ b/mk/bdb.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bdb.buildlink3.mk,v 1.9 2004/05/26 20:26:29 wiz Exp $
+# $NetBSD: bdb.buildlink3.mk,v 1.10 2004/05/30 10:40:02 grant Exp $
#
# This Makefile fragment is meant to be included by packages that
# require a Berkeley DB implementation. bdb.buildlink3.mk will:
@@ -98,16 +98,14 @@ _BDB_TYPE= ${_BDB_DEFAULT}
. for _bdb_ in ${_BDB_ACCEPTED}
. if !empty(_BDB_INSTALLED.${_bdb_}:M[yY][eE][sS])
_BDB_TYPE?= ${_bdb_}
-. else
-_BDB_FIRSTACCEPTED?= ${_bdb_}
. endif
. endfor
#
# ...otherwise, just use the first accepted Berkeley DB package.
#
-. if defined(_BDB_FIRSTACCEPTED)
-_BDB_TYPE?= ${_BDB_FIRSTACCEPTED}
-. endif
+. for _bdb_ in ${_BDB_ACCEPTED:Nnative}
+_BDB_TYPE?= ${_bdb_}
+. endfor
_BDB_TYPE?= none
MAKEFLAGS+= _BDB_TYPE=${_BDB_TYPE}
. endif