diff options
| author | Timothy Crone | 2013-10-11 16:03:28 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-16 11:06:51 -0800 |
| commit | 6aada2bc6255752125c613c2b11618db9e680f2b (patch) | |
| tree | 402e5dad2a5ba8b37cdae52641fe67289d7ccb44 | |
| parent | 34d87ef16da7e99ca516ff66f188f2e3a1744719 (diff) | |
| download | homebrew-6aada2bc6255752125c613c2b11618db9e680f2b.tar.bz2 | |
x11vnc 0.9.13
Closes #23210.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/x11vnc.rb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Library/Formula/x11vnc.rb b/Library/Formula/x11vnc.rb new file mode 100644 index 000000000..b3231dfac --- /dev/null +++ b/Library/Formula/x11vnc.rb @@ -0,0 +1,44 @@ +require 'formula' + +class X11vnc < Formula + homepage 'http://www.karlrunge.com/x11vnc/' + url 'http://sourceforge.net/projects/libvncserver/files/x11vnc/0.9.13/x11vnc-0.9.13.tar.gz' + sha1 'f011d81488ac94dc8dce2d88739c23bd85a976fa' + + depends_on 'jpeg' + + # Patch solid.c so a non-void function returns a NULL instead of a void. + # An email has been sent to the maintainers about this issue. + def patches + DATA + end + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--without-x", + "--prefix=#{prefix}", + "--mandir=#{man}" + system "make" + system "make", "MKDIRPROG=mkdir -p", "install" + end + + test do + system "#{bin}/x11vnc --version" + end +end + +__END__ +diff --git a/x11vnc/solid.c b/x11vnc/solid.c +index d6b0bda..0b2cfa9 100644 +--- a/x11vnc/solid.c ++++ b/x11vnc/solid.c +@@ -177,7 +177,7 @@ unsigned long get_pixel(char *color) { + + XImage *solid_root(char *color) { + #if NO_X11 +- RAWFB_RET_VOID ++ RAWFB_RET(NULL) + if (!color) {} + return NULL; + #else |
