package: add libvncserver
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 10 Feb 2012 15:00:07 +0000 (16:00 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 10 Feb 2012 15:00:07 +0000 (16:00 +0100)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/libvncserver/Config.in [new file with mode: 0644]
package/libvncserver/libvncserver.mk [new file with mode: 0644]

index c679652078b865045d8b73f7f2ac6f97951a939c..8a7c9c4a5a85cbaa7c6b92a83b737852b4b563be 100644 (file)
@@ -363,6 +363,7 @@ source "package/libosip2/Config.in"
 source "package/librsync/Config.in"
 source "package/libsoup/Config.in"
 source "package/libupnp/Config.in"
+source "package/libvncserver/Config.in"
 endmenu
 
 menu "Other"
diff --git a/package/libvncserver/Config.in b/package/libvncserver/Config.in
new file mode 100644 (file)
index 0000000..ff83e34
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBVNCSERVER
+       bool "libvncserver"
+       help
+         libvncserver is a VNC server/client library.
+
+         http://libvncserver.sourceforge.net/
diff --git a/package/libvncserver/libvncserver.mk b/package/libvncserver/libvncserver.mk
new file mode 100644 (file)
index 0000000..c98fba3
--- /dev/null
@@ -0,0 +1,50 @@
+#############################################################
+#
+# libvncserver
+#
+#############################################################
+
+LIBVNCSERVER_VERSION = 0.9.8.2
+LIBVNCSERVER_SOURCE = LibVNCServer-$(LIBVNCSERVER_VERSION).tar.gz
+LIBVNCSERVER_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libvncserver/$(LIBVNCSERVER_VERSION)
+
+LIBVNCSERVER_INSTALL_STAGING = YES
+
+# only used for examples
+LIBVNCSERVER_CONF_OPT += --with-sdl-config=/bin/false
+
+ifneq ($(BR2_INET_IPV6),y)
+LIBVNCSERVER_CONF_OPT += --without-ipv6
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LIBVNCSERVER_DEPENDENCIES += openssl
+else
+LIBVNCSERVER_CONF_OPT += --without-crypto
+endif
+
+ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
+LIBVNCSERVER_DEPENDENCIES += libgcrypt
+else
+LIBVNCSERVER_CONF_OPT += --without-gcrypt
+endif
+
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+LIBVNCSERVER_DEPENDENCIES += gnutls host-pkg-config
+else
+LIBVNCSERVER_CONF_OPT += --without-gnutls
+endif
+
+ifeq ($(BR2_PACKAGE_JPEG),y)
+LIBVNCSERVER_DEPENDENCIES += jpeg
+else
+LIBVNCSERVER_CONF_OPT += --without-jpeg
+endif
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LIBVNCSERVER_DEPENDENCIES += zlib
+else
+LIBVNCSERVER_CONF_OPT += --without-zlib
+endif
+
+$(eval $(call AUTOTARGETS))