PageRenderTime 51ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/libupnp.rb

https://github.com/denji/homebrew
Ruby | 28 lines | 22 code | 6 blank | 0 comment | 1 complexity | 84264b14dea50389bc57e55718c04914 MD5 | raw file
  1. require 'formula'
  2. class Libupnp < Formula
  3. homepage 'http://pupnp.sourceforge.net/'
  4. url 'https://downloads.sourceforge.net/project/pupnp/pupnp/libUPnP%201.6.19/libupnp-1.6.19.tar.bz2'
  5. sha1 'ee9e16ff42808521b62b7fc664fc9cba479ede88'
  6. bottle do
  7. cellar :any
  8. revision 1
  9. sha1 "52432174b87b12486f78f8d4c45d0ac7b23e11eb" => :yosemite
  10. sha1 "09c01a27803cc08266a601e401b9556f87e760d3" => :mavericks
  11. end
  12. option "with-ipv6", "Enable IPv6 support"
  13. def install
  14. args = ["--disable-debug",
  15. "--disable-dependency-tracking",
  16. "--prefix=#{prefix}"
  17. ]
  18. args << "--enable-ipv6" if build.with? "ipv6"
  19. system "./configure", *args
  20. system "make install"
  21. end
  22. end