2015-01-04 14:41:47 +00:00
|
|
|
class GtkVnc < Formula
|
|
|
|
desc "VNC viewer widget for GTK."
|
|
|
|
homepage "https://wiki.gnome.org/Projects/gtk-vnc"
|
2016-08-20 13:44:18 +00:00
|
|
|
url "https://download.gnome.org/sources/gtk-vnc/0.6/gtk-vnc-0.6.0.tar.xz"
|
|
|
|
sha256 "9559348805e64d130dae569fee466930175dbe150d2649bb868b5c095f130433"
|
2015-01-04 14:41:47 +00:00
|
|
|
|
2016-04-18 20:10:28 +00:00
|
|
|
bottle do
|
2016-09-17 08:16:50 +00:00
|
|
|
sha256 "e6295f47c9b7b509cd8d8014770d1830ccf3948517b48a725f1ffa7cd309cfcd" => :sierra
|
2016-08-20 14:10:55 +00:00
|
|
|
sha256 "8989a4351aebfdb2510e8f3ab8b3048e14781c09ae63cb4cc3fd1c10ed5da054" => :el_capitan
|
|
|
|
sha256 "221d067174aaee6f1f2875b143c905db8677da91e31e251c706649da9951816e" => :yosemite
|
2016-04-18 20:10:28 +00:00
|
|
|
end
|
|
|
|
|
2016-08-20 13:44:18 +00:00
|
|
|
# Fails with Xcode 7.1 or older
|
|
|
|
# error: use of undeclared identifier 'MAP_ANONYMOUS'
|
|
|
|
# Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=602371
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :macos => :yosemite
|
2016-08-20 13:44:18 +00:00
|
|
|
|
2015-01-04 14:41:47 +00:00
|
|
|
depends_on "gettext" => :build
|
|
|
|
depends_on "intltool" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
2016-08-20 13:44:18 +00:00
|
|
|
depends_on "gnutls"
|
|
|
|
depends_on "gtk+3"
|
|
|
|
depends_on "libgcrypt"
|
2015-01-04 14:41:47 +00:00
|
|
|
depends_on "gobject-introspection" => :optional
|
|
|
|
depends_on "pulseaudio" => :optional
|
|
|
|
depends_on "vala" => :optional
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--with-gtk=3.0
|
|
|
|
--with-examples
|
|
|
|
--with-python
|
|
|
|
]
|
|
|
|
|
|
|
|
args << "--enable-introspection" if build.with? "gobject-introspection"
|
|
|
|
args << "--enable-pulseaudio" if build.with? "pulseaudio"
|
|
|
|
if build.with? "vala"
|
|
|
|
args << "--enable-vala"
|
|
|
|
else
|
|
|
|
args << "--disable-vala"
|
|
|
|
end
|
|
|
|
|
|
|
|
# fix "The deprecated ucontext routines require _XOPEN_SOURCE to be defined"
|
|
|
|
ENV.append "CPPFLAGS", "-D_XOPEN_SOURCE=600"
|
|
|
|
# for MAP_ANON
|
|
|
|
ENV.append "CPPFLAGS", "-D_DARWIN_C_SOURCE"
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/gvncviewer", "--help-all"
|
|
|
|
end
|
|
|
|
end
|