homebrew-core/Formula/tiger-vnc.rb
Pavel Borzenkov 60ed9ce6f6 tiger-vnc 1.3.1
Closes Homebrew/homebrew#27787.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-22 19:02:22 +00:00

28 lines
718 B
Ruby

require 'formula'
class TigerVnc < Formula
homepage 'http://tigervnc.org/'
url 'https://downloads.sourceforge.net/project/tigervnc/tigervnc/1.3.1/tigervnc-1.3.1.tar.gz'
sha1 '308ec9a9a627d20406eebfaeac4f3d4398278cc1'
revision 1
depends_on 'cmake' => :build
depends_on 'gnutls' => :recommended
depends_on 'jpeg-turbo'
depends_on 'gettext'
depends_on 'fltk'
depends_on :x11
def install
gettext = Formula['gettext']
turbo = Formula['jpeg-turbo']
args = std_cmake_args + %W[
-DJPEG_INCLUDE_DIR=#{turbo.include}
-DJPEG_LIBRARY=#{turbo.lib}/libjpeg.dylib
-DCMAKE_PREFIX_PATH=#{gettext.prefix}
.
]
system 'cmake', *args
system 'make install'
end
end