pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/db Look inside db.h if it belongs to db3 or ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e56a4061fb24
branches: trunk
changeset: 465556:e56a4061fb24
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Jan 01 21:10:05 2004 +0000
description:
Look inside db.h if it belongs to db3 or db4 (as it does on some
Linux distributions).
Based on a patch by Min Sik Kim in PR 23944.
diffstat:
databases/db/buildlink2.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 1afe3ef63a70 -r e56a4061fb24 databases/db/buildlink2.mk
--- a/databases/db/buildlink2.mk Thu Jan 01 20:07:00 2004 +0000
+++ b/databases/db/buildlink2.mk Thu Jan 01 21:10:05 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.8 2003/12/04 04:14:05 grant Exp $
+# $NetBSD: buildlink2.mk,v 1.9 2004/01/01 21:10:05 wiz Exp $
.if !defined(DB_BUILDLINK2_MK)
DB_BUILDLINK2_MK= # defined
@@ -8,8 +8,13 @@
_NEED_DB2= YES
+.include "../../mk/bsd.prefs.mk"
+
.if defined(USE_DB185)
. if exists(/usr/include/db.h) # NetBSD, Darwin
+# See if /usr/include/db.h belongs to db3 or db4
+_IS_DB34!= ${GREP} -c 'DB_VERSION_MAJOR.*[34]$$' /usr/include/db.h || ${TRUE}
+. if ${_IS_DB34} == "0"
BUILDLINK_PREFIX.db= /usr
BUILDLINK_FILES.db= include/db.h
BUILDLINK_FILES.db+= include/mpool.h
@@ -17,6 +22,7 @@
BUILDLINK_LDFLAGS.db= # empty
BUILDLINK_LIBS.db= # empty
_NEED_DB2= NO
+. endif
. elif exists(/usr/include/db1/db.h)
# Linux
BUILDLINK_PREFIX.db= /usr
Home |
Main Index |
Thread Index |
Old Index