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 / vlc / vlc.mk
1 ################################################################################
2 #
3 # vlc
4 #
5 ################################################################################
6
7 VLC_VERSION = 2.2.1
8 VLC_SITE = http://get.videolan.org/vlc/$(VLC_VERSION)
9 VLC_SOURCE = vlc-$(VLC_VERSION).tar.xz
10 VLC_LICENSE = GPLv2+ LGPLv2.1+
11 VLC_LICENSE_FILES = COPYING COPYING.LIB
12 VLC_DEPENDENCIES = host-pkgconf
13 VLC_AUTORECONF = YES
14
15 # VLC defines two autoconf functions which are also defined by our own pkg.m4
16 # from pkgconf. Unfortunately, they are defined in a different way: VLC adds
17 # --enable- options, but pkg.m4 adds --with- options. To make sure we use
18 # VLC's definition, rename these two functions.
19 define VLC_OVERRIDE_PKG_M4
20         $(SED) 's/PKG_WITH_MODULES/VLC_PKG_WITH_MODULES/g' \
21                 -e 's/PKG_HAVE_WITH_MODULES/VLC_PKG_HAVE_WITH_MODULES/g' \
22                 $(@D)/configure.ac $(@D)/m4/with_pkg.m4
23 endef
24 VLC_POST_PATCH_HOOKS += VLC_OVERRIDE_PKG_M4
25
26 VLC_CONF_OPTS += \
27         --disable-gles1 \
28         --disable-a52 \
29         --disable-shout \
30         --disable-twolame \
31         --disable-dca \
32         --disable-schroedinger \
33         --disable-fluidsynth \
34         --disable-zvbi \
35         --disable-kate \
36         --disable-caca \
37         --disable-jack \
38         --disable-samplerate \
39         --disable-chromaprint \
40         --disable-goom \
41         --disable-projectm \
42         --disable-vsxu \
43         --disable-mtp \
44         --disable-opencv \
45         --disable-mmal-codec \
46         --disable-mmal-vout \
47         --disable-dvdnav \
48         --disable-vpx \
49         --disable-jpeg \
50         --disable-x262 \
51         --disable-x265 \
52         --disable-mfx \
53         --disable-vdpau \
54         --disable-addonmanagermodules \
55
56 # Building static and shared doesn't work, so force static off.
57 ifeq ($(BR2_STATIC_LIBS),)
58 VLC_CONF_OPTS += --disable-static
59 endif
60
61 ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
62 VLC_CONF_OPTS += --enable-altivec
63 else
64 VLC_CONF_OPTS += --disable-altivec
65 endif
66
67 ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
68 VLC_CONF_OPTS += --enable-alsa
69 VLC_DEPENDENCIES += alsa-lib
70 else
71 VLC_CONF_OPTS += --disable-alsa
72 endif
73
74 # bonjour support needs avahi-client, which needs avahi-daemon and dbus
75 ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yyy)
76 VLC_CONF_OPTS += --enable-bonjour
77 VLC_DEPENDENCIES += avahi dbus
78 else
79 VLC_CONF_OPTS += --disable-bonjour
80 endif
81
82 ifeq ($(BR2_PACKAGE_DBUS),y)
83 VLC_CONF_OPTS += --enable-dbus
84 VLC_DEPENDENCIES += dbus
85 else
86 VLC_CONF_OPTS += --disable-dbus
87 endif
88
89 ifeq ($(BR2_PACKAGE_DIRECTFB),y)
90 VLC_CONF_OPTS += --enable-directfb
91 VLC_CONF_ENV += ac_cv_path_DIRECTFB_CONFIG=$(STAGING_DIR)/usr/bin/directfb-config
92 VLC_DEPENDENCIES += directfb
93 else
94 VLC_CONF_OPTS += --disable-directfb
95 endif
96
97 ifeq ($(BR2_PACKAGE_FAAD2),y)
98 VLC_CONF_OPTS += --enable-faad
99 VLC_DEPENDENCIES += faad2
100 else
101 VLC_CONF_OPTS += --disable-faad
102 endif
103
104 ifeq ($(BR2_PACKAGE_FFMPEG),y)
105 VLC_CONF_OPTS += --enable-avcodec
106 VLC_DEPENDENCIES += ffmpeg
107 else
108 VLC_CONF_OPTS += --disable-avcodec
109 endif
110
111 ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC),y)
112 VLC_CONF_OPTS += --enable-postproc
113 else
114 VLC_CONF_OPTS += --disable-postproc
115 endif
116
117 ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
118 VLC_CONF_OPTS += --enable-swscale
119 else
120 VLC_CONF_OPTS += --disable-swscale
121 endif
122
123 ifeq ($(BR2_PACKAGE_FLAC),y)
124 VLC_CONF_OPTS += --enable-flac
125 VLC_DEPENDENCIES += flac
126 else
127 VLC_CONF_OPTS += --disable-flac
128 endif
129
130 ifeq ($(BR2_PACKAGE_FREERDP),y)
131 VLC_CONF_OPTS += --enable-freerdp
132 VLC_DEPENDENCIES += freerdp
133 else
134 VLC_CONF_OPTS += --disable-libfreerdp
135 endif
136
137 ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
138 VLC_DEPENDENCIES += libgl
139 endif
140
141 ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
142 VLC_CONF_OPTS += --enable-gles2
143 VLC_DEPENDENCIES += libgles
144 else
145 VLC_CONF_OPTS += --disable-gles2
146 endif
147
148 ifeq ($(BR2_PACKAGE_OPUS),y)
149 VLC_CONF_OPTS += --enable-opus
150 VLC_DEPENDENCIES += libvorbis opus
151 else
152 VLC_CONF_OPTS += --disable-opus
153 endif
154
155 ifeq ($(BR2_PACKAGE_LIBASS),y)
156 VLC_CONF_OPTS += --enable-libass
157 VLC_DEPENDENCIES += libass
158 else
159 VLC_CONF_OPTS += --disable-libass
160 endif
161
162 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
163 VLC_CONF_OPTS += --enable-libgcrypt
164 VLC_DEPENDENCIES += libgcrypt
165 VLC_CONF_ENV += \
166         GCRYPT_CONFIG="$(STAGING_DIR)/usr/bin/libgcrypt-config"
167 else
168 VLC_CONF_OPTS += --disable-libgcrypt
169 endif
170
171 ifeq ($(BR2_PACKAGE_LIBMAD),y)
172 VLC_CONF_OPTS += --enable-mad
173 VLC_DEPENDENCIES += libmad
174 else
175 VLC_CONF_OPTS += --disable-mad
176 endif
177
178 ifeq ($(BR2_PACKAGE_LIBMODPLUG),y)
179 VLC_CONF_OPTS += --enable-mod
180 VLC_DEPENDENCIES += libmodplug
181 else
182 VLC_CONF_OPTS += --disable-mod
183 endif
184
185 ifeq ($(BR2_PACKAGE_LIBMPEG2),y)
186 VLC_CONF_OPTS += --enable-libmpeg2
187 VLC_DEPENDENCIES += libmpeg2
188 else
189 VLC_CONF_OPTS += --disable-libmpeg2
190 endif
191
192 ifeq ($(BR2_PACKAGE_LIBPNG),y)
193 VLC_CONF_OPTS += --enable-png
194 VLC_DEPENDENCIES += libpng
195 else
196 VLC_CONF_OPTS += --disable-png
197 endif
198
199 ifeq ($(BR2_PACKAGE_LIBRSVG),y)
200 VLC_CONF_OPTS += --enable-svg --enable-svgdec
201 VLC_DEPENDENCIES += librsvg
202 else
203 VLC_CONF_OPTS += --disable-svg --disable-svgdec
204 endif
205
206 ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
207 VLC_CONF_OPTS += --enable-theora
208 VLC_DEPENDENCIES += libtheora
209 else
210 VLC_CONF_OPTS += --disable-theora
211 endif
212
213 ifeq ($(BR2_PACKAGE_LIBUPNP),y)
214 VLC_CONF_OPTS += --enable-upnp
215 VLC_DEPENDENCIES += libupnp
216 else
217 VLC_CONF_OPTS += --disable-upnp
218 endif
219
220 ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
221 VLC_CONF_OPTS += --enable-vorbis
222 VLC_DEPENDENCIES += libvorbis
223 else
224 VLC_CONF_OPTS += --disable-vorbis
225 endif
226
227 ifeq ($(BR2_PACKAGE_LIBV4L),y)
228 VLC_CONF_OPTS += --enable-v4l2
229 VLC_DEPENDENCIES += libv4l
230 else
231 VLC_CONF_OPTS += --disable-v4l2
232 endif
233
234 ifeq ($(BR2_PACKAGE_LIBXCB),y)
235 VLC_CONF_OPTS += --enable-xcb
236 VLC_DEPENDENCIES += libxcb
237 else
238 VLC_CONF_OPTS += --disable-xcb
239 endif
240
241 ifeq ($(BR2_PACKAGE_LIBXML2),y)
242 VLC_CONF_OPTS += --enable-libxml2
243 VLC_DEPENDENCIES += libxml2
244 else
245 VLC_CONF_OPTS += --disable-libxml2
246 endif
247
248 ifeq ($(BR2_PACKAGE_LIVE555),y)
249 VLC_CONF_OPTS += --enable-live555
250 VLC_DEPENDENCIES += live555
251 VLC_CONF_ENV += \
252         LIVE555_CFLAGS="\
253                 -I$(STAGING_DIR)/usr/include/BasicUsageEnvironment \
254                 -I$(STAGING_DIR)/usr/include/groupsock \
255                 -I$(STAGING_DIR)/usr/include/liveMedia \
256                 -I$(STAGING_DIR)/usr/include/UsageEnvironment \
257                 " \
258         LIVE555_LIBS="-L$(STAGING_DIR)/usr/lib -lliveMedia"
259 else
260 VLC_CONF_OPTS += --disable-live555
261 endif
262
263 ifeq ($(BR2_PACKAGE_LUA),y)
264 VLC_CONF_OPTS += --enable-lua
265 VLC_DEPENDENCIES += lua host-lua
266 else
267 VLC_CONF_OPTS += --disable-lua
268 endif
269
270 ifeq ($(BR2_PACKAGE_QT_GUI_MODULE),y)
271 VLC_CONF_OPTS += --enable-qt
272 VLC_CONF_ENV += \
273         ac_cv_path_MOC=$(HOST_DIR)/usr/bin/moc \
274         ac_cv_path_RCC=$(HOST_DIR)/usr/bin/rcc \
275         ac_cv_path_UIC=$(HOST_DIR)/usr/bin/uic
276 VLC_DEPENDENCIES += qt
277 else
278 VLC_CONF_OPTS += --disable-qt
279 endif
280
281 ifeq ($(BR2_PACKAGE_SDL_X11),y)
282 VLC_CONF_OPTS += --enable-sdl
283 VLC_DEPENDENCIES += sdl
284 else
285 VLC_CONF_OPTS += --disable-sdl
286 endif
287
288 ifeq ($(BR2_PACKAGE_SDL_IMAGE),y)
289 VLC_CONF_OPTS += --enable-sdl-image
290 VLC_DEPENDENCIES += sdl_image
291 else
292 VLC_CONF_OPTS += --disable-sdl-image
293 endif
294
295 ifeq ($(BR2_PACKAGE_SPEEX),y)
296 VLC_CONF_OPTS += --enable-speex
297 VLC_DEPENDENCIES += speex
298 else
299 VLC_CONF_OPTS += --disable-speex
300 endif
301
302 ifeq ($(BR2_PACKAGE_TREMOR),y)
303 VLC_CONF_OPTS += --enable-tremor
304 VLC_DEPENDENCIES += tremor
305 else
306 VLC_CONF_OPTS += --disable-tremor
307 endif
308
309 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
310 VLC_CONF_OPTS += --enable-udev
311 VLC_DEPENDENCIES += udev
312 else
313 VLC_CONF_OPTS += --disable-udev
314 endif
315
316 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
317 VLC_CONF_OPTS += --with-x
318 VLC_DEPENDENCIES += xlib_libX11
319 else
320 VLC_CONF_OPTS += --without-x
321 endif
322
323 $(eval $(autotools-package))