From 5b778d1ef6ebf2e3b0b1a8786d69a842b629e019 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 9 Oct 2002 23:20:57 +0000 Subject: Use BUILDLINK_PLIST_CMD.python22 to create BUILDLINK_FILES.python22, instead of trying to parse the PLIST, which may not exist, or may not have a full list of files installed by the package. --- lang/python22/buildlink2.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lang/python22') diff --git a/lang/python22/buildlink2.mk b/lang/python22/buildlink2.mk index d7949a78b99..f70d4f42241 100644 --- a/lang/python22/buildlink2.mk +++ b/lang/python22/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.4 2002/10/09 11:40:41 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.5 2002/10/09 23:20:57 jlam Exp $ .if !defined(PYTHON22_BUILDLINK2_MK) PYTHON22_BUILDLINK2_MK= # defined @@ -6,6 +6,7 @@ PYTHON22_BUILDLINK2_MK= # defined .include "../../mk/bsd.prefs.mk" BUILDLINK_PACKAGES+= python22 +BUILDLINK_PKGBASE.python22?= python22 BUILDLINK_DEPENDS.python22?= python22>=2.2 BUILDLINK_PKGSRCDIR.python22?= ../../lang/python22 @@ -15,11 +16,10 @@ BUILDLINK_DEPMETHOD.python22?= ${BUILDLINK_DEPMETHOD.python} EVAL_PREFIX+= BUILDLINK_PREFIX.python22=python22 BUILDLINK_PREFIX.python22_DEFAULT= ${LOCALBASE} -_PY22_PLIST= ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python22}/PLIST.common -_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.* +_PY22_BLNK_FILES= \ + ${BUILDLINK_PLIST_CMD.python22} | \ + ${GREP} '^\(include\|lib.*/lib[^/]*$$\)' +BUILDLINK_FILES.python22= `${_PY22_BLNK_FILES}` BUILDLINK_TRANSFORM+= l:python:python2.2 BUILDLINK_CPPFLAGS.python22+= \ -- cgit v1.2.3