diff options
author | Soeren Straarup <xride@FreeBSD.org> | 2006-10-07 17:16:43 +0000 |
---|---|---|
committer | Soeren Straarup <xride@FreeBSD.org> | 2006-10-07 17:16:43 +0000 |
commit | f8f3d1505a5d56194f2f5bd9125b681336d2d3ae (patch) | |
tree | ec1ff8aeee680f124dbc285bcd67a725d2c98cfa /science/py-scipy03 | |
parent | - Update to 4.6 (diff) |
depends on atlas when it could also be built with lapack/blas instead
this diff adds an OPTION knob to allow selection at compile time.
PR: 104077
Submitted by: maintainer
Approved by: tmclaugh (mentor)
Diffstat (limited to 'science/py-scipy03')
-rw-r--r-- | science/py-scipy03/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/science/py-scipy03/Makefile b/science/py-scipy03/Makefile index 88fe0aca95df..bc3f7b732d57 100644 --- a/science/py-scipy03/Makefile +++ b/science/py-scipy03/Makefile @@ -8,7 +8,7 @@ PORTNAME= scipy PORTVERSION= 0.3.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= scipy @@ -22,11 +22,11 @@ BUILD_DEPENDS= ${PYNUMERIC} \ ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft \ f2py:${PORTSDIR}/lang/f2py \ ${PYTHON_SITELIBDIR}/wx/__init__.py:${PORTSDIR}/x11-toolkits/py-wxPython24 -LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw \ - atlas.1:${PORTSDIR}/math/atlas +LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw USE_PYTHON= 2.3+ USE_PYDISTUTILS= yes +OPTIONS= ATLAS "Use optimized blas library" OFF post-patch: @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ @@ -34,9 +34,15 @@ post-patch: .include <bsd.port.pre.mk> +.if defined(WITH_ATLAS) +LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas .if !exists(${LOCALBASE}/lib/libalapack.a) IGNORE= Atlas needs to be built with WITH_STATICLIB for scipy to function properly .endif +.else +LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack \ + blas.1:${PORTSDIR}/math/blas +.endif post-install: @${RMDIR} ${PYTHON_SITELIBDIR}/weave/swig # empty |