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

github.setup        espeak-ng sonic 0.2.0 release-
revision            1

github.tarball_from archive
categories          audio
platforms           darwin
maintainers         nomaintainer
license             Apache-2

description         Simple library to speed up or slow down speech

long_description    Sonic is a simple algorithm for speeding up or slowing down speech.  However, \
                    it's optimized for speed ups of over 2X, unlike previous algorithms for changing \
                    speech rate.  The Sonic library is a very simple ANSI C library that is designed \
                    to easily be integrated into streaming voice applications, like TTS back ends.

checksums           rmd160  4fb75a94018d16f052828cbd6b292a93e2ca0f41 \
                    sha256  c7827ce576838467590ffa1f935fbe1049e896dfed6c515cf569ad3779c24085 \
                    size    5340269

patchfiles          FLAGS.patch \
                    patch-sonic-mac.diff \
                    DYLD_LIBRARY_PATH.patch

compiler.cxx_standard 1998
configure.cxxflags-append -std=c++98

makefile.override   PREFIX

# 0.2.0 does not contain the spectrogram feature but 0.3.0 will and we
# don't need it for espeak-ng.
build.args-append   USE_SPECTROGRAM=0
destroot.args       {*}${build.args}

test.run            yes
test.target         check