homebrew-core/Formula/audacious.rb
2017-08-20 01:44:43 -07:00

96 lines
2.7 KiB
Ruby

class Audacious < Formula
desc "Free and advanced audio player based on GTK+"
homepage "http://audacious-media-player.org"
stable do
url "http://distfiles.audacious-media-player.org/audacious-3.9.tar.bz2"
sha256 "2d8044673ac786d71b08004f190bbca368258bf60e6602ffc0d9622835ccb05e"
resource "plugins" do
url "http://distfiles.audacious-media-player.org/audacious-plugins-3.9.tar.bz2"
sha256 "8bf7f21089cb3406968cc9c71307774aee7100ec4607f28f63cf5690d5c927b8"
end
end
bottle do
sha256 "2f0e97802256bc5949e6006475d63c41d480b3ae23df2eba221fa519da0eb096" => :sierra
sha256 "b4dde216d4f4bd626d80b0beacc78256d43b0592784e004533fc05d80e057018" => :el_capitan
sha256 "e99d56f74e804f29d710da15a928b6290a4ce50b305b48349aa5624faeaca94a" => :yosemite
end
head do
url "https://github.com/audacious-media-player/audacious.git"
resource "plugins" do
url "https://github.com/audacious-media-player/audacious-plugins.git"
end
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "libtool" => :build
end
depends_on "gettext" => :build
depends_on "make" => :build
depends_on "pkg-config" => :build
depends_on "faad2"
depends_on "ffmpeg"
depends_on "flac"
depends_on "fluid-synth"
depends_on "glib"
depends_on "lame"
depends_on "libbs2b"
depends_on "libcue"
depends_on "libnotify"
depends_on "libsamplerate"
depends_on "libsoxr"
depends_on "libvorbis"
depends_on "mpg123"
depends_on "neon"
depends_on "sdl2"
depends_on "wavpack"
depends_on :python if MacOS.version <= :snow_leopard
depends_on "qt" => :recommended
depends_on "gtk+" => :optional
depends_on "jack" => :optional
depends_on "libmms" => :optional
depends_on "libmodplug" => :optional
def install
args = %W[
--prefix=#{prefix}
--disable-coreaudio
--enable-mac-media-keys
--disable-mpris2
]
args << "--enable-qt" if build.with? "qt"
args << "--disable-gtk" if build.without? "gtk+"
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make", "install"
resource("plugins").stage do
ENV.prepend_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig"
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make", "install"
end
end
def caveats; <<-EOS.undent
audtool does not work due to a broken dbus implementation on macOS, so is not built
coreaudio output has been disabled as it does not work (Fails to set audio unit input property.)
GTK+ gui is not built by default as the QT gui has better integration with macOS, and when built, the gtk gui takes precedence
EOS
end
test do
system bin/"audacious", "--help"
end
end