# -*- 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 PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 PortGroup compilers 1.0 PortGroup github 1.0 PortGroup linear_algebra 1.0 PortGroup makefile 1.0 github.setup Dsplib libdspl-2.0 945a7fd417dab398a950ebc2557b3dcae109c7df name dspl version 2021.12.29 revision 1 categories science math license LGPL-3 maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description Opensource cross-platform digital signal processing algorithm library, written in C. long_description {*}${description} homepage http://en.dsplib.org checksums rmd160 ba5a22d87d9c2dfd345ca8412da504b20d303502 \ sha256 4285e9edbf0a592ebf2300a1a285b7eead2aae450665f48ca03fb12488b6135e \ size 5753296 patchfiles 0001-Fixes-for-Macports.patch compilers.setup require_fortran compiler.blacklist-append \ {*gcc-[3-4].*} {clang < 400} post-patch { reinplace "s,@CC@,${configure.cc}," ${worksrcpath}/make.inc reinplace "s,@FC@,${configure.fc}," ${worksrcpath}/make.inc reinplace "s,@PREFIX@,${prefix},g" ${worksrcpath}/make.inc reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/dspl/Makefile platform darwin 10 powerpc { # Hack for Rosetta: reinplace "s,-lquadmath,,g" ${worksrcpath}/make.inc } } destroot { copy ${worksrcpath}/_release/dspl.h ${destroot}${prefix}/include/ copy ${worksrcpath}/_release/libdspl.so ${destroot}${prefix}/lib/ xinstall -d ${destroot}${prefix}/share/${name} copy ${worksrcpath}/_release/dspl.c ${destroot}${prefix}/share/${name}/ xinstall -m 0644 -W ${worksrcpath} README.md LICENSE ${destroot}${prefix}/share/${name}/ }