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

github.setup        xiph rnnoise 0.2 v
revision            2
checksums           rmd160  247533f4803d58e064037d852c1feb27bede927c \
                    sha256  90fce4b00b9ff24c08dbfe31b82ffd43bae383d85c5535676d28b0a2b11c0d37 \
                    size    2294308
# Remove with next version update.
dist_subdir         ${name}/${version}_1

categories          audio
license             BSD
maintainers         @jasonliu-- openmaintainer

homepage            https://jmvalin.ca/demo/rnnoise
github.tarball_from releases

description         Recurrent neural network for audio noise reduction
long_description    RNNoise is a noise suppression library based \
                    on a recurrent neural network.

# https://github.com/xiph/rnnoise/issues/222
patch.pre_args-replace  -p0 -p1
patchfiles          patch-372f7b4b76cde4ca1ec4605353dd17898a99de38.diff

# vec_avx.h:171:9: error: unknown type name '__m256i'
# uses newer intrinsic functions
compiler.blacklist  {*gcc-[3-4].*} {clang < 800}

# FIXME: no Altivec support at the moment:
# https://github.com/xiph/rnnoise/issues/223
