1 | # $Id: Portfile,v 1.1 2005/01/06 15:07:03 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python24 1.0 |
---|
5 | |
---|
6 | name py-scipy |
---|
7 | version 0.3.2 |
---|
8 | revision 3 |
---|
9 | categories python |
---|
10 | platforms darwin |
---|
11 | description An opensource library of scientific tools for Python |
---|
12 | maintainers erickt@dslextreme.com |
---|
13 | |
---|
14 | homepage http://www.scipy.org/ |
---|
15 | master_sites ${homepage}/download/scipy/src/ |
---|
16 | distname SciPy_complete-${version} |
---|
17 | |
---|
18 | checksums md5 5ae2280ab2c4c653cb0ff8479e81284a |
---|
19 | |
---|
20 | depends_lib lib:gnuplot:gnuplot \ |
---|
21 | lib:fftw:fftw \ |
---|
22 | port:py-numeric \ |
---|
23 | port:py-f2py |
---|
24 | |
---|
25 | depends_build port:gcc40 \ |
---|
26 | port:ftidy |
---|
27 | |
---|
28 | worksrcdir ${distname} |
---|
29 | |
---|
30 | patchfiles patch-gnufcompiler.py.gcc4 \ |
---|
31 | patch-Lib_interpolate_fitpack.pyf \ |
---|
32 | patch-Lib_stats_ranlib_all.c \ |
---|
33 | patch-scipy_core_scipy_base_fastumathmodule.c \ |
---|
34 | patch-setup.py |
---|
35 | |
---|
36 | post-patch { |
---|
37 | system "cd ${worksrcpath}/Lib/integrate/quadpack && sh ${portpath}/${filesdir}/ftidyinplace dqag.f dqagi.f dqagp.f dqags.f dqawc.f dqawf.f dqawo.f dqaws.f dqng.f" |
---|
38 | system "cd ${worksrcpath}/Lib/integrate/odepack && sh ${portpath}/${filesdir}/ftidyinplace *.f" |
---|
39 | } |
---|
40 | |
---|
41 | use_configure no |
---|
42 | |
---|
43 | build.env LDFLAGS="-L/Library/Frameworks/Python.framework/Libraries -L${prefix}/lib/gcc40 -lpython -lgfortran" \ |
---|
44 | CPPFLAGS="-I${prefix}/include/python2.4 -I${prefix}/include/gcc40" \ |
---|
45 | CFLAGS="-I${prefix}/include/python2.4 -I${prefix}/include/gcc40" \ |
---|
46 | FFTW="${prefix}" FFTW_LIBS='drfftw, dfftw' |
---|
47 | build.post_args config_fc --f77exec gfortran-dp-4.0 |
---|