upnp-router-control: compile against newer gupnp

This commit is contained in:
Adam Vandenberg 2014-05-11 09:18:19 -07:00
parent 90079b65ba
commit aa9cfcb60e

View file

@ -22,6 +22,9 @@ class UpnpRouterControl < Formula
depends_on 'curl' => :optional
depends_on :x11
# Per Debian, patch to compile against newer gupnp
patch :DATA
def install
system "./autogen.sh" if build.head?
@ -37,3 +40,34 @@ class UpnpRouterControl < Formula
system "make", "install"
end
end
__END__
Description: Add -lm to LDADD to fix libm underlinkage.
Debian-Bug: http://bugs.debian.org/713706
Author: Barry deFreese <bdefreese@debian.org>
Index: upnp-router-control-0.2/src/Makefile.am
===================================================================
--- upnp-router-control-0.2.orig/src/Makefile.am 2010-10-14 18:02:51.000000000 -0400
+++ upnp-router-control-0.2/src/Makefile.am 2013-07-13 10:10:02.406318866 -0400
@@ -20,7 +20,7 @@
urc-graph.c \
urc-graph.h
-upnp_router_control_LDADD = @GTK_LIBS@ @INTLLIBS@ @GUPNP_LIBS@ @LIBCURL_LIBS@
+upnp_router_control_LDADD = @GTK_LIBS@ @INTLLIBS@ @GUPNP_LIBS@ @LIBCURL_LIBS@ -lm
MAINTAINERCLEANFILES = \
*~ \
Index: upnp-router-control-0.2/src/Makefile.in
===================================================================
--- upnp-router-control-0.2.orig/src/Makefile.in 2010-10-14 18:07:44.000000000 -0400
+++ upnp-router-control-0.2/src/Makefile.in 2013-07-13 10:10:41.238511424 -0400
@@ -213,7 +213,7 @@
urc-graph.c \
urc-graph.h
-upnp_router_control_LDADD = @GTK_LIBS@ @INTLLIBS@ @GUPNP_LIBS@ @LIBCURL_LIBS@
+upnp_router_control_LDADD = @GTK_LIBS@ @INTLLIBS@ @GUPNP_LIBS@ @LIBCURL_LIBS@ -lm
MAINTAINERCLEANFILES = \
*~ \
Makefile.in