summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorminskim <minskim>2006-03-01 19:15:07 +0000
committerminskim <minskim>2006-03-01 19:15:07 +0000
commitd2659c51463445e43d5d4d3858e654734ae6c056 (patch)
treed6773754ddaf02a97bb2e944eb9eb3534e875e40 /math
parent9c65ed1689103bc26782918f91eba2f992c20b0d (diff)
downloadpkgsrc-d2659c51463445e43d5d4d3858e654734ae6c056.tar.gz
Let the package find BLAS and LAPACK routines on Mac OS X. This makes the
package build on Darwin.
Diffstat (limited to 'math')
-rw-r--r--math/py-Numeric/Makefile10
-rw-r--r--math/py-Numeric/PLIST7
2 files changed, 14 insertions, 3 deletions
diff --git a/math/py-Numeric/Makefile b/math/py-Numeric/Makefile
index 5d46226c354..470957a9303 100644
--- a/math/py-Numeric/Makefile
+++ b/math/py-Numeric/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2006/02/15 17:37:08 drochner Exp $
+# $NetBSD: Makefile,v 1.41 2006/03/01 19:15:07 minskim Exp $
DISTNAME= Numeric-24.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -9,10 +9,16 @@ MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://numeric.scipy.org/
COMMENT= Adds multidimensional numeric arrays to Python
-
PYDISTUTILSPKG= yes
PYBINMODULE= yes
PYSETUP= setup.py
+.if exists(/System/Library/Frameworks/vecLib.framework)
+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-Numeric/PLIST b/math/py-Numeric/PLIST
index efd2b2a80db..284e4f08dae 100644
--- a/math/py-Numeric/PLIST
+++ b/math/py-Numeric/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2006/02/15 17:37:08 drochner Exp $
+@comment $NetBSD: PLIST,v 1.6 2006/03/01 19:15:07 minskim Exp $
${PYINC}/Numeric/arrayobject.h
${PYINC}/Numeric/f2c.h
${PYINC}/Numeric/ranlib.h
@@ -54,8 +54,12 @@ ${PYSITELIB}/Numeric/RandomArray.pyo
${PYSITELIB}/Numeric/UserArray.py
${PYSITELIB}/Numeric/UserArray.pyc
${PYSITELIB}/Numeric/UserArray.pyo
+${DOTBLAS}${PYSITELIB}/Numeric/_dotblas.so
${PYSITELIB}/Numeric/_numpy.so
${PYSITELIB}/Numeric/arrayfns.so
+${DOTBLAS}${PYSITELIB}/Numeric/dotblas/__init__.py
+${DOTBLAS}${PYSITELIB}/Numeric/dotblas/__init__.pyc
+${DOTBLAS}${PYSITELIB}/Numeric/dotblas/__init__.pyo
${PYSITELIB}/Numeric/lapack_lite.so
${PYSITELIB}/Numeric/multiarray.so
${PYSITELIB}/Numeric/numeric_version.py
@@ -63,6 +67,7 @@ ${PYSITELIB}/Numeric/numeric_version.pyc
${PYSITELIB}/Numeric/numeric_version.pyo
${PYSITELIB}/Numeric/ranlib.so
${PYSITELIB}/Numeric/umath.so
+${DOTBLAS}@dirrm ${PYSITELIB}/Numeric/dotblas
@dirrm ${PYSITELIB}/Numeric/RNG
@dirrm ${PYSITELIB}/Numeric/Numeric_headers
@dirrm ${PYSITELIB}/Numeric/MA