/Library/Formula/liblo.rb
Ruby | 36 lines | 27 code | 9 blank | 0 comment | 4 complexity | 69be1b1d5a1f9eada92ced7130b28d21 MD5 | raw file
- require 'formula'
- class Liblo < Formula
- homepage 'http://liblo.sourceforge.net/'
- url 'http://downloads.sourceforge.net/project/liblo/liblo/0.28/liblo-0.28.tar.gz'
- sha1 '949d5f0c9919741c67602514786b9c7366fa001b'
- 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