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

# Undefined symbols for architecture x86_64:
# "typeinfo for std::bad_variant_access"
legacysupport.use_mp_libcxx yes

name                libopenmpt
version             0.7.6
revision            0
categories          audio devel multimedia
license             BSD
maintainers         nomaintainer
description         Library to decode tracked music files
long_description    ${name} is a cross-platform C++ and C library to decode \
                    tracked music files (modules) into a raw PCM audio stream.
homepage            https://lib.openmpt.org

master_sites        https://lib.openmpt.org/files/libopenmpt/src/
distname            ${name}-${version}+release.autotools
checksums           rmd160  d81806afe3f25a05864d2e5a0b0d8a6b22a88e71 \
                    sha256  162d72a306bb2e114c24fa25267d0d0a0ac16f39fd95a5c0dfc75a666ee5e4f5 \
                    size    1652544
livecheck.url       https://lib.openmpt.org/files/libopenmpt/src/

depends_build-append \
                    port:pkgconfig
depends_lib-append  port:flac \
                    port:libogg \
                    port:libsndfile \
                    port:libvorbis \
                    port:mpg123 \
                    port:portaudio \
                    port:zlib

compiler.cxx_standard 2017

configure.args-append \
                    --disable-dependency-tracking \
                    --disable-silent-rules
