/Library/Formula/libupnp.rb
Ruby | 28 lines | 22 code | 6 blank | 0 comment | 1 complexity | 84264b14dea50389bc57e55718c04914 MD5 | raw file
- require 'formula'
- class Libupnp < Formula
- homepage 'http://pupnp.sourceforge.net/'
- url 'https://downloads.sourceforge.net/project/pupnp/pupnp/libUPnP%201.6.19/libupnp-1.6.19.tar.bz2'
- sha1 'ee9e16ff42808521b62b7fc664fc9cba479ede88'
- bottle do
- cellar :any
- revision 1
- sha1 "52432174b87b12486f78f8d4c45d0ac7b23e11eb" => :yosemite
- sha1 "09c01a27803cc08266a601e401b9556f87e760d3" => :mavericks
- end
- option "with-ipv6", "Enable IPv6 support"
- def install
- args = ["--disable-debug",
- "--disable-dependency-tracking",
- "--prefix=#{prefix}"
- ]
- args << "--enable-ipv6" if build.with? "ipv6"
- system "./configure", *args
- system "make install"
- end
- end