summaryrefslogtreecommitdiff
path: root/x11/py-Xlib
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-03-15 14:15:03 +0000
committerwiz <wiz@pkgsrc.org>2005-03-15 14:15:03 +0000
commit887b26b7c331ece7462d676f6013fc16e26d5625 (patch)
tree25e6e42add303d08e4cec2c943c6658f82b42dc0 /x11/py-Xlib
parent9ceba7d8c7e2f82391612d2c92df6eec14b045b3 (diff)
downloadpkgsrc-887b26b7c331ece7462d676f6013fc16e26d5625.tar.gz
Fix buildlink3.mk file to be python-version-agnostic.
Closes PR 29246 by Cesar Catrian C.
Diffstat (limited to 'x11/py-Xlib')
-rw-r--r--x11/py-Xlib/buildlink3.mk20
1 files changed, 11 insertions, 9 deletions
diff --git a/x11/py-Xlib/buildlink3.mk b/x11/py-Xlib/buildlink3.mk
index bf8543643fd..6e595c322af 100644
--- a/x11/py-Xlib/buildlink3.mk
+++ b/x11/py-Xlib/buildlink3.mk
@@ -1,18 +1,20 @@
-# $NetBSD: buildlink3.mk,v 1.2 2004/08/17 15:34:23 minskim Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2005/03/15 14:15:03 wiz Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-PY23PTH_XLIB_BUILDLINK3_MK:= ${PY23PTH_XLIB_BUILDLINK3_MK}+
+PY_XLIB_BUILDLINK3_MK:= ${PY_XLIB_BUILDLINK3_MK}+
+
+.include "../../lang/python/pyversion.mk"
.if !empty(BUILDLINK_DEPTH:M+)
-BUILDLINK_DEPENDS+= py23pth-Xlib
+BUILDLINK_DEPENDS+= py-Xlib
.endif
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npy23pth-Xlib}
-BUILDLINK_PACKAGES+= py23pth-Xlib
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npy-Xlib}
+BUILDLINK_PACKAGES+= py-Xlib
-.if !empty(PY23PTH_XLIB_BUILDLINK3_MK:M+)
-BUILDLINK_DEPENDS.py23pth-Xlib+= py23pth-Xlib>=0.12
-BUILDLINK_PKGSRCDIR.py23pth-Xlib?= ../../x11/py-Xlib
-.endif # PY23PTH_XLIB_BUILDLINK3_MK
+.if !empty(PY_XLIB_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.py-Xlib+= ${PYPKGPREFIX}-Xlib>=0.12
+BUILDLINK_PKGSRCDIR.py-Xlib?= ../../x11/py-Xlib
+.endif # PY_XLIB_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}