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

gitlab.instance     https://code.uplex.de
gitlab.setup        stefan audiowmark 0.6.2
revision            1

categories          audio
maintainers         {@aeiouaeiouaeiouaeiouaeiouaeiou outlook.com:aeioudev} openmaintainer
license             GPL-3+

description         Audiowmark is an Open Source (GPL) solution for \
                    audio watermarking.

long_description    {*}${description} A sound file is read by the software, \
                    and a 128-bit message is stored in a watermark in the \
                    output sound file. For human listeners, the files typically \
                    sound the same. However, the 128-bit message can be \
                    retrieved from the output sound file. The process of \
                    retrieving the message does not need the original audio \
                    file (blind decoding). Internally, audiowmark is using \
                    the patchwork algorithm to hide the data in the spectrum \
                    of the audio file.

homepage            https://uplex.de/audiowmark/

checksums           rmd160  d2a0f274efa84f897d51d17f7142ab222c8383b4 \
                    sha256  8c88a6b2a5a6d51d67fa3d76d85baf9405d6fe2bf559d520ca9e0e3b2433bef7 \
                    size    104386

depends_build       port:gettext \
                    port:pkgconfig \
                    port:autoconf-archive

depends_lib         port:fftw-3-single \
                    path:lib/libavcodec.dylib:ffmpeg \
                    port:libsndfile \
                    port:libgcrypt \
                    port:libzita-resampler \
                    port:mpg123

patchfiles          patch-missing-errno.diff \
                    patch-cinttypes.diff

compiler.cxx_standard \
                    2014
# do not use Xcode Clang due to failing buildbots
compiler.blacklist  {clang}

# videowmark always requires ffmpeg libraries
configure.args      --with-ffmpeg

use_autoreconf      yes

livecheck.url       https://code.uplex.de/stefan/${name}/tags
livecheck.regex     tags/(\\d+(?:\\.\\d+)*)
