homebrew-core/Formula/liblo.rb
2015-11-19 17:03:53 +01:00

44 lines
1.3 KiB
Ruby

class Liblo < Formula
desc "Lightweight Open Sound Control implementation"
homepage "http://liblo.sourceforge.net/"
url "https://downloads.sourceforge.net/project/liblo/liblo/0.28/liblo-0.28.tar.gz"
sha256 "da94a9b67b93625354dd89ff7fe31e5297fc9400b6eaf7378c82ee1caf7db909"
bottle do
cellar :any
revision 1
sha256 "be6b11c3e18ae25490abae43ae12e2fbd87fd8e398b53e817dafd5c3ba494c11" => :el_capitan
sha256 "7abf46af9b74b666397be1b55431992e7590ad6863ef78a2d4c5610686bc53c2" => :yosemite
sha256 "4377ab68d1648e544fcc84344f912d9541c0d6b776633692e8ced9507e76f595" => :mavericks
sha256 "4dac2be4653e7256704cddf2b78e8246f622a6d577ea226dd40483d91fec2cfd" => :mountain_lion
end
head do
url "git://liblo.git.sourceforge.net/gitroot/liblo/liblo"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
option "enable-ipv6", "Compile with support for ipv6"
option :universal
def install
ENV.universal_binary if build.universal?
args = %W[--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}]
args << "--enable-ipv6" if build.include? "enable-ipv6"
if build.head?
system "./autogen.sh", *args
else
system "./configure", *args
end
system "make", "install"
end
end