summaryrefslogtreecommitdiff
path: root/mk/bdb.buildlink3.mk
diff options
context:
space:
mode:
authorgrant <grant>2004-05-30 10:40:02 +0000
committergrant <grant>2004-05-30 10:40:02 +0000
commitf9851ba8e060beea0bda6170b46732c9311f6e0d (patch)
tree1811a4782dbb4725bc2f30d5a62563701cc656ff /mk/bdb.buildlink3.mk
parent424d1e288022ba050196ddf360814edff2cce28f (diff)
downloadpkgsrc-f9851ba8e060beea0bda6170b46732c9311f6e0d.tar.gz
correctly set BDB_TYPE when native db is not available, eg. Solaris,
IRIX using the first BDB_ACCEPTED.
Diffstat (limited to 'mk/bdb.buildlink3.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