Portfile 2.7 KB
Newer Older
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
PortSystem          1.0
4
PortGroup           wxWidgets 1.0
5 6

name                stimfit
7
version             0.15.8
8 9
categories          science
platforms           darwin
10
license             GPL-2
11
maintainers         {gmx.de:christsc @neurodroid}
12 13 14
description         Electrophysiology analysis suite
long_description    A program for viewing and analyzing electrophysiological data
homepage            http://www.stimfit.org
15
master_sites        ${homepage}
16

17 18
checksums           rmd160  960efd2fa4f88aba153af560cc49adc40090995b \
                    sha256  0fc6b0f52057d9c45107557e615f314179ac92e180123ed9d1da98e7f812df8b
19

20
wxWidgets.use       wxPython-3.0
21

22
depends_lib         port:boost \
23
                    port:fftw-3 \
24
                    port:hdf5 \
25
                    port:${wxWidgets.port}
26

27
configure.args      --with-wx-config=${wxWidgets.wxconfig} \
28
                    --disable-dependency-tracking \
29 30
                    --disable-python \
                    --without-biosig
31

32 33
# Only Python 2.7 is supported until wxpython gets available for Python 3.x
variant python27 description {Build with Python shell.} {
34 35 36
    depends_build-append \
        port:swig-python

37 38
    depends_lib-append \
        port:python27 \
39
        port:py27-wxpython-3.0 \
40
        port:py27-numpy \
41 42
        port:py27-matplotlib \
        port:py27-cvxopt
43 44 45

    configure.python \
        ${prefix}/bin/python2.7
46

47 48
    configure.args-replace \
        --disable-python \
49 50
        --enable-python
}
51

52 53 54 55 56 57 58 59
variant atlas description {Use MacPorts ATLAS libraries.} {
    depends_lib-append \
        port:atlas

    configure.args-append \
        --with-lapack-lib=${prefix}/lib/libatlas.a
}

60
variant biosig conflicts biosiglite description {Use external biosig library for file I/O.} {
61 62 63
    depends_lib-append \
        port:libbiosig

64 65
    configure.args-replace \
        --without-biosig \
66 67 68 69 70 71 72
        --with-biosig2
}

variant biosiglite conflicts biosig description {Use internal biosiglite library for file I/O.} {
    configure.args-replace \
        --without-biosig \
        --with-biosiglite
73 74
}

75 76 77
configure.ldflags-append \
                    -headerpad_max_install_names

78
# Commented out for now; will be required when wxpython gets available for Python 3.x
79
# if {![variant_isset python27]} {
80
default_variants    +python27
81
# }
82
default_variants-append \
83
                    +biosiglite
84 85

destroot.destdir    DESTDIR=${destroot}${applications_dir}
86 87 88 89

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
90
    xinstall -m 644 ${worksrcpath}/dist/debian/copyright \
91
        ${worksrcpath}/COPYING ${docdir}
92
}