homebrew-core/Formula/x11vnc.rb
Jaime Marquínez Ferrándiz b7678ae561 Change some SourceForge urls to use https://downloads.sourceforge.net
Closes Homebrew/homebrew#27041.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

44 lines
1.1 KiB
Ruby

require 'formula'
class X11vnc < Formula
homepage 'http://www.karlrunge.com/x11vnc/'
url 'https://downloads.sourceforge.net/project/libvncserver/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