homebrew-core/Formula/shairport-sync.rb
2017-08-23 04:04:34 -07:00

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/3.1.1.tar.gz"
sha256 "731e23f12ca1d645989843a15259ea0bf4d18adea94cf55f6fcc63d7b55fb53b"
head "https://github.com/mikebrady/shairport-sync.git", :branch => "development"
bottle do
sha256 "28bd467fa9bf0f788e27f86b0a8098636012e217263c8c57b9c31465a26d75d2" => :sierra
sha256 "16f102727e9fa1a627bd2739c1426a9bfed0598e703c4db28dba427f16863821" => :el_capitan
sha256 "e719edc9d175cfb2de7086e3c5b5d58f321dce28cd470e1cf377e0acead5218e" => :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=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