# Created by: ijliao # $FreeBSD$ PORTNAME= scipy PORTVERSION= 0.14.0 PORTREVISION= 4 CATEGORIES= science python MASTER_SITES= http://docs.scipy.org/doc/${DISTNAME}/:doc \ SF:source PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \ scipy-ref-${PORTVERSION}.pdf:doc EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= python@FreeBSD.org COMMENT= Scientific tools for Python LICENSE= BSD3CLAUSE BUILD_DEPENDS+= ${PYNUMPY} \ ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3 RUN_DEPENDS= ${PYNUMPY} \ nosetests:${PORTSDIR}/devel/py-nose USES= fortran python USE_PYTHON= distutils autoplist concurrent OPTIONS_DEFINE= ATLAS DOCS SUITESPARSE OPTIONS_DEFAULT=SUITESPARSE ATLAS_DESC= Use optimized blas library SUITESPARSE_DESC= Use AMD and UMFPACK in SuiteSparse PORTDOCS= scipy-ref-${PORTVERSION}.pdf post-patch: @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ -e "s@malloc\.h@stdlib.h@" .include .if ${PORT_OPTIONS:MATLAS} LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas .if !exists(${LOCALBASE}/lib/libalapack.a) IGNORE= atlas needs to be built with WITH_STATIC for scipy to function properly .endif .else LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack \ libblas.so:${PORTSDIR}/math/blas .endif .if ${PORT_OPTIONS:MSUITESPARSE} BUILD_DEPENDS+= swig:${PORTSDIR}/devel/swig13 LIB_DEPENDS+= libumfpack.so:${PORTSDIR}/math/suitesparse .endif PYDISTUTILS_CONFIGUREARGS+= --fcompiler=gnu95 PYDISTUTILS_BUILDARGS+= --fcompiler=gnu95 post-extract: @${CP} ${DISTDIR}/scipy-ref-${PORTVERSION}.pdf ${WRKDIR} post-install: .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKDIR}/scipy-ref-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR} .endif .include