package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / libvncserver / libvncserver.mk
blob92cb1e1aa60a0ce0e5733283917ebef11e588352
1 ################################################################################
3 # libvncserver
5 ################################################################################
7 LIBVNCSERVER_VERSION = 0.9.10
8 LIBVNCSERVER_SOURCE = LibVNCServer-$(LIBVNCSERVER_VERSION).tar.gz
9 LIBVNCSERVER_SITE = https://github.com/LibVNC/libvncserver/archive
10 LIBVNCSERVER_LICENSE = GPLv2+
11 LIBVNCSERVER_LICENSE_FILES = COPYING
12 LIBVNCSERVER_INSTALL_STAGING = YES
13 LIBVNCSERVER_CONFIG_SCRIPTS = libvncserver-config
14 LIBVNCSERVER_DEPENDENCIES = host-pkgconf
16 # Upstream decided to remove generated autotools files from the
17 # tarball, so we need to generate them.
18 LIBVNCSERVER_AUTORECONF = YES
20 # libvncserver does not get along with newer libva versions
21 # https://github.com/LibVNC/libvncserver/issues/11
22 LIBVNCSERVER_CONF_OPTS += --without-libva
24 # only used for examples
25 LIBVNCSERVER_CONF_OPTS += --with-sdl-config=/bin/false
27 ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
28 LIBVNCSERVER_CONF_OPTS += --without-pthread
29 endif
31 # openssl supports needs NPTL thread support
32 ifeq ($(BR2_PACKAGE_OPENSSL)$(BR2_TOOLCHAIN_HAS_THREADS_NPTL),yy)
33 LIBVNCSERVER_DEPENDENCIES += openssl
34 else
35 LIBVNCSERVER_CONF_OPTS += --without-crypto --without-ssl
36 endif
38 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
39 LIBVNCSERVER_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
40 LIBVNCSERVER_DEPENDENCIES += libgcrypt
41 else
42 LIBVNCSERVER_CONF_OPTS += --without-gcrypt
43 endif
45 ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
46 LIBVNCSERVER_DEPENDENCIES += gnutls host-pkgconf
47 else
48 LIBVNCSERVER_CONF_OPTS += --without-gnutls
49 endif
51 ifeq ($(BR2_PACKAGE_JPEG),y)
52 LIBVNCSERVER_DEPENDENCIES += jpeg
53 else
54 LIBVNCSERVER_CONF_OPTS += --without-jpeg
55 endif
57 ifeq ($(BR2_PACKAGE_LIBPNG),y)
58 LIBVNCSERVER_DEPENDENCIES += libpng
59 else
60 LIBVNCSERVER_CONF_OPTS += --without-png
61 endif
63 ifeq ($(BR2_PACKAGE_ZLIB),y)
64 LIBVNCSERVER_DEPENDENCIES += zlib
65 else
66 LIBVNCSERVER_CONF_OPTS += --without-zlib
67 endif
69 $(eval $(autotools-package))