37 lines
1.3 KiB
Ruby
37 lines
1.3 KiB
Ruby
class Pianobar < Formula
|
|
desc "Command-line player for https://pandora.com"
|
|
homepage "https://github.com/PromyLOPh/pianobar/"
|
|
url "https://6xq.net/pianobar/pianobar-2017.08.30.tar.bz2"
|
|
sha256 "ec14db6cf1a7dbc1d8190b5ca0d256021e970587bcdaeb23904d4bca71a04674"
|
|
head "https://github.com/PromyLOPh/pianobar.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "e4d59eee9e6d6d6b78b5bd2541a7faa23beda9edbe9179678cb46ca006e616f0" => :high_sierra
|
|
sha256 "327b53a2b9e2fd6824d0c854b5ea411b29b07ba5804b443c453aee05a86e36d4" => :sierra
|
|
sha256 "ea582da39bf90a0122d74678cdf82349af53adcbab48ff5bd2d57c64ca16150f" => :el_capitan
|
|
sha256 "41d44c9f1680fa404639ae9b907df30bbb019b1628454e8d77eba95af6a1a883" => :yosemite
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libao"
|
|
depends_on "mad"
|
|
depends_on "faad2"
|
|
depends_on "gnutls"
|
|
depends_on "libgcrypt"
|
|
depends_on "json-c"
|
|
depends_on "ffmpeg"
|
|
|
|
def install
|
|
# Discard Homebrew's CFLAGS as Pianobar reportedly doesn't like them
|
|
ENV["CFLAGS"] = "-O2 -DNDEBUG " +
|
|
# Or it doesn't build at all
|
|
"-std=c99 " +
|
|
# build if we aren't /usr/local'
|
|
"#{ENV.cppflags} #{ENV.ldflags}"
|
|
system "make", "PREFIX=#{prefix}"
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
|
|
prefix.install "contrib"
|
|
end
|
|
end
|