2010-08-06 21:56:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Liblo < Formula
|
2010-08-06 21:56:01 +00:00
|
|
|
homepage 'http://liblo.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/liblo/liblo/0.28/liblo-0.28.tar.gz'
|
2014-02-05 11:06:34 +00:00
|
|
|
sha1 '949d5f0c9919741c67602514786b9c7366fa001b'
|
2010-08-06 21:56:01 +00:00
|
|
|
|
2014-03-24 12:51:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "11823b01fdf501fd10ddce3574fd195468f3a841" => :mavericks
|
|
|
|
sha1 "d28a2efa91b7b38b252319e4f8aac0d0d5fc8d4a" => :mountain_lion
|
|
|
|
sha1 "882d2356ab21ab2258f7c3a9ee0d89f99053681d" => :lion
|
|
|
|
end
|
|
|
|
|
2013-09-22 01:47:12 +00:00
|
|
|
head do
|
|
|
|
url 'git://liblo.git.sourceforge.net/gitroot/liblo/liblo'
|
2013-04-08 17:40:33 +00:00
|
|
|
|
|
|
|
depends_on 'autoconf' => :build
|
|
|
|
depends_on 'automake' => :build
|
|
|
|
depends_on 'libtool' => :build
|
|
|
|
end
|
|
|
|
|
2013-01-28 00:09:43 +00:00
|
|
|
option "enable-ipv6", "Compile with support for ipv6"
|
2013-04-08 18:03:53 +00:00
|
|
|
option :universal
|
2013-01-28 00:09:43 +00:00
|
|
|
|
2010-08-06 21:56:01 +00:00
|
|
|
def install
|
2013-04-08 18:03:53 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
2013-01-28 00:09:43 +00:00
|
|
|
args = %W[--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}]
|
|
|
|
|
|
|
|
args << "--enable-ipv6" if build.include? "enable-ipv6"
|
|
|
|
|
2013-04-08 17:40:33 +00:00
|
|
|
if build.head?
|
|
|
|
system "./autogen.sh", *args
|
|
|
|
else
|
|
|
|
system "./configure", *args
|
|
|
|
end
|
|
|
|
|
2010-08-06 21:56:01 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|