blob: 3b92717f0bf5b202f8b87abe2d97b467378db01b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 | 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
 |