LICENSE := GPLv2
VERSION := 0.9.9
DOWNLOADS := libvnc.archive

URL(libvnc) := https://github.com/LibVNC/libvncserver/archive/LibVNCServer-$(VERSION).tar.gz
SHA(libvnc) := f5f9f87f23f8f81260e071dac89169357b69f60dd61f537578b2613bc5fb60af
DIR(libvnc) := src/lib/vnc

PATCHES := src/app/sdl_vnc/vnc_pwd.patch

#avoid 100% cpu utilization, our libc caps timeout values < 1ms to 0
default : additional_steps
additional_steps : $(DOWNLOADS)
	sed -i "s/i=WaitForMessage(cl,500);/i=WaitForMessage(cl,1000);/" src/lib/vnc/client_examples/SDLvncviewer.c
