summaryrefslogtreecommitdiff
path: root/mk/db1.builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-15 18:23:40 +0000
committerjlam <jlam@pkgsrc.org>2004-11-15 18:23:40 +0000
commitd1152688bab8ea48a64dfdbeacdcc43d2b4daf6e (patch)
tree39f61931d04da31123f9752fae58bb4f0f15026b /mk/db1.builtin.mk
parent581bc428436cf2ef380ba2db8e99063d9dd5920d (diff)
downloadpkgsrc-d1152688bab8ea48a64dfdbeacdcc43d2b4daf6e.tar.gz
If we're using db1, the create a compatibility header db_185.h that is
in newer Berkeley DB packages.
Diffstat (limited to 'mk/db1.builtin.mk')
-rw-r--r--mk/db1.builtin.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/db1.builtin.mk b/mk/db1.builtin.mk
index 760e63cd3cf..7198479e732 100644
--- a/mk/db1.builtin.mk
+++ b/mk/db1.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: db1.builtin.mk,v 1.3 2004/11/15 18:14:10 jlam Exp $
+# $NetBSD: db1.builtin.mk,v 1.4 2004/11/15 18:23:40 jlam Exp $
.for _lib_ in db db1
. if !defined(_BLNK_LIB_FOUND.${_lib_})
@@ -69,5 +69,14 @@ BUILDLINK_LDADD.db1= -ldb1
BUILDLINK_TRANSFORM+= l:db:db1
. endif
BUILDLINK_LIBS.db1= ${BUILDLINK_LDADD.db1}
+
+BUILDLINK_TARGETS+= buildlink-db1-db185-h
+. if !target(buildlink-db1-db185-h)
+.PHONY: buildlink-db1-db185-h
+buildlink-db1-db185-h:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${ECHO} "#include <db.h>" > ${BUILDLINK_DIR}/include/db_185.h
+. endif
+
. endif # USE_BUILTIN.db1 == yes
.endif # CHECK_BUILTIN.db1