diff options
| author | David Aurelio | 2015-02-09 00:42:01 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-09 12:39:15 +0000 |
| commit | aad95388ba7ffdd3f298747b5af277d0a0a62b55 (patch) | |
| tree | 916ef9bf9121073a34cdfcbbbddb901bd652ba99 | |
| parent | 7ee315fceb37114600c18cee3a1e73bd9e5e759b (diff) | |
| download | homebrew-aad95388ba7ffdd3f298747b5af277d0a0a62b55.tar.bz2 | |
libupnp: add option for IPv6 support.
Closes #36661.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/libupnp.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/libupnp.rb b/Library/Formula/libupnp.rb index 75b13ebd5..3b92717f0 100644 --- a/Library/Formula/libupnp.rb +++ b/Library/Formula/libupnp.rb @@ -12,9 +12,17 @@ class Libupnp < Formula sha1 "09c01a27803cc08266a601e401b9556f87e760d3" => :mavericks end + option "with-ipv6", "Enable IPv6 support" + def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}" + args = ["--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}" + ] + + args << "--enable-ipv6" if build.with? "ipv6" + + system "./configure", *args system "make install" end end |
