summaryrefslogtreecommitdiff
path: root/lang/python22
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-09-20 22:44:18 +0000
committerjlam <jlam@pkgsrc.org>2002-09-20 22:44:18 +0000
commit5e618d769181a34e8fbe4d205657b05f7560d161 (patch)
treee4a7311d20ce309a96c221addcb4a705e1cdf018 /lang/python22
parent4a6f7d916d97328334a3b5aa2af0d3fc9aba5d52 (diff)
downloadpkgsrc-5e618d769181a34e8fbe4d205657b05f7560d161.tar.gz
Python extensions also install headers into ${PYINC}, so we can't just
assume all of those headers belong to the python package. We use the trick for kdelibs2 and generate the BUILDLINK_FILES list from the PLIST.
Diffstat (limited to 'lang/python22')
-rw-r--r--lang/python22/buildlink2.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/python22/buildlink2.mk b/lang/python22/buildlink2.mk
index 252a751c0d2..c884cf2270a 100644
--- a/lang/python22/buildlink2.mk
+++ b/lang/python22/buildlink2.mk
@@ -1,8 +1,10 @@
-# $NetBSD: buildlink2.mk,v 1.1 2002/09/20 22:33:31 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.2 2002/09/20 22:44:20 jlam Exp $
.if !defined(PYTHON22_BUILDLINK2_MK)
PYTHON22_BUILDLINK2_MK= # defined
+.include "../../mk/bsd.prefs.mk"
+
BUILDLINK_PACKAGES+= python22
BUILDLINK_DEPENDS.python22?= python22>=2.2
BUILDLINK_PKGSRCDIR.python22?= ../../lang/python22
@@ -13,7 +15,8 @@ BUILDLINK_DEPMETHOD.python22?= ${BUILDLINK_DEPMETHOD.python}
EVAL_PREFIX+= BUILDLINK_PREFIX.python22=python22
BUILDLINK_PREFIX.python22_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.python22= include/python2.2/*
+BUILDLINK_FILES.python22!= \
+ ${GREP} "^include/" ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python22}/PLIST
BUILDLINK_FILES.python22+= lib/python2.2/config/libpython2.2.*
BUILDLINK_TARGETS+= python22-buildlink