# -*- 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               makefile 1.0

name                    drc-fir
version                 3.2.3
checksums               rmd160  d5188f629d5d40211a82d0c2b4ad3e2e95a58fcd \
                        sha256  32d317eb2a85d430fd11b15e7d2ae8c72d533852d855f953085d5e730e919222 \
                        size    31636726

categories              science multimedia math
maintainers             nomaintainer
license                 GPL-2+

description             DRC is a program used to generate correction \
                        filters for acoustic compensation

long_description        DRC is a program used to generate correction \
                        filters for acoustic compensation of HiFi and \
                        audio systems in general, including listening \
                        room compensation. DRC generates just the FIR \
                        correction filters, which can be used with a \
                        real time or offline convolver to provide real \
                        time or offline correction. DRC doesn't \
                        provide convolution features, and provides \
                        only some simplified, although really \
                        accurate, measuring tools.

homepage                http://drc-fir.sourceforge.net/
master_sites            sourceforge:project/${name}/${name}/${version}/

distname                drc-${version}
worksrcdir              ${distname}/source

# The makefile uses GNU-specific cp flags.
depends_build           path:libexec/coreutils/libstdbuf.so:coreutils

post-extract {
    xinstall -d ${workpath}/bin
    ln -s ${prefix}/bin/gcp ${workpath}/bin/cp
}

patchfiles              patch-drc.diff

# The makefile uses CC and CFLAGS for both C and C++ files.
configure.cc            {*}${configure.cxx}
configure.cflags        {*}${configure.cxxflags}

# The makefile puts $CPPFLAGS before its own include directories.
configure.cppflags-delete \
                        -I${prefix}/include

build.target            ALL

destroot.env            PATH=${workpath}/bin:$env(PATH)
