2004-08-26 10:37:09 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: SciPy
|
|
|
|
# Date created: Jun 8, 2004
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= scipy
|
2005-05-18 17:44:50 +02:00
|
|
|
PORTVERSION= 0.3.2
|
2006-10-07 19:16:43 +02:00
|
|
|
PORTREVISION= 2
|
2004-08-26 10:37:09 +02:00
|
|
|
CATEGORIES= science python
|
2006-02-25 21:31:05 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= scipy
|
2004-08-26 10:37:09 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= SciPy_complete-${PORTVERSION}
|
2006-12-01 15:22:02 +01:00
|
|
|
LATEST_LINK= py-${PORTNAME}03
|
2004-08-26 10:37:09 +02:00
|
|
|
|
2006-03-21 05:39:28 +01:00
|
|
|
MAINTAINER= db@db.net
|
2004-08-26 10:37:09 +02:00
|
|
|
COMMENT= Scientific tools for Python
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYNUMERIC} \
|
|
|
|
${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft \
|
|
|
|
f2py:${PORTSDIR}/lang/f2py \
|
2005-05-12 18:39:59 +02:00
|
|
|
${PYTHON_SITELIBDIR}/wx/__init__.py:${PORTSDIR}/x11-toolkits/py-wxPython24
|
2006-10-07 19:16:43 +02:00
|
|
|
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
|
2004-08-26 10:37:09 +02:00
|
|
|
|
|
|
|
USE_PYTHON= 2.3+
|
|
|
|
USE_PYDISTUTILS= yes
|
2006-10-07 19:16:43 +02:00
|
|
|
OPTIONS= ATLAS "Use optimized blas library" OFF
|
2004-08-26 10:37:09 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e "s@malloc\.h@stdlib.h@"
|
2006-12-05 18:09:15 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' \
|
|
|
|
${WRKSRC}/scipy_core/scipy_distutils/system_info.py
|
2004-08-26 10:37:09 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-10-07 19:16:43 +02:00
|
|
|
.if defined(WITH_ATLAS)
|
|
|
|
LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas
|
2006-08-28 23:21:16 +02:00
|
|
|
.if !exists(${LOCALBASE}/lib/libalapack.a)
|
|
|
|
IGNORE= Atlas needs to be built with WITH_STATICLIB for scipy to function properly
|
|
|
|
.endif
|
2006-10-07 19:16:43 +02:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack \
|
|
|
|
blas.1:${PORTSDIR}/math/blas
|
|
|
|
.endif
|
2006-08-28 23:21:16 +02:00
|
|
|
|
2004-08-26 10:37:09 +02:00
|
|
|
post-install:
|
2005-05-18 17:44:50 +02:00
|
|
|
@${RMDIR} ${PYTHON_SITELIBDIR}/weave/swig # empty
|
2004-08-26 10:37:09 +02:00
|
|
|
.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 <bsd.port.post.mk>
|