Created
October 4, 2016 18:40
-
-
Save alexzielenski/cf6c8187edfb38a0124de3cc2e1d960e to your computer and use it in GitHub Desktop.
Home-brew formula for shairport-sync 2.8.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.5.tar.gz" | |
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-stdout | |
--with-metadata | |
--with-pipe | |
--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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment