The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libvncserver / libvncserver.mk
1 ################################################################################
2 #
3 # libvncserver
4 #
5 ################################################################################
6
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
15
16 # Upstream decided to remove generated autotools files from the
17 # tarball, so we need to generate them.
18 LIBVNCSERVER_AUTORECONF = YES
19
20 # libvncserver does not get along with newer libva versions
21 # https://github.com/LibVNC/libvncserver/issues/11
22 LIBVNCSERVER_CONF_OPTS += --without-libva
23
24 # only used for examples
25 LIBVNCSERVER_CONF_OPTS += --with-sdl-config=/bin/false
26
27 ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
28 LIBVNCSERVER_CONF_OPTS += --without-pthread
29 endif
30
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
37
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
44
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
50
51 ifeq ($(BR2_PACKAGE_JPEG),y)
52 LIBVNCSERVER_DEPENDENCIES += jpeg
53 else
54 LIBVNCSERVER_CONF_OPTS += --without-jpeg
55 endif
56
57 ifeq ($(BR2_PACKAGE_LIBPNG),y)
58 LIBVNCSERVER_DEPENDENCIES += libpng
59 else
60 LIBVNCSERVER_CONF_OPTS += --without-png
61 endif
62
63 ifeq ($(BR2_PACKAGE_ZLIB),y)
64 LIBVNCSERVER_DEPENDENCIES += zlib
65 else
66 LIBVNCSERVER_CONF_OPTS += --without-zlib
67 endif
68
69 $(eval $(autotools-package))