summaryrefslogtreecommitdiff
path: root/lang/python21
diff options
context:
space:
mode:
authorrecht <recht>2004-01-25 14:23:39 +0000
committerrecht <recht>2004-01-25 14:23:39 +0000
commit3513293eff3a196b6562eab4dc5407c3f4e655b0 (patch)
treec7c804b3e30242fad1bb2c99c07c0b457bc12321 /lang/python21
parentcdd888b613a75bda1fb81b81252731db0e0a72d8 (diff)
downloadpkgsrc-3513293eff3a196b6562eab4dc5407c3f4e655b0.tar.gz
add buildlink3.mk
Diffstat (limited to 'lang/python21')
-rw-r--r--lang/python21/buildlink3.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/lang/python21/buildlink3.mk b/lang/python21/buildlink3.mk
new file mode 100644
index 00000000000..5d09dca4417
--- /dev/null
+++ b/lang/python21/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_BUILDLINK3_MK:= ${PYTHON21_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= python21
+.endif
+
+.if !empty(PYTHON21_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+= python21
+BUILDLINK_DEPENDS.python21?= python21>=2.1.3
+BUILDLINK_PKGSRCDIR.python21?= ../../lang/python21
+
+.if defined(BUILDLINK_DEPMETHOD.python)
+BUILDLINK_DEPMETHOD.python21?= ${BUILDLINK_DEPMETHOD.python}
+.endif
+
+BUILDLINK_TRANSFORM+= l:python:python2.1
+
+BUILDLINK_CPPFLAGS.python21+= \
+ -I${BUILDLINK_PREFIX.python21}/include/python2.1
+BUILDLINK_LDFLAGS.python21+= \
+ -L${BUILDLINK_PREFIX.python21}/lib/python2.1/config \
+ -Wl,-R${BUILDLINK_PREFIX.python21}/lib/python2.1/config
+
+.endif # PYTHON21_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}