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 / sconeserver / sconeserver.mk
1 ################################################################################
2 #
3 # sconeserver
4 #
5 ################################################################################
6
7 # Release 0.6.0 doesn't build cleanly, so use a recent
8 # Git commit.
9 SCONESERVER_VERSION = 3b886c3dda6eda39bcb27472d29ed7fd3185ba1d
10 SCONESERVER_SITE = $(call github,sconemad,sconeserver,$(SCONESERVER_VERSION))
11 SCONESERVER_LICENSE = GPLv2+
12 SCONESERVER_LICENSE_FILES = COPYING
13
14 SCONESERVER_AUTORECONF = YES
15 SCONESERVER_DEPENDENCIES += pcre
16 SCONESERVER_CONF_OPTS += --with-ip --with-local --with-ip6
17
18 # Sconeserver configure script fails to find the libxml2 headers.
19 ifeq ($(BR2_PACKAGE_LIBXML2),y)
20 SCONESERVER_CONF_OPTS += \
21         --with-xml2-config="$(STAGING_DIR)/usr/bin/xml2-config"
22 endif
23
24 ifeq ($(BR2_PACKAGE_OPENSSL),y)
25 SCONESERVER_DEPENDENCIES += openssl
26 SCONESERVER_CONF_OPTS += --with-ssl
27 ifeq ($(BR2_STATIC_LIBS),y)
28 SCONESERVER_CONF_ENV += SSL_LIBADD=-lz
29 endif
30 else
31 SCONESERVER_CONF_OPTS += --without-ssl
32 endif
33
34 ifeq ($(BR2_PACKAGE_SCONESERVER_EXAMPLES),y)
35 SCONESERVER_CONF_OPTS += --with-examples
36 else
37 SCONESERVER_CONF_OPTS += --without-examples
38 endif
39
40 ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE),y)
41 SCONESERVER_DEPENDENCIES += libxml2
42 SCONESERVER_CONF_OPTS += --with-sconesite
43 else
44 SCONESERVER_CONF_OPTS += --without-sconesite
45 endif
46
47 ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE_IMAGE),y)
48 SCONESERVER_DEPENDENCIES += imagemagick host-pkgconf
49 SCONESERVER_CONF_OPTS += \
50         --with-sconesite-image \
51         --with-Magick++-config="$(STAGING_DIR)/usr/bin/Magick++-config"
52 else
53 SCONESERVER_CONF_OPTS += --without-sconesite-image
54 endif
55
56 ifeq ($(BR2_PACKAGE_SCONESERVER_MYSQL),y)
57 SCONESERVER_DEPENDENCIES += mysql
58 SCONESERVER_CONF_OPTS += \
59         --with-mysql \
60         --with-mysql_config="$(STAGING_DIR)/usr/bin/mysql_config" \
61         LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/mysql"
62 else
63 SCONESERVER_CONF_OPTS += --without-mysql
64 endif
65
66 ifeq ($(BR2_PACKAGE_SCONESERVER_BLUETOOTH),y)
67 SCONESERVER_DEPENDENCIES += bluez_utils
68 SCONESERVER_CONF_OPTS += --with-bluetooth
69 else
70 SCONESERVER_CONF_OPTS += --without-bluetooth
71 endif
72
73 ifeq ($(BR2_PACKAGE_SCONESERVER_RSS),y)
74 SCONESERVER_DEPENDENCIES += libxml2
75 SCONESERVER_CONF_OPTS += --with-rss
76 else
77 SCONESERVER_CONF_OPTS += --without-rss
78 endif
79
80 ifeq ($(BR2_PACKAGE_SCONESERVER_LOCATION),y)
81 SCONESERVER_DEPENDENCIES += gpsd
82 SCONESERVER_CONF_OPTS += --with-location
83 else
84 SCONESERVER_CONF_OPTS += --without-location
85 endif
86
87 ifeq ($(BR2_PACKAGE_SCONESERVER_LETTUCE),y)
88 SCONESERVER_CONF_OPTS += --with-lettuce
89 else
90 SCONESERVER_CONF_OPTS += --without-lettuce
91 endif
92
93 ifeq ($(BR2_PACKAGE_SCONESERVER_MATHS),y)
94 SCONESERVER_DEPENDENCIES += mpfr
95 SCONESERVER_CONF_OPTS += --with-maths
96 else
97 SCONESERVER_CONF_OPTS += --without-maths
98 endif
99
100 ifeq ($(BR2_PACKAGE_SCONESERVER_TESTBUILDER),y)
101 SCONESERVER_CONF_OPTS += --with-testbuilder
102 else
103 SCONESERVER_CONF_OPTS += --without-testbuilder
104 endif
105
106 ifeq ($(BR2_PACKAGE_SCONESERVER_UI),y)
107 SCONESERVER_DEPENDENCIES += xlib_libX11
108 SCONESERVER_CONF_OPTS += --with-ui
109 else
110 SCONESERVER_CONF_OPTS += --without-ui
111 endif
112
113 $(eval $(autotools-package))