51 lines
1.5 KiB
Ruby
51 lines
1.5 KiB
Ruby
class ShairportSync < Formula
|
|
desc "AirTunes emulator. Shairport Sync adds multi-room capability."
|
|
homepage "https://github.com/mikebrady/shairport-sync"
|
|
url "https://github.com/mikebrady/shairport-sync/archive/2.8.6.tar.gz"
|
|
sha256 "2e73416ac8fdda1657034afaa143f1710852ebed06e0aa43dafc2b7dc5eb653d"
|
|
head "https://github.com/mikebrady/shairport-sync.git", :branch => "development"
|
|
|
|
bottle do
|
|
sha256 "a04c78637cd7e8293a864f841b9e7ce62ee42458a5d97fd0eff0f2a2d90f4f9f" => :sierra
|
|
sha256 "d2f5d7c32ceb9e726aa3caff7364b1f0c450509e10d3e2cbaf50d7c4f19a209a" => :el_capitan
|
|
sha256 "9d9a2bcd15d54cdaefe04f4f1a585f6bb4aef311508dae22a1e16e045d64f585" => :yosemite
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "openssl"
|
|
depends_on "popt"
|
|
depends_on "libsoxr"
|
|
depends_on "libao"
|
|
depends_on "libdaemon"
|
|
depends_on "libconfig"
|
|
|
|
def install
|
|
system "autoreconf", "-fvi"
|
|
args = %W[
|
|
--with-os-type=darwin
|
|
--with-ssl=openssl
|
|
--with-dns_sd
|
|
--with-ao
|
|
--with-stdout
|
|
--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", 1)
|
|
assert_match "OpenSSL-ao-stdout-pipe-soxr-metadata", output
|
|
end
|
|
end
|