Skip to content

Instantly share code, notes, and snippets.

@JJK801
Forked from shtirlic/shairport-sync.rb
Last active May 26, 2016 09:36
Show Gist options
  • Save JJK801/7b383e7b9e601da92f625e5a61238262 to your computer and use it in GitHub Desktop.
Save JJK801/7b383e7b9e601da92f625e5a61238262 to your computer and use it in GitHub Desktop.
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.tar.gz"
sha256 "d4bedbd2f8d229fdc1f541fbac1f20cf1f471693c243784cad71ed1edafbb882"
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-pipe
--with-soxr
--with-configfiles=no
--with-piddir=#{prefix}
--prefix=#{prefix}
--mandir=#{man}
--with-metadata
]
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