diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-15 18:23:40 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-15 18:23:40 +0000 |
commit | a1cccfcd6200b8f9b473109e64221b9d400221c3 (patch) | |
tree | 39f61931d04da31123f9752fae58bb4f0f15026b /mk | |
parent | 0efea3c0afc759a3e8ff2d6d497f4ea2f2072e31 (diff) | |
download | pkgsrc-a1cccfcd6200b8f9b473109e64221b9d400221c3.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')
-rw-r--r-- | mk/db1.builtin.mk | 11 |
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 |