c52bda6ea6
Closes #44731. Signed-off-by: Rui Chen <chenrui333@gmail.com>
55 lines
1.6 KiB
Ruby
55 lines
1.6 KiB
Ruby
class ShairportSync < Formula
|
|
desc "AirTunes emulator that adds multi-room capability"
|
|
homepage "https://github.com/mikebrady/shairport-sync"
|
|
url "https://github.com/mikebrady/shairport-sync/archive/3.3.2.tar.gz"
|
|
sha256 "a8f580fa8eb71172f6237c0cdbf23287b27f41f5399f5addf8cd0115a47a4b2b"
|
|
revision 2
|
|
head "https://github.com/mikebrady/shairport-sync.git", :branch => "development"
|
|
|
|
bottle do
|
|
sha256 "e4534f26915103639b8b96a6f92d39ab677e9235ccfd7703f1b95268abae1ff6" => :catalina
|
|
sha256 "cbd58969da96e6194b0807f6001ec281470f4e802d8b5de9238ab7d0d4db5146" => :mojave
|
|
sha256 "2f886c46813944567b8242df9216d8966041b820d0a21140f4ff2e8f4e0c3ec2" => :high_sierra
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libao"
|
|
depends_on "libconfig"
|
|
depends_on "libdaemon"
|
|
depends_on "libsoxr"
|
|
depends_on "openssl@1.1"
|
|
depends_on "popt"
|
|
depends_on "pulseaudio"
|
|
|
|
def install
|
|
system "autoreconf", "-fvi"
|
|
args = %W[
|
|
--with-os=darwin
|
|
--with-libdaemon
|
|
--with-ssl=openssl
|
|
--with-dns_sd
|
|
--with-ao
|
|
--with-stdout
|
|
--with-pa
|
|
--with-pipe
|
|
--with-soxr
|
|
--with-metadata
|
|
--with-piddir=#{var}/run
|
|
--sysconfdir=#{etc}/shairport-sync
|
|
--prefix=#{prefix}
|
|
]
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
def post_install
|
|
(var/"run").mkpath
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/shairport-sync -V")
|
|
assert_match "libdaemon-OpenSSL-dns_sd-ao-pa-stdout-pipe-soxr-metadata", output
|
|
end
|
|
end
|