PageRenderTime 44ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/liblo.rb

https://github.com/lutfidemirci/homebrew
Ruby | 36 lines | 27 code | 9 blank | 0 comment | 5 complexity | 7f8daea69cec266f7fcbbf07daf86b0b 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.26/liblo-0.26.tar.gz'
  5. sha1 '21942c8f19e9829b5842cb85352f98c49dfbc823'
  6. head 'git://liblo.git.sourceforge.net/gitroot/liblo/liblo'
  7. if build.head?
  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