diff options
| author | Kurt Grutzmacher | 2013-10-20 00:57:30 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-18 22:35:01 -0800 |
| commit | f8b555aa118536acfc747197f4b75c6061bca80b (patch) | |
| tree | 14286055f254b8c2766cd4968f927839d90c6f1b /Library/Formula | |
| parent | 3a6539cbb3cd30c8384594db3d12ae07441cb144 (diff) | |
| download | homebrew-f8b555aa118536acfc747197f4b75c6061bca80b.tar.bz2 | |
vncsnapshot 1.2a
Closes #23392.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/vncsnapshot.rb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Library/Formula/vncsnapshot.rb b/Library/Formula/vncsnapshot.rb new file mode 100644 index 000000000..106496691 --- /dev/null +++ b/Library/Formula/vncsnapshot.rb @@ -0,0 +1,44 @@ +require 'formula' + +class Vncsnapshot < Formula + homepage 'http://sourceforge.net/projects/vncsnapshot/' + url 'http://downloads.sourceforge.net/project/vncsnapshot/vncsnapshot/1.2a/vncsnapshot-1.2a-src.tar.gz' + sha1 '115d9497467e5e5f13df2c108893db3d1d4c51bc' + + depends_on 'jpeg' + + def patches + # remove old PPC __APPLE__ ifdef from sockets.cxx + DATA + end + + def install + # From Ubuntu + inreplace 'rfb.h' do |s| + s.gsub! /typedef unsigned long CARD32;/, 'typedef unsigned int CARD32;' + end + + system "make" + bin.install 'vncsnapshot', 'vncpasswd' + man1.install 'vncsnapshot.man1' => 'vncsnapshot.1' + end +end + +__END__ +diff --git a/sockets.cxx b/sockets.cxx +index ecdf0db..6c827fa 100644 +--- a/sockets.cxx ++++ b/sockets.cxx +@@ -38,9 +38,9 @@ typedef int socklen_t; + #include <fcntl.h> + #endif + +-#ifdef __APPLE__ +-typedef int socklen_t; +-#endif ++//#ifdef __APPLE__ ++//typedef int socklen_t; ++//#endif + + extern "C" { + #include "vncsnapshot.h" |
