mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
66 lines
2.6 KiB
Tcl
66 lines
2.6 KiB
Tcl
# -*- 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
|
|
PortGroup legacysupport 1.1
|
|
|
|
# On <10.15 built-in libc++ has no support for std::filesystem
|
|
legacysupport.newest_darwin_requires_legacy \
|
|
18
|
|
legacysupport.use_mp_libcxx yes
|
|
|
|
github.setup complexlogic rsgain 3.7 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 31c6af66dc0c922c7b15ebe86fed2671eda4acdd \
|
|
sha256 54037f73ba6682f9b71b2265275f5f89de50b90b12d5af512287c60d9d52c9cc \
|
|
size 52012
|
|
|
|
depends_build-append path:bin/pkg-config:pkgconfig
|
|
|
|
depends_lib-append path:lib/libavcodec.dylib:ffmpeg \
|
|
port:inih \
|
|
port:libebur128 \
|
|
port:taglib
|
|
|
|
configure.args-append -DUSE_STD_FORMAT=ON
|
|
|
|
compiler.cxx_standard 2020
|
|
|
|
# Use libfmt11 since std::print is only available in latest versions of macOS
|
|
variant fmt description "Build with libfmt" {
|
|
set libfmt_version 11
|
|
|
|
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
|
|
}
|