Ticket #4233: Portfile

File Portfile, 1.5 KB (added by ben@…, 19 years ago)

gcc 4 portfile

Line 
1# $Id: Portfile,v 1.1 2005/01/06 15:07:03 mww Exp $
2
3PortSystem 1.0
4PortGroup  python24 1.0
5
6name         py-scipy
7version      0.3.2
8revision     3
9categories   python
10platforms    darwin
11description  An opensource library of scientific tools for Python
12maintainers  erickt@dslextreme.com
13
14homepage      http://www.scipy.org/
15master_sites  ${homepage}/download/scipy/src/
16distname      SciPy_complete-${version}
17
18checksums md5 5ae2280ab2c4c653cb0ff8479e81284a
19
20depends_lib    lib:gnuplot:gnuplot \
21               lib:fftw:fftw \
22               port:py-numeric \
23               port:py-f2py
24
25depends_build  port:gcc40 \
26               port:ftidy
27
28worksrcdir     ${distname}
29
30patchfiles     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
36post-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
41use_configure  no
42
43build.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'
47build.post_args  config_fc --f77exec gfortran-dp-4.0