2013-09-27 20:03:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Moc < Formula
|
|
|
|
homepage 'http://moc.daper.net'
|
2014-03-17 02:35:21 +00:00
|
|
|
|
|
|
|
stable do
|
|
|
|
url "http://ftp.daper.net/pub/soft/moc/unstable/moc-2.5.0-beta1.tar.bz2"
|
2014-10-06 20:17:41 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "1db850d8a502eb58a2f6f0f927b0f853a8964f62" => :mavericks
|
|
|
|
sha1 "bf52427f83ca16498e5470f9d8bad9e5fd71c0f0" => :mountain_lion
|
|
|
|
sha1 "4079ee34b2ce7f96cbe2830711a3569d65f7c600" => :lion
|
|
|
|
end
|
|
|
|
|
2014-03-17 02:35:21 +00:00
|
|
|
sha1 "4030a1fa5c7cfef06909c54d8c7a1fbb93f23caa"
|
|
|
|
|
|
|
|
# Patches up to r2544 (HEAD at 2013-08-13)
|
|
|
|
patch :p0 do
|
2014-04-26 19:48:32 +00:00
|
|
|
url "https://gist.githubusercontent.com/toroidal-code/6310844/raw/23c460144b64040eb6c3117693fd7e129a462b26/ffmpeg-patch.diff"
|
2014-03-17 02:35:21 +00:00
|
|
|
sha1 "55d64d17b320b391a5c11f502417fa8353498b37"
|
|
|
|
end
|
|
|
|
end
|
2014-09-29 22:14:34 +00:00
|
|
|
revision 1
|
2014-03-17 02:35:21 +00:00
|
|
|
|
2013-09-27 20:03:08 +00:00
|
|
|
head 'svn://daper.net/moc/trunk'
|
|
|
|
|
|
|
|
option 'with-ncurses', 'Build with wide character support.'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'gettext' => :build
|
|
|
|
depends_on 'autoconf' => :build
|
|
|
|
depends_on 'automake' => :build
|
|
|
|
depends_on 'libtool' => :build
|
|
|
|
depends_on 'berkeley-db'
|
|
|
|
depends_on 'jack'
|
|
|
|
depends_on 'ffmpeg' => :recommended
|
|
|
|
depends_on 'mad' => :optional
|
|
|
|
depends_on 'flac' => :optional
|
|
|
|
depends_on 'speex' => :optional
|
|
|
|
depends_on 'musepack' => :optional
|
|
|
|
depends_on 'libsndfile' => :optional
|
|
|
|
depends_on 'wavpack' => :optional
|
|
|
|
depends_on 'faad2' => :optional
|
|
|
|
depends_on 'timidity' => :optional
|
|
|
|
depends_on 'libmagic' => :optional
|
2014-02-28 17:16:55 +00:00
|
|
|
depends_on 'homebrew/dupes/ncurses' => :optional
|
2013-09-27 20:03:08 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "autoreconf", "-i" # required to fix ffmpeg issues (updated ffmpeg.m4)
|
|
|
|
system "./configure", "--disable-debug", "--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
You must start the jack daemon prior to running mocp.
|
|
|
|
If you need wide-character support in the player, for example
|
|
|
|
with Chinese characters, you can install using
|
|
|
|
--with-ncurses
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|