af417bdca6
Closes Homebrew/homebrew#36661. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
28 lines
721 B
Ruby
28 lines
721 B
Ruby
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
|