shairport-sync 2.6 (new formula)
Closes Homebrew/homebrew#44666. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
81bd038d65
commit
a9ba7f09bb
1 changed files with 39 additions and 0 deletions
39
Formula/shairport-sync.rb
Normal file
39
Formula/shairport-sync.rb
Normal file
|
@ -0,0 +1,39 @@
|
|||
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.6.tar.gz"
|
||||
sha256 "d04036241e5a811240c43a3ddfb05a119a6043e8c5f1f354872a88e6cbdaef07"
|
||||
head "https://github.com/mikebrady/shairport-sync.git"
|
||||
|
||||
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-soxr
|
||||
--with-configfiles=no
|
||||
--with-piddir=#{prefix}
|
||||
--prefix=#{prefix}
|
||||
--mandir=#{man}
|
||||
]
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
test_cmd = "#{bin}/shairport-sync -V"
|
||||
assert_match(/openssl-ao-soxr/, shell_output(test_cmd, 1))
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue