2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-02-10 16:00:07 +01:00
|
|
|
#
|
|
|
|
# libvncserver
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-02-10 16:00:07 +01:00
|
|
|
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_VERSION = 0.9.12
|
2012-02-10 16:00:07 +01:00
|
|
|
LIBVNCSERVER_SOURCE = LibVNCServer-$(LIBVNCSERVER_VERSION).tar.gz
|
2014-12-26 01:46:14 +01:00
|
|
|
LIBVNCSERVER_SITE = https://github.com/LibVNC/libvncserver/archive
|
2017-03-30 15:43:32 +02:00
|
|
|
LIBVNCSERVER_LICENSE = GPL-2.0+
|
2013-01-28 08:42:30 +01:00
|
|
|
LIBVNCSERVER_LICENSE_FILES = COPYING
|
2012-02-10 16:00:07 +01:00
|
|
|
LIBVNCSERVER_INSTALL_STAGING = YES
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_DEPENDENCIES = host-pkgconf lzo
|
|
|
|
LIBVNCSERVER_CONF_OPTS = -DWITH_LZO=ON
|
2014-12-27 18:01:31 +01:00
|
|
|
|
2012-02-10 16:00:07 +01:00
|
|
|
# only used for examples
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += \
|
|
|
|
-DWITH_FFMPEG=OFF \
|
|
|
|
-DWITH_SDL=OFF
|
2012-02-10 16:00:07 +01:00
|
|
|
|
2013-11-13 09:07:41 +01:00
|
|
|
ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_THREADS=ON
|
|
|
|
else
|
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_THREADS=OFF
|
2013-11-13 09:07:41 +01:00
|
|
|
endif
|
|
|
|
|
2014-12-28 17:34:54 +01:00
|
|
|
# openssl supports needs NPTL thread support
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL)$(BR2_TOOLCHAIN_HAS_THREADS_NPTL),yy)
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_OPENSSL=ON
|
2012-02-10 16:00:07 +01:00
|
|
|
LIBVNCSERVER_DEPENDENCIES += openssl
|
|
|
|
else
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_OPENSSL=OFF
|
2012-02-10 16:00:07 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_GCRYPT=ON
|
2012-02-10 16:00:07 +01:00
|
|
|
LIBVNCSERVER_DEPENDENCIES += libgcrypt
|
|
|
|
else
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_GCRYPT=OFF
|
2012-02-10 16:00:07 +01:00
|
|
|
endif
|
|
|
|
|
2013-02-05 23:09:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_GNUTLS=ON
|
|
|
|
LIBVNCSERVER_DEPENDENCIES += gnutls
|
2012-02-10 16:00:07 +01:00
|
|
|
else
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_GNUTLS=OFF
|
2012-02-10 16:00:07 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_JPEG=ON
|
2012-02-10 16:00:07 +01:00
|
|
|
LIBVNCSERVER_DEPENDENCIES += jpeg
|
|
|
|
else
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_JPEG=OFF
|
2012-02-10 16:00:07 +01:00
|
|
|
endif
|
|
|
|
|
2014-12-27 20:12:54 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_PNG=ON
|
2014-12-27 20:12:54 +01:00
|
|
|
LIBVNCSERVER_DEPENDENCIES += libpng
|
|
|
|
else
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_PNG=OFF
|
2014-12-27 20:12:54 +01:00
|
|
|
endif
|
|
|
|
|
2019-06-22 18:38:55 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_SYSTEMD=ON
|
|
|
|
LIBVNCSERVER_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_SYSTEMD=OFF
|
|
|
|
endif
|
|
|
|
|
2012-02-10 16:00:07 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_ZLIB=ON
|
2012-02-10 16:00:07 +01:00
|
|
|
LIBVNCSERVER_DEPENDENCIES += zlib
|
|
|
|
else
|
2019-06-22 15:33:10 +02:00
|
|
|
LIBVNCSERVER_CONF_OPTS += -DWITH_ZLIB=OFF
|
2012-02-10 16:00:07 +01:00
|
|
|
endif
|
|
|
|
|
2019-06-22 15:33:10 +02:00
|
|
|
$(eval $(cmake-package))
|