# -*- 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 github 1.0 PortGroup xcode 1.0 github.setup briankendall proxy-audio-device 1.0.6 v revision 0 github.tarball_from archive categories audio maintainers {@janosch mailbox.org:janosch1} openmaintainer license public-domain description A HAL virtual audio driver for macOS that sends all output to another audio device. long_description A HAL virtual audio driver for macOS that sends all output to another audio device. \ It's main purpose is to make it possible to use macOS's system volume controls such \ as the volume menu bar icon or volume keyboard keys to change the volume of external \ audio interfaces that don't allow it. It might be useful for something else too. xcode.scheme {Proxy Audio Device Settings} xcode.configuration Release xcode.destroot.settings CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO xcode.destroot.type application # Skip build phase because building is also done in destroot phase build {} # xcode PortGroup sets the DerivedData to /var/root/... which is not writeable. This fixes it. destroot.pre_args-append -derivedDataPath ./DerivedData # Install audio driver post-destroot { xinstall -d ${destroot}/Library/Audio/Plug-Ins/HAL move ${destroot}${applications_dir}/ProxyAudioDevice.driver ${destroot}/Library/Audio/Plug-Ins/HAL } # proxy-audio-device violates the mtree layout by placing the driver in # /Library/Audio/Plug-Ins/HAL destroot.violate_mtree yes post-activate { system "sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod" } post-deactivate { system "sudo launchctl kickstart -kp system/com.apple.audio.coreaudiod" } checksums rmd160 199394d2e9df4ab1ca9b07ddf2b5a625fb395631 \ sha256 4289c311321b9c5f439450185464b9ab5e8582db2a64ada2295f8b8bba79784d \ size 1741755