# ex:ts=8 # Ports collection makefile for: SciPy # Date created: Jun 8, 2004 # Whom: ijliao # # $FreeBSD$ # PORTNAME= scipy PORTVERSION= 0.3.2 PORTREVISION= 2 CATEGORIES= science python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= scipy PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= SciPy_complete-${PORTVERSION} MAINTAINER= db@db.net COMMENT= Scientific tools for Python 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 USE_PYTHON= 2.3+ USE_PYDISTUTILS= yes OPTIONS= ATLAS "Use optimized blas library" OFF LATEST_LINK= py-${PORTNAME}03 DEPRECATED= Replaced by py-scipy EXPIRATION_DATE=2007-04-01 post-patch: @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ -e "s@malloc\.h@stdlib.h@" @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' \ ${WRKSRC}/scipy_core/scipy_distutils/system_info.py .include .if defined(WITH_ATLAS) LIB_DEPENDS+= atlas.2:${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.4:${PORTSDIR}/math/lapack \ blas.2:${PORTSDIR}/math/blas .endif post-install: @${RMDIR} ${PYTHON_SITELIBDIR}/weave/swig # empty .for dir in ${PYTHON_SITELIBDIR}/gui_thread ${PYTHON_SITELIBDIR}/scipy \ ${PYTHON_SITELIBDIR}/scipy_base ${PYTHON_SITELIBDIR}/scipy_distutils \ ${PYTHON_SITELIBDIR}/scipy_test ${PYTHON_SITELIBDIR}/weave @${FIND} ${dir} ! -type d | \ ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} @${FIND} ${dir} -type d | ${SORT} -r | \ ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} .endfor .include