homebrew-core/Formula/gupnp-tools.rb

122 lines
3.2 KiB
Ruby

class GupnpTools < Formula
desc "Free replacements of Intel's UPnP tools."
homepage "https://wiki.gnome.org/GUPnP/"
url "https://download.gnome.org/sources/gupnp-tools/0.8/gupnp-tools-0.8.11.tar.xz"
sha256 "f4ce8799cf32077eb2ab8076c3420d6b8fc3dcdc3fffbfe84a2ac59764ec8d3d"
bottle do
sha256 "ddfff4bfbf6da35a8439146f578d34fb80cc3625086b14b89f24d8f4d58db926" => :el_capitan
sha256 "a4bae3296dc5d8062f3826a4265e622330098ac1d1f3756ce8dc59404d1ac1d6" => :yosemite
sha256 "aa42be7da9a3110a14546bf9a45f9fff2e484ed5b5a7c1360f4b02a94daa5f75" => :mavericks
end
# filed upstream as https://bugzilla.gnome.org/show_bug.cgi?id=758779
patch :DATA
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "gettext"
depends_on "gupnp"
depends_on "gupnp-av"
depends_on "gtk+3"
depends_on "gtksourceview3"
depends_on "ossp-uuid"
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/gupnp-universal-cp", "-h"
system "#{bin}/gupnp-av-cp", "-h"
end
end
__END__
diff --git a/configure b/configure
index b3c24d8..a9d0104 100755
--- a/configure
+++ b/configure
@@ -6279,79 +6279,6 @@ fi
-
-for flag in -Wl,--no-as-needed ; do
- as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
-$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
-if eval \${$as_CACHEVAR+:} false; then :
- $as_echo_n "(cached) " >&6
-else
-
- ax_check_save_flags=$CFLAGS
- CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- eval "$as_CACHEVAR=yes"
-else
- eval "$as_CACHEVAR=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS=$ax_check_save_flags
-fi
-eval ac_res=\$$as_CACHEVAR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
-
-if ${WARN_LDFLAGS+:} false; then :
-
- case " $WARN_LDFLAGS " in #(
- *" $flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
- (: WARN_LDFLAGS already contains $flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append WARN_LDFLAGS " $flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
- (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- WARN_LDFLAGS=$flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
- (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
-else
- :
-fi
-
-done
-
-
if test "$ax_enable_compile_warnings" != "no"; then :
# "yes" flags