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 | # xorg-libX11 is required even if we build without gui. |
---|
28 | depends_lib port:xorg-libX11 \ |
---|
29 | port:gettext \ |
---|
30 | port:libiconv \ |
---|
31 | port:readline \ |
---|
32 | port:ncurses |
---|
33 | |
---|
34 | configure.cflags-append \ |
---|
35 | -Wno-return-type |
---|
36 | configure.cxxflags-append \ |
---|
37 | -Wno-return-type |
---|
38 | configure.pre_args --prefix=${applications_dir}/NEURON/nrn |
---|
39 | configure.args --without-iv |
---|
40 | |
---|
41 | variant gui description {Build with graphical user interface.} { |
---|
42 | depends_lib-append \ |
---|
43 | port:neuron-iv |
---|
44 | |
---|
45 | configure.args-delete \ |
---|
46 | --without-iv |
---|
47 | |
---|
48 | configure.args-append \ |
---|
49 | --with-iv=${applications_dir}/NEURON/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 | default_variants-append +gui |
---|
105 | |
---|
106 | post-destroot { |
---|
107 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
108 | xinstall -d ${docdir} |
---|
109 | xinstall -m 644 ${worksrcpath}/COPYING ${docdir} |
---|
110 | } |
---|