diff --git a/include/libvnc/rfb/rfbconfig.h b/include/libvnc/rfb/rfbconfig.h new file mode 100644 index 0000000..0bac514 --- /dev/null +++ b/include/libvnc/rfb/rfbconfig.h @@ -0,0 +1,565 @@ +#ifndef _RFB_RFBCONFIG_H +#define _RFB_RFBCONFIG_H 1 + +/* rfb/rfbconfig.h. Generated automatically at end of configure. */ +/* rfbconfig.h. Generated from rfbconfig.h.in by configure. */ +/* rfbconfig.h.in. Generated from configure.ac by autoheader. */ + +/* Define if building universal (internal helper macro) */ +/* #undef LIBVNCSERVER_AC_APPLE_UNIVERSAL_BUILD */ + +/* Enable 24 bit per pixel in native framebuffer */ +#ifndef LIBVNCSERVER_ALLOW24BPP +#define LIBVNCSERVER_ALLOW24BPP 1 +#endif + +/* work around when write() returns ENOENT but does not mean it */ +/* #undef LIBVNCSERVER_ENOENT_WORKAROUND */ + +/* Use ffmpeg (for vnc2mpg) */ +/* #undef LIBVNCSERVER_FFMPEG */ + +/* Android host system detected */ +/* #undef LIBVNCSERVER_HAVE_ANDROID */ + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_ARPA_INET_H +#define LIBVNCSERVER_HAVE_ARPA_INET_H 1 +#endif + +/* Avahi/mDNS client build environment present */ +/* #undef LIBVNCSERVER_HAVE_AVAHI */ + +/* Define to 1 if you have the `crypt' function. */ +/* #undef LIBVNCSERVER_HAVE_CRYPT */ + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_DLFCN_H +#define LIBVNCSERVER_HAVE_DLFCN_H 1 +#endif + +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ +/* #undef LIBVNCSERVER_HAVE_DOPRNT */ + +/* DPMS extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_DPMS */ + +/* FBPM extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_FBPM */ + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_FCNTL_H +#define LIBVNCSERVER_HAVE_FCNTL_H 1 +#endif + +/* Define to 1 if you have the `fork' function. */ +#ifndef LIBVNCSERVER_HAVE_FORK +#define LIBVNCSERVER_HAVE_FORK 1 +#endif + +/* Define to 1 if you have the `ftime' function. */ +#ifndef LIBVNCSERVER_HAVE_FTIME +#define LIBVNCSERVER_HAVE_FTIME 1 +#endif + +/* Define to 1 if you have the `geteuid' function. */ +/* #undef LIBVNCSERVER_HAVE_GETEUID */ + +/* Define to 1 if you have the `gethostbyname' function. */ +#ifndef LIBVNCSERVER_HAVE_GETHOSTBYNAME +#define LIBVNCSERVER_HAVE_GETHOSTBYNAME 1 +#endif + +/* Define to 1 if you have the `gethostname' function. */ +#ifndef LIBVNCSERVER_HAVE_GETHOSTNAME +#define LIBVNCSERVER_HAVE_GETHOSTNAME 1 +#endif + +/* Define to 1 if you have the `getpwnam' function. */ +/* #undef LIBVNCSERVER_HAVE_GETPWNAM */ + +/* Define to 1 if you have the `getpwuid' function. */ +/* #undef LIBVNCSERVER_HAVE_GETPWUID */ + +/* Define to 1 if you have the `getspnam' function. */ +/* #undef LIBVNCSERVER_HAVE_GETSPNAM */ + +/* Define to 1 if you have the `gettimeofday' function. */ +#ifndef LIBVNCSERVER_HAVE_GETTIMEOFDAY +#define LIBVNCSERVER_HAVE_GETTIMEOFDAY 1 +#endif + +/* Define to 1 if you have the `getuid' function. */ +/* #undef LIBVNCSERVER_HAVE_GETUID */ + +/* GnuTLS library present */ +/* #undef LIBVNCSERVER_HAVE_GNUTLS */ + +/* Define to 1 if you have the `grantpt' function. */ +/* #undef LIBVNCSERVER_HAVE_GRANTPT */ + +/* Define to 1 if you have the `inet_ntoa' function. */ +#ifndef LIBVNCSERVER_HAVE_INET_NTOA +#define LIBVNCSERVER_HAVE_INET_NTOA 1 +#endif + +/* Define to 1 if you have the `initgroups' function. */ +/* #undef LIBVNCSERVER_HAVE_INITGROUPS */ + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_INTTYPES_H +#define LIBVNCSERVER_HAVE_INTTYPES_H 1 +#endif + +/* IRIX XReadDisplay available */ +/* #undef LIBVNCSERVER_HAVE_IRIX_XREADDISPLAY */ + +/* libcrypt library present */ +#ifndef LIBVNCSERVER_HAVE_LIBCRYPT +#define LIBVNCSERVER_HAVE_LIBCRYPT 1 +#endif + +/* openssl libcrypto library present */ +/* #undef LIBVNCSERVER_HAVE_LIBCRYPTO */ + +/* Define to 1 if you have the `cygipc' library (-lcygipc). */ +/* #undef LIBVNCSERVER_HAVE_LIBCYGIPC */ + +/* libjpeg support enabled */ +#ifndef LIBVNCSERVER_HAVE_LIBJPEG +#define LIBVNCSERVER_HAVE_LIBJPEG 1 +#endif + +/* Define to 1 if you have the `nsl' library (-lnsl). */ +#ifndef LIBVNCSERVER_HAVE_LIBNSL +#define LIBVNCSERVER_HAVE_LIBNSL 1 +#endif + +/* Define to 1 if you have the `png' library (-lpng). */ +#ifndef LIBVNCSERVER_HAVE_LIBPNG +#define LIBVNCSERVER_HAVE_LIBPNG 1 +#endif + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#ifndef LIBVNCSERVER_HAVE_LIBPTHREAD +#define LIBVNCSERVER_HAVE_LIBPTHREAD 1 +#endif + +/* Define to 1 if you have the `socket' library (-lsocket). */ +/* #undef LIBVNCSERVER_HAVE_LIBSOCKET */ + +/* openssl libssl library present */ +/* #undef LIBVNCSERVER_HAVE_LIBSSL */ + +/* XDAMAGE extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_LIBXDAMAGE */ + +/* XFIXES extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_LIBXFIXES */ + +/* XINERAMA extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_LIBXINERAMA */ + +/* XRANDR extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_LIBXRANDR */ + +/* DEC-XTRAP extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_LIBXTRAP */ + +/* Define to 1 if you have the `z' library (-lz). */ +#ifndef LIBVNCSERVER_HAVE_LIBZ +#define LIBVNCSERVER_HAVE_LIBZ 1 +#endif + +/* linux fb device build environment present */ +/* #undef LIBVNCSERVER_HAVE_LINUX_FB_H */ + +/* linux/input.h present */ +/* #undef LIBVNCSERVER_HAVE_LINUX_INPUT_H */ + +/* linux uinput device build environment present */ +/* #undef LIBVNCSERVER_HAVE_LINUX_UINPUT_H */ + +/* video4linux build environment present */ +/* #undef LIBVNCSERVER_HAVE_LINUX_VIDEODEV_H */ + +/* build MacOS X native display support */ +/* #undef LIBVNCSERVER_HAVE_MACOSX_NATIVE_DISPLAY */ + +/* MacOS X OpenGL present */ +/* #undef LIBVNCSERVER_HAVE_MACOSX_OPENGL_H */ + +/* Define to 1 if you have the `memmove' function. */ +#ifndef LIBVNCSERVER_HAVE_MEMMOVE +#define LIBVNCSERVER_HAVE_MEMMOVE 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_MEMORY_H +#define LIBVNCSERVER_HAVE_MEMORY_H 1 +#endif + +/* Define to 1 if you have the `memset' function. */ +#ifndef LIBVNCSERVER_HAVE_MEMSET +#define LIBVNCSERVER_HAVE_MEMSET 1 +#endif + +/* Define to 1 if you have the `mkfifo' function. */ +#ifndef LIBVNCSERVER_HAVE_MKFIFO +#define LIBVNCSERVER_HAVE_MKFIFO 1 +#endif + +/* Define to 1 if you have the `mmap' function. */ +#ifndef LIBVNCSERVER_HAVE_MMAP +#define LIBVNCSERVER_HAVE_MMAP 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_NETDB_H +#define LIBVNCSERVER_HAVE_NETDB_H 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_NETINET_IN_H +#define LIBVNCSERVER_HAVE_NETINET_IN_H 1 +#endif + +/* Define to 1 if you have the header file. */ +/* #undef LIBVNCSERVER_HAVE_PWD_H */ + +/* RECORD extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_RECORD */ + +/* Define to 1 if you have the `select' function. */ +#ifndef LIBVNCSERVER_HAVE_SELECT +#define LIBVNCSERVER_HAVE_SELECT 1 +#endif + +/* Define to 1 if you have the `setegid' function. */ +/* #undef LIBVNCSERVER_HAVE_SETEGID */ + +/* Define to 1 if you have the `seteuid' function. */ +/* #undef LIBVNCSERVER_HAVE_SETEUID */ + +/* Define to 1 if you have the `setgid' function. */ +/* #undef LIBVNCSERVER_HAVE_SETGID */ + +/* Define to 1 if you have the `setpgrp' function. */ +/* #undef LIBVNCSERVER_HAVE_SETPGRP */ + +/* Define to 1 if you have the `setsid' function. */ +/* #undef LIBVNCSERVER_HAVE_SETSID */ + +/* Define to 1 if you have the `setuid' function. */ +/* #undef LIBVNCSERVER_HAVE_SETUID */ + +/* Define to 1 if you have the `setutxent' function. */ +/* #undef LIBVNCSERVER_HAVE_SETUTXENT */ + +/* Define to 1 if you have the `shmat' function. */ +/* #undef LIBVNCSERVER_HAVE_SHMAT */ + +/* Define to 1 if you have the `socket' function. */ +#ifndef LIBVNCSERVER_HAVE_SOCKET +#define LIBVNCSERVER_HAVE_SOCKET 1 +#endif + +/* Solaris XReadScreen available */ +/* #undef LIBVNCSERVER_HAVE_SOLARIS_XREADSCREEN */ + +/* Define to 1 if `stat' has the bug that it succeeds when given the + zero-length file name argument. */ +/* #undef LIBVNCSERVER_HAVE_STAT_EMPTY_STRING_BUG */ + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_STDINT_H +#define LIBVNCSERVER_HAVE_STDINT_H 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_STDLIB_H +#define LIBVNCSERVER_HAVE_STDLIB_H 1 +#endif + +/* Define to 1 if you have the `strchr' function. */ +#ifndef LIBVNCSERVER_HAVE_STRCHR +#define LIBVNCSERVER_HAVE_STRCHR 1 +#endif + +/* Define to 1 if you have the `strcspn' function. */ +#ifndef LIBVNCSERVER_HAVE_STRCSPN +#define LIBVNCSERVER_HAVE_STRCSPN 1 +#endif + +/* Define to 1 if you have the `strdup' function. */ +#ifndef LIBVNCSERVER_HAVE_STRDUP +#define LIBVNCSERVER_HAVE_STRDUP 1 +#endif + +/* Define to 1 if you have the `strerror' function. */ +#ifndef LIBVNCSERVER_HAVE_STRERROR +#define LIBVNCSERVER_HAVE_STRERROR 1 +#endif + +/* Define to 1 if you have the `strftime' function. */ +#ifndef LIBVNCSERVER_HAVE_STRFTIME +#define LIBVNCSERVER_HAVE_STRFTIME 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_STRINGS_H +#define LIBVNCSERVER_HAVE_STRINGS_H 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_STRING_H +#define LIBVNCSERVER_HAVE_STRING_H 1 +#endif + +/* Define to 1 if you have the `strstr' function. */ +#ifndef LIBVNCSERVER_HAVE_STRSTR +#define LIBVNCSERVER_HAVE_STRSTR 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_SYSLOG_H +#define LIBVNCSERVER_HAVE_SYSLOG_H 1 +#endif + +/* Use the system libvncserver build environment for x11vnc. */ +/* #undef LIBVNCSERVER_HAVE_SYSTEM_LIBVNCSERVER */ + +/* Define to 1 if you have the header file. */ +/* #undef LIBVNCSERVER_HAVE_SYS_IOCTL_H */ + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_SYS_SOCKET_H +#define LIBVNCSERVER_HAVE_SYS_SOCKET_H 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_SYS_STAT_H +#define LIBVNCSERVER_HAVE_SYS_STAT_H 1 +#endif + +/* Define to 1 if you have the header file. */ +/* #undef LIBVNCSERVER_HAVE_SYS_STROPTS_H */ + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_SYS_TIMEB_H +#define LIBVNCSERVER_HAVE_SYS_TIMEB_H 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_SYS_TIME_H +#define LIBVNCSERVER_HAVE_SYS_TIME_H 1 +#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_SYS_TYPES_H +#define LIBVNCSERVER_HAVE_SYS_TYPES_H 1 +#endif + +/* Define to 1 if you have that is POSIX.1 compatible. */ +#ifndef LIBVNCSERVER_HAVE_SYS_WAIT_H +#define LIBVNCSERVER_HAVE_SYS_WAIT_H 1 +#endif + +/* Define to 1 if you have the header file. */ +/* #undef LIBVNCSERVER_HAVE_TERMIOS_H */ + +/* Define to 1 if compiler supports __thread */ +//#ifndef LIBVNCSERVER_HAVE_TLS +//#define LIBVNCSERVER_HAVE_TLS 1 +//#endif + +/* Define to 1 if you have the header file. */ +#ifndef LIBVNCSERVER_HAVE_UNISTD_H +#define LIBVNCSERVER_HAVE_UNISTD_H 1 +#endif + +/* Define to 1 if you have the header file. */ +/* #undef LIBVNCSERVER_HAVE_UTMPX_H */ + +/* Define to 1 if you have the `vfork' function. */ +#ifndef LIBVNCSERVER_HAVE_VFORK +#define LIBVNCSERVER_HAVE_VFORK 1 +#endif + +/* Define to 1 if you have the header file. */ +/* #undef LIBVNCSERVER_HAVE_VFORK_H */ + +/* Define to 1 if you have the `vprintf' function. */ +#ifndef LIBVNCSERVER_HAVE_VPRINTF +#define LIBVNCSERVER_HAVE_VPRINTF 1 +#endif + +/* Define to 1 if you have the `waitpid' function. */ +/* #undef LIBVNCSERVER_HAVE_WAITPID */ + +/* Define to 1 if `fork' works. */ +#ifndef LIBVNCSERVER_HAVE_WORKING_FORK +#define LIBVNCSERVER_HAVE_WORKING_FORK 1 +#endif + +/* Define to 1 if `vfork' works. */ +#ifndef LIBVNCSERVER_HAVE_WORKING_VFORK +#define LIBVNCSERVER_HAVE_WORKING_VFORK 1 +#endif + +/* Define to 1 if you have the header file. */ +/* #undef LIBVNCSERVER_HAVE_WS2TCPIP_H */ + +/* X11 build environment present */ +//#ifndef LIBVNCSERVER_HAVE_X11 +//#define LIBVNCSERVER_HAVE_X11 1 +//#endif + +/* open ssl X509_print_ex_fp available */ +/* #undef LIBVNCSERVER_HAVE_X509_PRINT_EX_FP */ + +/* XKEYBOARD extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_XKEYBOARD */ + +/* MIT-SHM extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_XSHM */ + +/* XTEST extension build environment present */ +/* #undef LIBVNCSERVER_HAVE_XTEST */ + +/* XTEST extension has XTestGrabControl */ +/* #undef LIBVNCSERVER_HAVE_XTESTGRABCONTROL */ + +/* Enable IPv6 support */ +//#ifndef LIBVNCSERVER_IPv6 +//#define LIBVNCSERVER_IPv6 1 +//#endif + +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing + slash. */ +#ifndef LIBVNCSERVER_LSTAT_FOLLOWS_SLASHED_SYMLINK +#define LIBVNCSERVER_LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +#endif + +/* Need a typedef for in_addr_t */ +/* #undef LIBVNCSERVER_NEED_INADDR_T */ + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +/* #undef LIBVNCSERVER_NO_MINUS_C_MINUS_O */ + +/* Name of package */ +#ifndef LIBVNCSERVER_PACKAGE +#define LIBVNCSERVER_PACKAGE "LibVNCServer" +#endif + +/* Define to the address where bug reports for this package should be sent. */ +#ifndef LIBVNCSERVER_PACKAGE_BUGREPORT +#define LIBVNCSERVER_PACKAGE_BUGREPORT "http://sourceforge.net/projects/libvncserver" +#endif + +/* Define to the full name of this package. */ +#ifndef LIBVNCSERVER_PACKAGE_NAME +#define LIBVNCSERVER_PACKAGE_NAME "LibVNCServer" +#endif + +/* Define to the full name and version of this package. */ +#ifndef LIBVNCSERVER_PACKAGE_STRING +#define LIBVNCSERVER_PACKAGE_STRING "LibVNCServer 0.9.9" +#endif + +/* Define to the one symbol short name of this package. */ +#ifndef LIBVNCSERVER_PACKAGE_TARNAME +#define LIBVNCSERVER_PACKAGE_TARNAME "libvncserver" +#endif + +/* Define to the home page for this package. */ +#ifndef LIBVNCSERVER_PACKAGE_URL +#define LIBVNCSERVER_PACKAGE_URL "" +#endif + +/* Define to the version of this package. */ +#ifndef LIBVNCSERVER_PACKAGE_VERSION +#define LIBVNCSERVER_PACKAGE_VERSION "0.9.9" +#endif + +/* The number of bytes in type char */ +/* #undef LIBVNCSERVER_SIZEOF_CHAR */ + +/* The number of bytes in type int */ +/* #undef LIBVNCSERVER_SIZEOF_INT */ + +/* The number of bytes in type long */ +/* #undef LIBVNCSERVER_SIZEOF_LONG */ + +/* The number of bytes in type short */ +/* #undef LIBVNCSERVER_SIZEOF_SHORT */ + +/* The number of bytes in type void* */ +/* #undef LIBVNCSERVER_SIZEOF_VOIDP */ + +/* Define to 1 if you have the ANSI C header files. */ +#ifndef LIBVNCSERVER_STDC_HEADERS +#define LIBVNCSERVER_STDC_HEADERS 1 +#endif + +/* Define to 1 if you can safely include both and . */ +#ifndef LIBVNCSERVER_TIME_WITH_SYS_TIME +#define LIBVNCSERVER_TIME_WITH_SYS_TIME 1 +#endif + +/* Version number of package */ +#ifndef LIBVNCSERVER_VERSION +#define LIBVNCSERVER_VERSION "0.9.9" +#endif + +/* Enable support for libgcrypt in libvncclient */ +/* #undef LIBVNCSERVER_WITH_CLIENT_GCRYPT */ + +/* Disable TightVNCFileTransfer protocol */ +#ifndef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER +#define LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER 1 +#endif + +/* Disable WebSockets support */ +//#ifndef LIBVNCSERVER_WITH_WEBSOCKETS +//#define LIBVNCSERVER_WITH_WEBSOCKETS 1 +//#endif + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif + +/* Define to 1 if the X Window System is missing or not being used. */ +/* #undef LIBVNCSERVER_X_DISPLAY_MISSING */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif + +/* Define to `int' if does not define. */ +/* #undef pid_t */ + +/* Define to `unsigned int' if does not define. */ +/* #undef size_t */ + +/* The type for socklen */ +/* #undef socklen_t */ + +/* Define as `fork' if `vfork' does not work. */ +/* #undef vfork */ + +/* once: _RFB_RFBCONFIG_H */ +#endif diff --git a/include/libvnc/rfb/rfbint.h b/include/libvnc/rfb/rfbint.h new file mode 100644 index 0000000..2753056 --- /dev/null +++ b/include/libvnc/rfb/rfbint.h @@ -0,0 +1,17 @@ +#ifndef _RFB_RFBINT_H +#define _RFB_RFBINT_H 1 +#ifndef _GENERATED_STDINT_H +#define _GENERATED_STDINT_H "LibVNCServer 0.9.9" +/* generated using a gnu compiler version gcc (Debian 4.7.2-5) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ + +#include + + +/* system headers have good uint64_t */ +#ifndef _HAVE_UINT64_T +#define _HAVE_UINT64_T +#endif + + /* once */ +#endif +#endif diff --git a/lib/import/import-vncclient.mk b/lib/import/import-vncclient.mk new file mode 100644 index 0000000..e6fa2e5 --- /dev/null +++ b/lib/import/import-vncclient.mk @@ -0,0 +1,4 @@ +LIBVNCCLIENT_PORT_DIR := $(call select_from_ports,libvnc) + +INC_DIR += $(LIBVNCCLIENT_PORT_DIR)/src/lib/vnc \ + $(REP_DIR)/include/libvnc diff --git a/lib/mk/vncclient.mk b/lib/mk/vncclient.mk new file mode 100644 index 0000000..05105f2 --- /dev/null +++ b/lib/mk/vncclient.mk @@ -0,0 +1,18 @@ +include $(REP_DIR)/lib/import/import-vncclient.mk + +LIBS += libc zlib jpeg + +INC_DIR += $(LIBVNCCLIENT_PORT_DIR)/src/lib/vnc/common + +SRC_C := cursor.c \ + listen.c \ + rfbproto.c \ + sockets.c \ + vncviewer.c \ + minilzo.c \ + tls_none.c + +SHARED_LIB = yes + +vpath minilzo.c $(LIBVNCCLIENT_PORT_DIR)/src/lib/vnc/common +vpath %.c $(LIBVNCCLIENT_PORT_DIR)/src/lib/vnc/libvncclient diff --git a/ports/libvnc.hash b/ports/libvnc.hash new file mode 100644 index 0000000..c0fd9be --- /dev/null +++ b/ports/libvnc.hash @@ -0,0 +1 @@ +b5696eef04e980225450b9ae49c68b96b7b9309f diff --git a/ports/libvnc.port b/ports/libvnc.port new file mode 100644 index 0000000..ad4f6ba --- /dev/null +++ b/ports/libvnc.port @@ -0,0 +1,14 @@ +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 diff --git a/src/app/sdl_vnc/target.mk b/src/app/sdl_vnc/target.mk new file mode 100644 index 0000000..b895213 --- /dev/null +++ b/src/app/sdl_vnc/target.mk @@ -0,0 +1,9 @@ +SDLVNCVIEWER_PORT_DIR := $(call select_from_ports,libvnc) + +TARGET = sdl_vnc + +SRC_C = SDLvncviewer.c scrap.c + +LIBS = vncclient sdl libc zlib + +vpath %.c $(SDLVNCVIEWER_PORT_DIR)/src/lib/vnc/client_examples diff --git a/src/app/sdl_vnc/vnc_pwd.patch b/src/app/sdl_vnc/vnc_pwd.patch new file mode 100644 index 0000000..6b7f02c --- /dev/null +++ b/src/app/sdl_vnc/vnc_pwd.patch @@ -0,0 +1,33 @@ ++++ src/lib/vnc/client_examples/SDLvncviewer.c +@@ -474,6 +474,10 @@ + put_scrap(T('T', 'E', 'X', 'T'), len, text); + } + ++static char * pwd_hack = 0; ++static char* ReadPassword(rfbClient* client) { ++ return pwd_hack; ++} + + #ifdef mac + #define main SDLmain +@@ -500,6 +504,12 @@ + argv[i] = "-listennofork"; + ++j; + } ++ else if (i+1GotXCutText = got_selection; + cl->listenPort = LISTEN_PORT_OFFSET; + cl->listen6Port = LISTEN_PORT_OFFSET; ++ cl->GetPassword = ReadPassword; + if(!rfbInitClient(cl,&argc,argv)) + { + cl = NULL; /* rfbInitClient has already freed the client struct */