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

gitlab.instance     https://code.uplex.de
gitlab.setup        stefan audiowmark 0.6.5
revision            0

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  5a4490ff7ce0f90b1d78461be1fe16e65afa0482 \
                    sha256  6480f7db8cbb8db415344c5e92faf0d31425a77c745b0ce500bf2941c9a11c13 \
                    size    144685

set ffmpeg_ver      7

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

depends_lib         port:fftw-3-single \
                    port:ffmpeg${ffmpeg_ver} \
                    port:libsndfile \
                    port:libgcrypt \
                    port:libzita-resampler \
                    port:mpg123

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

# configure: error: Package requirements (libavcodec libavformat
# libavutil libswresample) were not met
configure.pkg_config_path \
                    ${prefix}/libexec/ffmpeg${ffmpeg_ver}/lib/pkgconfig

# 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+)*)
