homebrew-core/Formula/tiger-vnc.rb

35 lines
974 B
Ruby
Raw Normal View History

2017-01-25 10:24:18 +00:00
class TigerVnc < Formula
desc "High-performance, platform-neutral implementation of VNC"
homepage "http://tigervnc.org/"
url "https://github.com/TigerVNC/tigervnc/archive/v1.7.1.tar.gz"
sha256 "3c021ec0bee4611020c0bcbab995b0ef2f6f1a46127a52b368827f3275527ccc"
depends_on "cmake" => :build
depends_on "gnutls" => :recommended
depends_on "jpeg-turbo"
depends_on "gettext"
depends_on "fltk"
depends_on :x11
# reduce thread stack size to avoid crash
patch do
url "https://github.com/TigerVNC/tigervnc/commit/1349e42e395a0a88b67447580d526daf31dba591.diff"
sha256 "e7321146c7ab752279423c9fc0ee1414eed8f1dc81afd2ea963a7f2d115a7a79"
end
def install
turbo = Formula["jpeg-turbo"]
args = std_cmake_args + %W[
-DJPEG_INCLUDE_DIR=#{turbo.include}
-DJPEG_LIBRARY=#{turbo.lib}/libjpeg.dylib
.
]
system "cmake", *args
system "make", "install"
end
test do
system "#{bin}/tigervnc", "--version"
end
end