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 / x11r7 / xserver_xorg-server / xserver_xorg-server.mk
1 ################################################################################
2 #
3 # xserver_xorg-server
4 #
5 ################################################################################
6
7 XSERVER_XORG_SERVER_VERSION = $(call qstrip,$(BR2_PACKAGE_XSERVER_XORG_SERVER_VERSION))
8 XSERVER_XORG_SERVER_SOURCE = xorg-server-$(XSERVER_XORG_SERVER_VERSION).tar.bz2
9 XSERVER_XORG_SERVER_SITE = http://xorg.freedesktop.org/releases/individual/xserver
10 XSERVER_XORG_SERVER_LICENSE = MIT
11 XSERVER_XORG_SERVER_LICENSE_FILES = COPYING
12 XSERVER_XORG_SERVER_INSTALL_STAGING = YES
13 XSERVER_XORG_SERVER_DEPENDENCIES =      \
14         xutil_util-macros               \
15         xlib_libXfont                   \
16         xlib_libX11                     \
17         xlib_libXau                     \
18         xlib_libXdmcp                   \
19         xlib_libXext                    \
20         xlib_libXfixes                  \
21         xlib_libXi                      \
22         xlib_libXrender                 \
23         xlib_libXres                    \
24         xlib_libXft                     \
25         xlib_libXcursor                 \
26         xlib_libXinerama                \
27         xlib_libXrandr                  \
28         xlib_libXdamage                 \
29         xlib_libXxf86vm                 \
30         xlib_libxkbfile                 \
31         xlib_xtrans                     \
32         xdata_xbitmaps                  \
33         xproto_bigreqsproto             \
34         xproto_compositeproto           \
35         xproto_damageproto              \
36         xproto_fixesproto               \
37         xproto_fontsproto               \
38         xproto_glproto                  \
39         xproto_inputproto               \
40         xproto_kbproto                  \
41         xproto_randrproto               \
42         xproto_renderproto              \
43         xproto_resourceproto            \
44         xproto_videoproto               \
45         xproto_xcmiscproto              \
46         xproto_xextproto                \
47         xproto_xf86bigfontproto         \
48         xproto_xf86dgaproto             \
49         xproto_xf86vidmodeproto         \
50         xproto_xproto                   \
51         xkeyboard-config                \
52         pixman                          \
53         mcookie                         \
54         host-pkgconf
55
56 XSERVER_XORG_SERVER_CONF_OPTS = \
57         --disable-config-hal \
58         --disable-xnest \
59         --disable-xephyr \
60         --disable-dmx \
61         --with-builder-addr=buildroot@buildroot.org \
62         CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/pixman-1" \
63         --with-fontrootdir=/usr/share/fonts/X11/ \
64         --$(if $(BR2_PACKAGE_XSERVER_XORG_SERVER_XVFB),en,dis)able-xvfb
65
66 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
67 XSERVER_XORG_SERVER_CONF_OPTS += \
68         --with-systemd-daemon \
69         --enable-systemd-logind
70 XSERVER_XORG_SERVER_DEPENDENCIES += systemd
71 else
72 XSERVER_XORG_SERVER_CONF_OPTS += \
73         --without-systemd-daemon \
74         --disable-systemd-logind
75 endif
76
77 # Present protocol only required for xserver 1.15+, but does not matter if
78 # enabled for older versions as they don't use it (not even optionally).
79 ifeq ($(BR2_PACKAGE_XPROTO_PRESENTPROTO),y)
80 XSERVER_XORG_SERVER_DEPENDENCIES += xproto_presentproto
81 endif
82
83 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR),y)
84 XSERVER_XORG_SERVER_CONF_OPTS += --enable-xorg
85 XSERVER_XORG_SERVER_DEPENDENCIES += libpciaccess
86 else
87 XSERVER_XORG_SERVER_CONF_OPTS += --disable-xorg
88 endif
89
90 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE),y)
91 XSERVER_XORG_SERVER_CONF_OPTS += \
92         --enable-kdrive \
93         --enable-xfbdev \
94         --disable-glx \
95         --disable-dri \
96         --disable-xsdl
97 define XSERVER_CREATE_X_SYMLINK
98         ln -f -s Xfbdev $(TARGET_DIR)/usr/bin/X
99 endef
100 XSERVER_XORG_SERVER_POST_INSTALL_TARGET_HOOKS += XSERVER_CREATE_X_SYMLINK
101
102 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_EVDEV),y)
103 XSERVER_XORG_SERVER_CONF_OPTS += --enable-kdrive-evdev
104 else
105 XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive-evdev
106 endif
107
108 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_KBD),y)
109 XSERVER_XORG_SERVER_CONF_OPTS += --enable-kdrive-kbd
110 else
111 XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive-kbd
112 endif
113
114 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE_MOUSE),y)
115 XSERVER_XORG_SERVER_CONF_OPTS += --enable-kdrive-mouse
116 else
117 XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive-mouse
118 endif
119
120 else # modular
121 XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive --disable-xfbdev
122 endif
123
124 ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
125 XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri --enable-libdrm --enable-glx
126 XSERVER_XORG_SERVER_DEPENDENCIES += libdrm mesa3d xproto_xf86driproto
127 else
128 XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri --disable-libdrm --disable-glx
129 endif
130
131 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_AIGLX),y)
132 XSERVER_XORG_SERVER_CONF_OPTS += --enable-aiglx
133 else
134 XSERVER_XORG_SERVER_CONF_OPTS += --disable-aiglx
135 endif
136
137 # Optional packages
138 ifeq ($(BR2_PACKAGE_TSLIB),y)
139 XSERVER_XORG_SERVER_DEPENDENCIES += tslib
140 XSERVER_XORG_SERVER_CONF_OPTS += --enable-tslib LDFLAGS="-lts"
141 endif
142
143 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
144 XSERVER_XORG_SERVER_DEPENDENCIES += udev
145 XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-udev
146 # udev kms support depends on libdrm
147 ifeq ($(BR2_PACKAGE_LIBDRM),y)
148 XSERVER_XORG_SERVER_DEPENDENCIES += libdrm
149 XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-udev-kms --enable-libdrm
150 else
151 XSERVER_XORG_SERVER_CONF_OPTS += --disable-config-udev-kms
152 endif
153 else
154 ifeq ($(BR2_PACKAGE_DBUS),y)
155 XSERVER_XORG_SERVER_DEPENDENCIES += dbus
156 XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-dbus
157 endif
158 endif
159
160 ifeq ($(BR2_PACKAGE_FREETYPE),y)
161 XSERVER_XORG_SERVER_DEPENDENCIES += freetype
162 endif
163
164 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
165 XSERVER_XORG_SERVER_DEPENDENCIES += libunwind
166 XSERVER_XORG_SERVER_CONF_OPTS += --enable-libunwind
167 else
168 XSERVER_XORG_SERVER_CONF_OPTS += --disable-libunwind
169 endif
170
171 ifeq ($(BR2_PACKAGE_XPROTO_RECORDPROTO),y)
172 XSERVER_XORG_SERVER_DEPENDENCIES += xproto_recordproto
173 XSERVER_XORG_SERVER_CONF_OPTS += --enable-record
174 else
175 XSERVER_XORG_SERVER_CONF_OPTS += --disable-record
176 endif
177
178 ifneq ($(BR2_PACKAGE_XLIB_LIBXVMC),y)
179 XSERVER_XORG_SERVER_CONF_OPTS += --disable-xvmc
180 endif
181
182 ifeq ($(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),y)
183 XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libXcomposite
184 else
185 XSERVER_XORG_SERVER_CONF_OPTS += --disable-composite
186 endif
187
188 ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR),y)
189 ifeq ($(BR2_PACKAGE_XPROTO_DRI2PROTO),y)
190 XSERVER_XORG_SERVER_DEPENDENCIES += xproto_dri2proto
191 XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri2
192 else
193 XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri2
194 endif
195 ifeq ($(BR2_PACKAGE_XPROTO_DRI3PROTO),y)
196 XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libxshmfence xproto_dri3proto
197 XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri3
198 ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
199 XSERVER_XORG_SERVER_DEPENDENCIES += libepoxy
200 XSERVER_XORG_SERVER_CONF_OPTS += --enable-glamor
201 endif
202 else
203 XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri3 --disable-glamor
204 endif
205 else
206 XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri2 --disable-dri3 --disable-glamor
207 endif
208
209 ifeq ($(BR2_PACKAGE_XLIB_LIBXSCRNSAVER),y)
210 XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libXScrnSaver
211 XSERVER_XORG_SERVER_CONF_OPTS += --enable-screensaver
212 else
213 XSERVER_XORG_SERVER_CONF_OPTS += --disable-screensaver
214 endif
215
216 ifneq ($(BR2_PACKAGE_XLIB_LIBDMX),y)
217 XSERVER_XORG_SERVER_CONF_OPTS += --disable-dmx
218 endif
219
220 ifeq ($(BR2_PACKAGE_OPENSSL),y)
221 XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libcrypto
222 XSERVER_XORG_SERVER_DEPENDENCIES += openssl
223 else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
224 XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libgcrypt
225 XSERVER_XORG_SERVER_DEPENDENCIES += libgcrypt
226 else
227 XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libsha1
228 XSERVER_XORG_SERVER_DEPENDENCIES += libsha1
229 endif
230
231 $(eval $(autotools-package))