summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/db/buildlink3.mk5
-rw-r--r--databases/db3/buildlink3.mk5
-rw-r--r--databases/db4/buildlink3.mk5
3 files changed, 12 insertions, 3 deletions
diff --git a/databases/db/buildlink3.mk b/databases/db/buildlink3.mk
index 2899a742d60..a3120c167de 100644
--- a/databases/db/buildlink3.mk
+++ b/databases/db/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.15 2004/07/07 08:45:39 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.16 2004/07/10 03:01:38 grant Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
DB_BUILDLINK3_MK:= ${DB_BUILDLINK3_MK}+
@@ -19,7 +19,10 @@ BUILDLINK_PKGSRCDIR.db2?= ../../databases/db
BUILDLINK_INCDIRS.db2?= include/db2
BUILDLINK_LIBDIRS.db2?= lib
BUILDLINK_TRANSFORM+= l:db:db2
+BUILDLINK_CPPFLAGS.db2= -I${BUILDLINK_PREFIX.db2}/${BUILDLINK_INCDIRS.db2}
. endif
+BUILDLINK_LDFLAGS.db2= -L${BUILDLINK_PREFIX.db2}/lib -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db2}/lib
+BUILDLINK_LIBS.db2= -ldb2
.endif # DB_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/databases/db3/buildlink3.mk b/databases/db3/buildlink3.mk
index f28514e4db2..dec45804de9 100644
--- a/databases/db3/buildlink3.mk
+++ b/databases/db3/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.12 2004/07/07 08:45:39 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.13 2004/07/10 03:01:38 grant Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
DB3_BUILDLINK3_MK:= ${DB3_BUILDLINK3_MK}+
@@ -21,7 +21,10 @@ BUILDLINK_TRANSFORM+= l:db-3:db3
USE_DB185?= yes
. if !empty(USE_DB185:M[yY][eE][sS])
BUILDLINK_TRANSFORM+= l:db:db3
+BUILDLINK_CPPFLAGS.db3= -I${BUILDLINK_PREFIX.db3}/${BUILDLINK_INCDIRS.db3}
. endif
+BUILDLINK_LDFLAGS.db3= -L${BUILDLINK_PREFIX.db3}/lib -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db3}/lib
+BUILDLINK_LIBS.db3= -ldb3
.endif # DB3_BUILDLINK3_MK
.include "../../mk/pthread.buildlink3.mk"
diff --git a/databases/db4/buildlink3.mk b/databases/db4/buildlink3.mk
index dc8cecc65fe..e8796b5cd5c 100644
--- a/databases/db4/buildlink3.mk
+++ b/databases/db4/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.15 2004/07/07 08:45:39 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.16 2004/07/10 03:01:38 grant Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
DB4_BUILDLINK3_MK:= ${DB4_BUILDLINK3_MK}+
@@ -25,7 +25,10 @@ USE_DB185?= yes
#
BUILDLINK_DEPENDS.db4+= db4>=4.2.52nb1
BUILDLINK_TRANSFORM+= l:db:db4
+BUILDLINK_CPPFLAGS.db4= -I${BUILDLINK_PREFIX.db4}/${BUILDLINK_INCDIRS.db4}
. endif
+BUILDLINK_LDFLAGS.db4= -L${BUILDLINK_PREFIX.db4}/lib -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db4}/lib
+BUILDLINK_LIBS.db4= -ldb4
.endif # DB4_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}