# -*- 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 deweller switchaudio-osx 1.2.2 categories audio platforms darwin maintainers {i0ntempest @i0ntempest} openmaintainer license MIT description A command-line utility to switch the audio source on Mac OS X. long_description ${description} checksums rmd160 62d8e1d8ff51671e9473d6866dce672f604cc200 \ sha256 09d6e9167ed55df08f778b97d2cd925793927cbfea778d70caa8e5d939c66ba1 \ size 22138 # use previous version for older systems https://trac.macports.org/ticket/68478 if {${os.major} < 21} { github.setup deweller switchaudio-osx 1.1.0 checksums rmd160 852ff76a0ee2157de90262ce508f35d74c94cac6 \ sha256 7a3a966ea40ad0c6219261e09441e0e836f58115564ed2d1e235eaac50c2770e \ size 20595 notes-append "MacPorts installs a previous compatible version of ${name} on this older system." } xcode.project AudioSwitcher.xcodeproj xcode.configuration Release xcode.build.settings SYMROOT=build xcode.target SwitchAudioSource destroot { copy ${worksrcpath}/build/Release/SwitchAudioSource ${destroot}${prefix}/bin ln -s ${prefix}/bin/SwitchAudioSource ${destroot}${prefix}/bin/switch-audio-source } test.run yes test.cmd ${worksrcpath}/build/Release/SwitchAudioSource test.target test.args -a