homebrew-core/Formula/tiger-vnc.rb
Pavel Borzenkov 7565520f2b tiger-vnc 1.3.0
Now doesn't contain its own FLTK snapshot, thus, new dependency.

Closes Homebrew/homebrew#26914.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-22 11:29:44 +00:00

27 lines
723 B
Ruby

require 'formula'
class TigerVnc < Formula
homepage 'http://tigervnc.org/'
url 'http://downloads.sourceforge.net/project/tigervnc/tigervnc/1.3.0/tigervnc-1.3.0.tar.bz2'
sha1 'eda373336bee1bcfa806df1ea6389d918945a258'
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.factory('gettext')
turbo = Formula.factory('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