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/3.0.2.tar.gz"
|
|
sha256 "b348b9b3cf3994d9222430bc514c94a22f2ed173956fdb097f3354cdba8fd198"
|
|
head "https://github.com/mikebrady/shairport-sync.git", :branch => "development"
|
|
|
|
bottle do
|
|
sha256 "e7fbbae46ebeda895bc0fcfe586a1e7db8032e357022b2b1365142cbf9c6d182" => :sierra
|
|
sha256 "d4675e0a1d3a049404612ed2acb7fab8586603abf509fa651e2b3d65a1afb1c1" => :el_capitan
|
|
sha256 "d85e66ef245af3b3dad068782e22bef8630fbb257523c1be06c3ec3b58fe1b6e" => :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
|