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)
This commit is contained in:
Soeren Straarup 2006-10-07 17:16:43 +00:00
parent e09c0cde3a
commit f8f3d1505a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174815
2 changed files with 18 additions and 6 deletions

View file

@ -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

View file

@ -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