diff --git a/science/stimfit/Portfile b/science/stimfit/Portfile index 525b396040f..47cf4f1eead 100644 --- a/science/stimfit/Portfile +++ b/science/stimfit/Portfile @@ -2,12 +2,13 @@ PortSystem 1.0 PortGroup wxWidgets 1.0 +PortGroup cmake 1.1 name stimfit -version 0.16.11 -checksums rmd160 c0711ab55543f5c292d0869b4ad2878e6d199c4e \ - sha256 d8a543e116a281fb45fdd292518ed1e3bc8f466332db780a1641089ee5a568d9 \ - size 1917433 +version 0.17.1 +checksums rmd160 c07ad51c7dddb533aaa1edb544386c2c8875b4b5 \ + sha256 c6a5761644d9fb6504a097b9232197a0e65cc6f19afb9162c2e20a39e2efcf84 \ + size 20174648 categories science license GPL-2 @@ -16,10 +17,12 @@ description Electrophysiology analysis suite long_description A program for viewing and analyzing electrophysiological data homepage http://www.stimfit.org master_sites ${homepage} +worksrcdir Stimfit-${version}-Source wxWidgets.use wxWidgets-3.2 -depends_build port:gawk +depends_build-append \ + port:gawk depends_lib port:fftw-3 \ port:hdf5 \ @@ -28,11 +31,16 @@ depends_lib port:fftw-3 \ compiler.cxx_standard \ 2017 -configure.args --disable-dependency-tracking \ - --disable-silent-rules \ - --disable-python \ - --with-biosiglite \ - --with-wx-config=${wxWidgets.wxconfig} +configure.args -DCMAKE_INSTALL_PREFIX=${applications_dir} \ + -DSTF_ENABLE_PYTHON=OFF \ + -DSTF_WITH_BIOSIG=ON \ + -DSTF_BIOSIG_PROVIDER=SUBMODULE \ + -DSTF_BUILD_MODULE=OFF \ + -DSTF_BUILD_TESTS=OFF \ + -DSTF_MACOS_APP_BUNDLE=ON \ + -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} + +configure.pre_args -S ${worksrcpath} -B ${workpath}/build set python_branches {3.10 3.11 3.12 3.13 3.14} @@ -83,16 +91,16 @@ foreach python_branch ${python_branches} { port:py${python_version}-numpy \ port:py${python_version}-matplotlib - configure.python \ - ${prefix}/bin/python${python_branch} + configure.args-replace \ + -DSTF_ENABLE_PYTHON=OFF \ + -DSTF_ENABLE_PYTHON=ON configure.args-replace \ - --disable-python \ - --enable-python + -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} \ + -DwxWidgets_CONFIG_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/${python_branch}/bin/wx-config - configure.args-replace \ - --with-wx-config=${wxWidgets.wxconfig} \ - --with-wx-config=${frameworks_dir}/Python.framework/Versions/${python_branch}/bin/wx-config + configure.args-append \ + -DPython3_EXECUTABLE=${prefix}/bin/python${python_branch} } } @@ -101,14 +109,12 @@ variant atlas description {Use MacPorts ATLAS libraries} { port:atlas configure.args-append \ - --with-lapack-lib=${prefix}/lib/libatlas.a + -DBLA_VENDOR=ATLAS } configure.ldflags-append \ -headerpad_max_install_names -destroot.destdir DESTDIR=${destroot}${applications_dir} - post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir}