2010-01-31 14:27:29 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libmpdclient < Formula
|
2013-11-01 12:36:45 +00:00
|
|
|
homepage 'http://www.musicpd.org/libs/libmpdclient/'
|
|
|
|
url 'http://www.musicpd.org/download/libmpdclient/2/libmpdclient-2.9.tar.gz'
|
|
|
|
sha1 'fe40dcb54f79648a17b68c93add2e601077a9311'
|
2011-09-21 10:39:51 +00:00
|
|
|
|
2014-05-01 21:08:51 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "ef4d88441280126e529c9b9297af502816ef920c" => :mavericks
|
|
|
|
sha1 "2e7c01d9185c23bc88f1e04aab7b70368decb17f" => :mountain_lion
|
|
|
|
sha1 "8dba6c7353ac4a88d21a52af3ce36ba1a558aed9" => :lion
|
|
|
|
end
|
|
|
|
|
2013-10-25 02:29:13 +00:00
|
|
|
head do
|
|
|
|
url 'git://git.musicpd.org/master/libmpdclient.git'
|
|
|
|
|
2014-06-02 02:38:17 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2013-10-25 02:29:13 +00:00
|
|
|
end
|
|
|
|
|
2013-11-01 12:36:45 +00:00
|
|
|
depends_on 'doxygen' => :build
|
|
|
|
|
2012-08-10 05:14:51 +00:00
|
|
|
option :universal
|
2010-01-31 14:27:29 +00:00
|
|
|
|
|
|
|
def install
|
2013-10-25 02:29:13 +00:00
|
|
|
inreplace 'autogen.sh', 'libtoolize', 'glibtoolize'
|
|
|
|
system "./autogen.sh" if build.head?
|
|
|
|
|
2012-08-10 05:14:51 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-01-31 14:27:29 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|