# -*- 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 cmake 1.1 PortGroup github 1.0 github.setup complexlogic rsgain 3.5.2 v revision 1 categories audio platforms {darwin all} license GPL-2+ maintainers {gmail.com:lmkrawiec @lmkra} \ openmaintainer description Really simple gain long_description ReplayGain 2.0 command line utility \ rsgain applies loudness metadata tags to your files, \ while leaving the audio stream untouched. \ A ReplayGain-compatible player will dynamically adjust \ the volume of your tagged files during playback. github.tarball_from releases distname ${github.project}-${github.version}-source use_xz yes worksrcdir ${github.project}-${github.version} checksums rmd160 c4152e8b4d7534b82e0c1c15821bbf1241616f90 \ sha256 4f701521fd270b60f536a12aeb64e09bb87f24c30d576231d2fda3b6cc8c697e \ size 51204 depends_build-append path:bin/pkg-config:pkgconfig depends_lib-append port:ffmpeg \ port:inih \ port:libebur128 \ port:taglib configure.args-append -DUSE_STD_FORMAT=ON compiler.cxx_standard 2020 # Use libfmt9 until this is fixed: # https://github.com/complexlogic/rsgain/issues/126 variant fmt description "Build with libfmt" { set libfmt_version 9 depends_lib-append port:libfmt${libfmt_version} configure.pkg_config_path ${prefix}/lib/libfmt${libfmt_version}/pkgconfig configure.args-replace -DUSE_STD_FORMAT=ON -DUSE_STD_FORMAT=OFF } # Notice, that gcc builds this without libfmt even on macOS 10.6. # Clangs, however, do not. For now, just make +fmt default. if {${os.platform} eq "darwin" && ${os.major} < 23} { default_variants-append +fmt }