Update tiger-vnc to 1.2.0.
Now using cmake, libjpeg-turbo and (optionally) gnutls. Closes Homebrew/homebrew#11895. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
parent
bbac5ace3f
commit
1c6321404a
1 changed files with 19 additions and 11 deletions
|
@ -2,18 +2,26 @@ require 'formula'
|
|||
|
||||
class TigerVnc < Formula
|
||||
homepage 'http://tigervnc.org/'
|
||||
url 'http://downloads.sourceforge.net/project/tigervnc/tigervnc/1.0.1/tigervnc-1.0.1.tar.gz'
|
||||
md5 'daca3eb16afe65253b766eccb8bfdbc5'
|
||||
url 'http://downloads.sourceforge.net/project/tigervnc/tigervnc/1.2.0/tigervnc-1.2.0.tar.gz'
|
||||
sha1 '0542b2549a85b6723deebc3b5ecafa4f1fbee8e6'
|
||||
|
||||
depends_on 'cmake' => :build
|
||||
depends_on 'gnutls' => :recommended
|
||||
depends_on 'jpeg-turbo'
|
||||
depends_on 'gettext'
|
||||
depends_on :x11
|
||||
|
||||
def install
|
||||
cd "unix" do
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
||||
def caveats
|
||||
"NOTE: This is X11 software."
|
||||
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'
|
||||
mv (prefix+'man'), share
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue