summaryrefslogtreecommitdiff
path: root/lang/python21
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/python21
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/python21')
-rw-r--r--lang/python21/buildlink2.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/python21/buildlink2.mk b/lang/python21/buildlink2.mk
index 71727e15e54..d3ccb59c269 100644
--- a/lang/python21/buildlink2.mk
+++ b/lang/python21/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(PYTHON21_BUILDLINK2_MK)
PYTHON21_BUILDLINK2_MK= # defined
+.include "../../mk/bsd.prefs.mk"
+
BUILDLINK_PACKAGES+= python21
BUILDLINK_DEPENDS.python21?= python21>=2.1
BUILDLINK_PKGSRCDIR.python21?= ../../lang/python21
@@ -13,7 +15,8 @@ BUILDLINK_DEPMETHOD.python21?= ${BUILDLINK_DEPMETHOD.python}
EVAL_PREFIX+= BUILDLINK_PREFIX.python21=python21
BUILDLINK_PREFIX.python21_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.python21= include/python2.1/*
+BUILDLINK_FILES.python21!= \
+ ${GREP} "^include/" ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python21}/PLIST
BUILDLINK_FILES.python21+= lib/python2.1/config/libpython2.1.*
BUILDLINK_TARGETS+= python21-buildlink