summaryrefslogtreecommitdiff
path: root/mk/bdb.buildlink3.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-26 18:48:52 +0000
committerjlam <jlam@pkgsrc.org>2004-03-26 18:48:52 +0000
commitfaed7092a835a334a9ff0f95b1a29630948b7e93 (patch)
tree7963fec3e162814d798d29949aeec3bf2f568079 /mk/bdb.buildlink3.mk
parent5daed86e36de31ad5243fede785421342646490f (diff)
downloadpkgsrc-faed7092a835a334a9ff0f95b1a29630948b7e93.tar.gz
Reverse the use of USE_DB185 in bdb.buildlink3.mk -- it defaults to
"yes" and packages that can't use the DB-1.85 API should set it to "no". This makes the native DB the preferred DB if it exists.
Diffstat (limited to 'mk/bdb.buildlink3.mk')
-rw-r--r--mk/bdb.buildlink3.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/mk/bdb.buildlink3.mk b/mk/bdb.buildlink3.mk
index 24d3a9a4936..5d354b5c5f1 100644
--- a/mk/bdb.buildlink3.mk
+++ b/mk/bdb.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bdb.buildlink3.mk,v 1.3 2004/03/18 09:12:13 jlam Exp $
+# $NetBSD: bdb.buildlink3.mk,v 1.4 2004/03/26 18:48:52 jlam Exp $
#
# This Makefile fragment is meant to be included by packages that
# require a Berkeley DB implementation. db.buildlink3.mk will:
@@ -52,20 +52,25 @@ MAKEFLAGS+= _BDB_INSTALLED.${_bdb_}=${_BDB_INSTALLED.${_bdb_}}
. endif
. endfor
+USE_DB185?= yes
_BDB_OK.native?= no
_BDB_INSTALLED.native?= no
-. if defined(USE_DB185)
-. if exists(/usr/include/db.h)
+. if exists(/usr/include/db.h)
_BDB_OK.native= yes
_BDB_INSTALLED.native= yes
_BDB_INCDIRS= include
_BDB_TRANSFORM= # empty
-. elif exists(/usr/include/db1/db.h)
+. elif exists(/usr/include/db1/db.h)
_BDB_OK.native= yes
_BDB_INSTALLED.native= yes
_BDB_INCDIRS= include/db1
_BDB_TRANSFORM= l:db:db1
-. endif
+. endif
+. if !empty(USE_DB185:M[nN][oO])
+_BDB_OK.native= no
+_BDB_INSTALLED.native= no
+_BDB_INCDIRS= # empty
+_BDB_TRANSFORM= # empty
. endif
. if !defined(_BDB_TYPE)