From a8fec9879636a890c0933ed1e0343710b0cb5f1c Mon Sep 17 00:00:00 2001 From: recht Date: Sun, 25 Jan 2004 14:23:39 +0000 Subject: add buildlink3.mk --- lang/python21-pth/buildlink3.mk | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lang/python21-pth/buildlink3.mk (limited to 'lang/python21-pth') diff --git a/lang/python21-pth/buildlink3.mk b/lang/python21-pth/buildlink3.mk new file mode 100644 index 00000000000..1c3290e887c --- /dev/null +++ b/lang/python21-pth/buildlink3.mk @@ -0,0 +1,30 @@ +# $NetBSD: buildlink3.mk,v 1.1 2004/01/25 14:23:39 recht Exp $ +# + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PYTHON21_PTH_BUILDLINK3_MK:= ${PYTHON21_PTH_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= python21-pth +.endif + +.if !empty(PYTHON21_PTH_BUILDLINK3_MK:M+) +BUILDLINK_PACKAGES+= python21-pth +BUILDLINK_DEPENDS.python21-pth?= python21-pth>=2.1.3 +BUILDLINK_PKGSRCDIR.python21-pth?= ../../lang/python21-pth + +.if defined(BUILDLINK_DEPMETHOD.python) +BUILDLINK_DEPMETHOD.python21pth?= ${BUILDLINK_DEPMETHOD.python} +.endif + +BUILDLINK_TRANSFORM+= l:python:python2p1 + +BUILDLINK_CPPFLAGS.python21pth+= \ + -I${BUILDLINK_PREFIX.python21pth}/include/python2p1 +BUILDLINK_LDFLAGS.python21pth+= \ + -L${BUILDLINK_PREFIX.python21pth}/lib/python2p1/config \ + -Wl,-R${BUILDLINK_PREFIX.python21pth}/lib/python2p1/config + +.endif # PYTHON21_PTH_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} -- cgit v1.2.3