summaryrefslogtreecommitdiff
path: root/databases/py-bsddb3
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-bsddb3')
-rw-r--r--databases/py-bsddb3/Makefile8
-rw-r--r--databases/py-bsddb3/buildlink3.mk26
2 files changed, 33 insertions, 1 deletions
diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile
index d1945608780..4c3066613ab 100644
--- a/databases/py-bsddb3/Makefile
+++ b/databases/py-bsddb3/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2004/03/04 15:55:18 minskim Exp $
+# $NetBSD: Makefile,v 1.8 2004/05/11 10:49:54 seb Exp $
#
DISTNAME= bsddb3-4.2.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pybsddb/}
@@ -19,6 +20,11 @@ PYBINMODULE= yes
BUILDLINK_DEPENDS.db4+= db4>=4.2.52
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
+PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+.endif
+
.include "../../databases/db4/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-bsddb3/buildlink3.mk b/databases/py-bsddb3/buildlink3.mk
new file mode 100644
index 00000000000..6d9b4b32dba
--- /dev/null
+++ b/databases/py-bsddb3/buildlink3.mk
@@ -0,0 +1,26 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/05/11 10:49:54 seb Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PY_BSDDB3_BUILDLINK3_MK:= ${PY_BSDDB3_BUILDLINK3_MK}+
+
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
+PYTHON_VERSIONS_ACCEPTED= 23pth 22pth
+.endif
+.include "../../lang/python/pyversion.mk"
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= py-bsddb3
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npy-bsddb3}
+BUILDLINK_PACKAGES+= py-bsddb3
+
+.if !empty(PY_BSDDB3_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.py-bsddb3+= ${PYPKGPREFIX}-bsddb3>=4.2.4nb1
+BUILDLINK_PKGSRCDIR.py-bsddb3?= ../../databases/py-bsddb3
+.endif # PY_BSDDB3_BUILDLINK3_MK
+
+.include "../../databases/db4/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}