1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name neuron |
---|
7 | version 7.3 |
---|
8 | categories science |
---|
9 | platforms darwin |
---|
10 | license GPL-2 |
---|
11 | maintainers gmx.de:christsc |
---|
12 | description Empirically-based simulations of neurons and networks of neurons |
---|
13 | long_description NEURON is a simulation environment for developing and exercising models of neurons and networks of neurons. |
---|
14 | homepage http://www.neuron.yale.edu |
---|
15 | master_sites http://www.stimfit.org/neuron/ |
---|
16 | patch_sites http://www.stimfit.org/neuron/ |
---|
17 | distname nrn-${version} |
---|
18 | distfiles ${distname}.rel-884${extract.suffix} |
---|
19 | patchfiles patch-destdir |
---|
20 | checksums ${distname}.rel-884${extract.suffix} \ |
---|
21 | rmd160 1c1bdbc11aadfcdf863ead73fda3ffa645aff8fb \ |
---|
22 | sha256 a1120bdac87d4f2552074ce0bdc56666f6fbf567706b470ef7c949fa5a0aa2db \ |
---|
23 | patch-destdir \ |
---|
24 | rmd160 e1dca10a1a3d4df247bbf5b7c703a1419ef71440 \ |
---|
25 | sha256 70e370d72518d3a7b3a3bdcd42a6ca87be8414c9364e3eac4a90619903178564 \ |
---|
26 | |
---|
27 | depends_lib port:neuron-iv \ |
---|
28 | port:gettext \ |
---|
29 | port:libiconv \ |
---|
30 | port:readline \ |
---|
31 | port:ncurses |
---|
32 | |
---|
33 | configure.cflags-append \ |
---|
34 | -Wno-return-type |
---|
35 | configure.cxxflags-append \ |
---|
36 | -Wno-return-type |
---|
37 | configure.pre_args --prefix=${applications_dir}/NEURON/nrn |
---|
38 | configure.args --with-iv=${applications_dir}/NEURON/iv |
---|
39 | |
---|
40 | variant nogui description {Build command line version only.} { |
---|
41 | # xorg-libX11 is apparently still required. |
---|
42 | depends_lib-delete \ |
---|
43 | port:neuron-iv |
---|
44 | |
---|
45 | configure.args-delete \ |
---|
46 | --with-iv=${applications_dir}/NEURON/iv |
---|
47 | |
---|
48 | configure.args-append \ |
---|
49 | --without-iv |
---|
50 | } |
---|
51 | |
---|
52 | variant python27 conflicts python33 description {Build Python 2.7 module.} { |
---|
53 | depends_lib-append \ |
---|
54 | port:python27 \ |
---|
55 | port:py27-numpy |
---|
56 | |
---|
57 | configure.args-append \ |
---|
58 | --with-nrnpython=${prefix}/bin/python2.7 \ |
---|
59 | --enable-pysetup="--root=${destroot}" |
---|
60 | } |
---|
61 | |
---|
62 | variant python33 conflicts python27 description {Build Python 3.3 module.} { |
---|
63 | depends_lib-append \ |
---|
64 | port:python33 \ |
---|
65 | port:py33-numpy |
---|
66 | |
---|
67 | configure.args-append \ |
---|
68 | --with-nrnpython=${prefix}/bin/python3.3 \ |
---|
69 | --enable-pysetup="--root=${destroot}" |
---|
70 | } |
---|
71 | |
---|
72 | variant openmpi conflicts mpich description {Use openmpi for parallelization.} { |
---|
73 | depends_lib-append \ |
---|
74 | port:openmpi |
---|
75 | |
---|
76 | configure.env-append \ |
---|
77 | MPICC=${prefix}/bin/openmpicc \ |
---|
78 | MPICXX=${prefix}/bin/openmpic++ |
---|
79 | |
---|
80 | configure.args-append \ |
---|
81 | --with-paranrn |
---|
82 | } |
---|
83 | |
---|
84 | variant mpich conflicts openmpi description {Use mpich for parallelization.} { |
---|
85 | depends_lib-append \ |
---|
86 | port:mpich |
---|
87 | |
---|
88 | configure.env-append \ |
---|
89 | MPICC=${prefix}/bin/mpicc \ |
---|
90 | MPICXX=${prefix}/bin/mpic++ |
---|
91 | |
---|
92 | configure.args-append \ |
---|
93 | --with-paranrn |
---|
94 | } |
---|
95 | |
---|
96 | if {![variant_isset python33]} { |
---|
97 | default_variants +python27 |
---|
98 | } |
---|
99 | |
---|
100 | if {![variant_isset mpich]} { |
---|
101 | default_variants-append +openmpi |
---|
102 | } |
---|
103 | |
---|
104 | destroot.destdir DESTDIR=${destroot} |
---|
105 | |
---|
106 | post-destroot { |
---|
107 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
108 | xinstall -d ${docdir} |
---|
109 | xinstall -m 644 ${worksrcpath}/COPYING ${docdir} |
---|
110 | } |
---|