PageRenderTime 53ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/Library/Formula/liblo.rb

https://github.com/phatblat/homebrew
Ruby | 36 lines | 27 code | 9 blank | 0 comment | 4 complexity | 69be1b1d5a1f9eada92ced7130b28d21 MD5 | raw file
  1. require 'formula'
  2. class Liblo < Formula
  3. homepage 'http://liblo.sourceforge.net/'
  4. url 'http://downloads.sourceforge.net/project/liblo/liblo/0.28/liblo-0.28.tar.gz'
  5. sha1 '949d5f0c9919741c67602514786b9c7366fa001b'
  6. head do
  7. url 'git://liblo.git.sourceforge.net/gitroot/liblo/liblo'
  8. depends_on 'autoconf' => :build
  9. depends_on 'automake' => :build
  10. depends_on 'libtool' => :build
  11. end
  12. option "enable-ipv6", "Compile with support for ipv6"
  13. option :universal
  14. def install
  15. ENV.universal_binary if build.universal?
  16. args = %W[--disable-debug
  17. --disable-dependency-tracking
  18. --prefix=#{prefix}]
  19. args << "--enable-ipv6" if build.include? "enable-ipv6"
  20. if build.head?
  21. system "./autogen.sh", *args
  22. else
  23. system "./configure", *args
  24. end
  25. system "make install"
  26. end
  27. end