summaryrefslogtreecommitdiff
path: root/lang/python22
diff options
context:
space:
mode:
authorjlam <jlam>2002-10-09 11:40:40 +0000
committerjlam <jlam>2002-10-09 11:40:40 +0000
commitabfce35fdb2752a20643ad5b81063453fb50896e (patch)
tree438de3ffa62aeef9f1d71a7ef69888cd3e530530 /lang/python22
parent6b5f9a94c37f0f52055de78d4ca62720d5cd0642 (diff)
downloadpkgsrc-abfce35fdb2752a20643ad5b81063453fb50896e.tar.gz
Create BUILDLINK_CPPFLAGS and BUILDLINK_LDFLAGS for the python packages so
as to find their headers and libraries. Also allow "-lpython" to resolve to the versioned libpython (-lpython2.2, etc.).
Diffstat (limited to 'lang/python22')
-rw-r--r--lang/python22/buildlink2.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/python22/buildlink2.mk b/lang/python22/buildlink2.mk
index f432e4c0866..d7949a78b99 100644
--- a/lang/python22/buildlink2.mk
+++ b/lang/python22/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.3 2002/10/09 10:55:06 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.4 2002/10/09 11:40:41 jlam Exp $
.if !defined(PYTHON22_BUILDLINK2_MK)
PYTHON22_BUILDLINK2_MK= # defined
@@ -20,6 +20,15 @@ _PY22_PLIST+= ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python22}/PLIST.${LOWER_OPSYS}
_PY22_PLIST+= ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python22}/PLIST.common_end
BUILDLINK_FILES.python22!= ${CAT} ${_PY22_PLIST} | ${GREP} "^include/"
BUILDLINK_FILES.python22+= lib/python2.2/config/libpython2.2.*
+BUILDLINK_TRANSFORM+= l:python:python2.2
+
+BUILDLINK_CPPFLAGS.python22+= \
+ -I${BUILDLINK_PREFIX.python22}/include/python2.2
+BUILDLINK_LDFLAGS.python22+= \
+ -L${BUILDLINK_PREFIX.python22}/lib/python2.2/config \
+ -Wl,-R${BUILDLINK_PREFIX.python22}/lib/python2.2/config
+
+LDFLAGS+= ${BUILDLINK_LDFLAGS.python22}
BUILDLINK_TARGETS+= python22-buildlink