aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gupnp.rb
blob: 05607060b788c0fc30f541281c807fa8bd634a30 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require "formula"

class Gupnp < Formula
  homepage "https://wiki.gnome.org/GUPnP/"
  url "https://download.gnome.org/sources/gupnp/0.20/gupnp-0.20.11.tar.xz", :using => :ssl3
  sha1 "df8fd34bc50a567610899e071e0fa724188ebcfd"

  depends_on "pkg-config" => :build
  depends_on "intltool" => :build
  depends_on "gettext"
  depends_on "glib"
  depends_on "libsoup"
  depends_on "gssdp"

  # Per MacPorts, fix compilation with clang
  patch :DATA

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make", "install"
  end
end

__END__
--- a/libgupnp/gupnp-acl.c.orig	2014-05-04 07:46:07.000000000 -0700
+++ b/libgupnp/gupnp-acl.c	2014-05-04 07:48:56.000000000 -0700
@@ -129,7 +129,7 @@
                              GAsyncResult  *res,
                              GError       **error)
 {
-        g_return_if_fail (GUPNP_IS_ACL (self));
+        g_return_val_if_fail (GUPNP_IS_ACL (self), 0);
 
         return GUPNP_ACL_GET_INTERFACE (self)->is_allowed_finish (self,
                                                                   res,
@@ -149,7 +149,7 @@
 gboolean
 gupnp_acl_can_sync (GUPnPAcl *self)
 {
-        g_return_if_fail (GUPNP_IS_ACL (self));
+        g_return_val_if_fail (GUPNP_IS_ACL (self), 0);
 
         return GUPNP_ACL_GET_INTERFACE (self)->can_sync (self);
 }