diff options
| author | Adam Malcontenti-Wilson | 2013-07-01 02:11:31 +1000 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-01 08:22:18 -0700 |
| commit | f9e29b63090b40982cbf71620deea0332a424ac7 (patch) | |
| tree | 2b3c5fde6047e82e7cdc79e345497267cb4c00e2 | |
| parent | d1970c66846bf278fcb7e2ded9906e35e75b9a3b (diff) | |
| download | homebrew-f9e29b63090b40982cbf71620deea0332a424ac7.tar.bz2 | |
upnp-router-control 0.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/upnp-router-control.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/upnp-router-control.rb b/Library/Formula/upnp-router-control.rb new file mode 100644 index 000000000..3f8f0e3f8 --- /dev/null +++ b/Library/Formula/upnp-router-control.rb @@ -0,0 +1,37 @@ +require 'formula' + +class UpnpRouterControl < Formula + homepage 'https://launchpad.net/upnp-router-control' + url 'https://launchpad.net/upnp-router-control/trunk/0.2/+download/upnp-router-control-0.2.tar.gz' + sha1 '4d6b22430f784260fccb2f70c27d0a428b9a753a' + head 'bzr://lp:upnp-router-control' + + depends_on 'pkg-config' => :build + depends_on 'intltool' => :build + depends_on 'gettext' + depends_on 'gtk+' + depends_on 'gupnp' + depends_on 'gssdp' + depends_on 'curl' => :optional + depends_on :x11 + + if build.head? + depends_on :automake + depends_on :libtool + end + + def install + system "./autogen.sh" if build.head? + + # Recent gupnp pc files don't export symbols from gssdp + # Bug Ref: https://bugs.launchpad.net/upnp-router-control/+bug/1100236 + if not build.head? + ENV.append_to_cflags %x[pkg-config --cflags gssdp-1.0].chomp + ENV['LIBS'] = %x[pkg-config --libs gssdp-1.0].chomp + end + + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end +end |
