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/'
|
2013-06-14 20:19:00 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/liblo/liblo/0.27/liblo-0.27.tar.gz'
|
|
|
|
sha1 'bbd92eb9ab7316ee3f75b6b887b6f853b848c1e5'
|
2010-08-06 21:56:01 +00:00
|
|
|
|
2013-04-08 17:40:33 +00:00
|
|
|
head 'git://liblo.git.sourceforge.net/gitroot/liblo/liblo'
|
|
|
|
|
|
|
|
if build.head?
|
|
|
|
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
|