summaryrefslogtreecommitdiff
path: root/math/py-numarray
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-03-08 17:21:34 +0000
committerminskim <minskim@pkgsrc.org>2006-03-08 17:21:34 +0000
commitcebefd121c184a51bdfadaf15b3942bbb771fb8c (patch)
tree8c61a0b6f04e3cdaa10ac02ddecb964b0e43c278 /math/py-numarray
parenta256140b030e69a4ecc7ddafe1e1437894d9c1df (diff)
downloadpkgsrc-cebefd121c184a51bdfadaf15b3942bbb771fb8c.tar.gz
Let the package find BLAS routines on Mac OS X. This makes the package build
on Darwin.
Diffstat (limited to 'math/py-numarray')
-rw-r--r--math/py-numarray/Makefile9
-rw-r--r--math/py-numarray/PLIST3
2 files changed, 10 insertions, 2 deletions
diff --git a/math/py-numarray/Makefile b/math/py-numarray/Makefile
index 9b1d2365cd6..0e1febbe39f 100644
--- a/math/py-numarray/Makefile
+++ b/math/py-numarray/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/03/04 21:30:08 jlam Exp $
+# $NetBSD: Makefile,v 1.11 2006/03/08 17:21:34 minskim Exp $
#
DISTNAME= numarray-1.5.1
@@ -13,5 +13,12 @@ COMMENT= Array manipulation
PYDISTUTILSPKG= yes
PYTHON_VERSIONS_ACCEPTED= 24 23 22
+.if exists(/System/Library/Frameworks/vecLib.framework/Headers)
+BUILDLINK_PASSTHRU_DIRS+= /System/Library/Frameworks/vecLib.framework/Headers
+PLIST_SUBST+= DOTBLAS=""
+.else
+PLIST_SUBST+= DOTBLAS="@comment "
+.endif
+
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/py-numarray/PLIST b/math/py-numarray/PLIST
index d13fdb02fbc..fee92efb2a6 100644
--- a/math/py-numarray/PLIST
+++ b/math/py-numarray/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2006/02/15 16:41:04 drochner Exp $
+@comment $NetBSD: PLIST,v 1.8 2006/03/08 17:21:34 minskim Exp $
${PYINC}/numarray/arraybase.h
${PYINC}/numarray/arrayif.h
${PYINC}/numarray/arrayobject.h
@@ -20,6 +20,7 @@ ${PYSITELIB}/numarray/_bytes.so
${PYSITELIB}/numarray/_chararray.so
${PYSITELIB}/numarray/_conv.so
${PYSITELIB}/numarray/_converter.so
+${DOTBLAS}${PYSITELIB}/numarray/_dotblas.so
${PYSITELIB}/numarray/_ndarray.so
${PYSITELIB}/numarray/_numarray.so
${PYSITELIB}/numarray/_numerictype.so