14 | | homepage http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/ |
15 | | platforms darwin |
16 | | master_sites ${homepage} |
17 | | checksums md5 cee6760809bc1ddbb6172fc8818a76b2 \ |
18 | | sha1 82f3047a3b1b1970fae741946fd8479f15595362 \ |
19 | | rmd160 7c12162b4fb64746d91715756c01e52dbb4e0e09 |
20 | | depends_lib port:gsl port:g95 |
21 | | patch { |
22 | | reinplace "s| \$bits | \"\$bits\" |" ${worksrcpath}/configure |
23 | | reinplace "s|fgsl_doc|share/doc/fgsl|" ${worksrcpath}/Makefile |
24 | | reinplace "s|\$(PREFIX)|\$(DESTDIR)\$(PREFIX)|" ${worksrcpath}/Makefile |
25 | | reinplace "s|error_3\.exe||" ${worksrcpath}/doc/examples/Makefile |
26 | | } |
| 16 | homepage http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/ |
| 17 | platforms darwin |
| 18 | master_sites https://github.com/tschoonj/xmimsim/downloads/ |
| 19 | checksums md5 bd52565d4f34069ccfa89b359e831ff2 \ |
| 20 | sha1 eb23c5949f819427c417ce96bf42fe83d0f70102 \ |
| 21 | rmd160 f5b33a265b3ba17372d81b832b24c96c57c0da08 |
| 22 | depends_lib port:gsl port:gcc44 |
| 23 | #sed provided by Apple fails here, GNU sed is needed! |
| 24 | depends_build port:gsed |
| 25 | configure.fc ${prefix}/bin/gfortran-mp-4.4 |
28 | | #pre-configure { |
29 | | # reinplace "s|gfortran|gfortran-mp-4.3|" ${worksrcpath}/configure |
30 | | #} |
31 | | configure.pre_args-delete --prefix=${prefix} |
32 | | configure.args "--prefix ${prefix} --f90 g95 --cc ${configure.cc} --gsl ${prefix}" |
33 | | |
34 | | post-destroot { |
35 | | xinstall -m 755 -d ${destroot}${prefix}/share/${name}/examples |
36 | | eval xinstall -m 644 [glob ${worksrcpath}/doc/examples/*] ${destroot}${prefix}/share/${name}/examples |
37 | | xinstall -m 644 ${worksrcpath}/make.inc ${destroot}${prefix}/share/${name} |
38 | | reinplace "s|../make.inc|make.inc|" ${destroot}${prefix}/share/${name}/examples/Makefile |
39 | | reinplace "s|-I../..|-I${prefix}/include/\$(F90)|" ${destroot}${prefix}/share/${name}/examples/Makefile |
40 | | if {[variant_isset doc]} { |
41 | | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
42 | | } |
43 | | } |
47 | | # gfortran 4.3.x does not support complex(c_double) |
48 | | #variant gcc43 description {build with gcc43} { |
49 | | # depends_build-delete port:g95 |
50 | | # depends_build-append port:gcc43 |
51 | | # configure.args "--prefix ${prefix} --f90 gfortran-mp-4.3 --gsl ${prefix}" |
52 | | # reinplace "s|g95|gfortran-mp-4.3|" ${worksrcpath}/doc/usage.texi |
53 | | #} |
54 | | |
55 | | variant doc description {deprecated. dummy variant} { |
56 | | # depends_build-append port:texinfo bin:dvipdf:teTeX |
57 | | # post-build { |
58 | | # system "cd ${worksrcpath}/doc/; make" |
59 | | # } |
| 36 | variant g95 description {build with g95} conflicts gcc45 { |
| 37 | depends_lib-append port:g95 |
| 38 | configure.fc ${prefix}/bin/g95 |