/
Portfile.in
92 lines (73 loc) · 2.57 KB
/
Portfile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# -*- 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
# $Id$
PortSystem 1.0
PortGroup wxWidgets 1.0
name stimfit
version STFVERSION
categories science
platforms darwin
license GPL-2
maintainers gmx.de:christsc
description Electrophysiology analysis suite
long_description A program for viewing and analyzing electrophysiological data
homepage http://www.stimfit.org
master_sites ${homepage}
checksums rmd160 RMD160 \
sha256 SHA256
wxWidgets.use wxPython-3.0
depends_lib port:boost \
port:fftw-3 \
port:hdf5 \
port:${wxWidgets.port}
configure.args --with-wx-config=${wxWidgets.wxconfig} \
--disable-dependency-tracking \
--disable-python \
--without-biosig
# Only Python 2.7 is supported until wxpython gets available for Python 3.x
variant python27 description {Build with Python shell.} {
depends_build-append \
port:swig-python
depends_lib-append \
port:python27 \
port:py27-wxpython-3.0 \
port:py27-numpy \
port:py27-matplotlib
configure.python \
${prefix}/bin/python2.7
configure.args-replace \
--disable-python \
--enable-python
}
variant atlas description {Use MacPorts ATLAS libraries.} {
depends_lib-append \
port:atlas
configure.args-append \
--with-lapack-lib=${prefix}/lib/libatlas.a
}
variant biosig conflicts biosiglite description {Use external biosig library for file I/O.} {
depends_lib-append \
port:libbiosig
configure.args-replace \
--without-biosig \
--with-biosig2
}
variant biosiglite conflicts biosig description {Use internal biosiglite library for file I/O.} {
configure.args-replace \
--without-biosig \
--with-biosiglite
}
configure.ldflags-append \
-headerpad_max_install_names
# Commented out for now; will be required when wxpython gets available for Python 3.x
# if {![variant_isset python27]} {
default_variants +python27
# }
default_variants-append \
+biosiglite
destroot.destdir DESTDIR=${destroot}${applications_dir}
post-destroot {
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d ${docdir}
xinstall -m 644 ${worksrcpath}/dist/debian/copyright \
${worksrcpath}/COPYING ${docdir}
}