1 ################################################################################
5 ################################################################################
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
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
24 VLC_POST_PATCH_HOOKS += VLC_OVERRIDE_PKG_M4
32 --disable-schroedinger \
33 --disable-fluidsynth \
38 --disable-samplerate \
39 --disable-chromaprint \
45 --disable-mmal-codec \
54 --disable-addonmanagermodules \
56 # Building static and shared doesn't work, so force static off.
57 ifeq ($(BR2_STATIC_LIBS),)
58 VLC_CONF_OPTS += --disable-static
61 ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
62 VLC_CONF_OPTS += --enable-altivec
64 VLC_CONF_OPTS += --disable-altivec
67 ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
68 VLC_CONF_OPTS += --enable-alsa
69 VLC_DEPENDENCIES += alsa-lib
71 VLC_CONF_OPTS += --disable-alsa
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
79 VLC_CONF_OPTS += --disable-bonjour
82 ifeq ($(BR2_PACKAGE_DBUS),y)
83 VLC_CONF_OPTS += --enable-dbus
84 VLC_DEPENDENCIES += dbus
86 VLC_CONF_OPTS += --disable-dbus
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
94 VLC_CONF_OPTS += --disable-directfb
97 ifeq ($(BR2_PACKAGE_FAAD2),y)
98 VLC_CONF_OPTS += --enable-faad
99 VLC_DEPENDENCIES += faad2
101 VLC_CONF_OPTS += --disable-faad
104 ifeq ($(BR2_PACKAGE_FFMPEG),y)
105 VLC_CONF_OPTS += --enable-avcodec
106 VLC_DEPENDENCIES += ffmpeg
108 VLC_CONF_OPTS += --disable-avcodec
111 ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC),y)
112 VLC_CONF_OPTS += --enable-postproc
114 VLC_CONF_OPTS += --disable-postproc
117 ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
118 VLC_CONF_OPTS += --enable-swscale
120 VLC_CONF_OPTS += --disable-swscale
123 ifeq ($(BR2_PACKAGE_FLAC),y)
124 VLC_CONF_OPTS += --enable-flac
125 VLC_DEPENDENCIES += flac
127 VLC_CONF_OPTS += --disable-flac
130 ifeq ($(BR2_PACKAGE_FREERDP),y)
131 VLC_CONF_OPTS += --enable-freerdp
132 VLC_DEPENDENCIES += freerdp
134 VLC_CONF_OPTS += --disable-libfreerdp
137 ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
138 VLC_DEPENDENCIES += libgl
141 ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
142 VLC_CONF_OPTS += --enable-gles2
143 VLC_DEPENDENCIES += libgles
145 VLC_CONF_OPTS += --disable-gles2
148 ifeq ($(BR2_PACKAGE_OPUS),y)
149 VLC_CONF_OPTS += --enable-opus
150 VLC_DEPENDENCIES += libvorbis opus
152 VLC_CONF_OPTS += --disable-opus
155 ifeq ($(BR2_PACKAGE_LIBASS),y)
156 VLC_CONF_OPTS += --enable-libass
157 VLC_DEPENDENCIES += libass
159 VLC_CONF_OPTS += --disable-libass
162 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
163 VLC_CONF_OPTS += --enable-libgcrypt
164 VLC_DEPENDENCIES += libgcrypt
166 GCRYPT_CONFIG="$(STAGING_DIR)/usr/bin/libgcrypt-config"
168 VLC_CONF_OPTS += --disable-libgcrypt
171 ifeq ($(BR2_PACKAGE_LIBMAD),y)
172 VLC_CONF_OPTS += --enable-mad
173 VLC_DEPENDENCIES += libmad
175 VLC_CONF_OPTS += --disable-mad
178 ifeq ($(BR2_PACKAGE_LIBMODPLUG),y)
179 VLC_CONF_OPTS += --enable-mod
180 VLC_DEPENDENCIES += libmodplug
182 VLC_CONF_OPTS += --disable-mod
185 ifeq ($(BR2_PACKAGE_LIBMPEG2),y)
186 VLC_CONF_OPTS += --enable-libmpeg2
187 VLC_DEPENDENCIES += libmpeg2
189 VLC_CONF_OPTS += --disable-libmpeg2
192 ifeq ($(BR2_PACKAGE_LIBPNG),y)
193 VLC_CONF_OPTS += --enable-png
194 VLC_DEPENDENCIES += libpng
196 VLC_CONF_OPTS += --disable-png
199 ifeq ($(BR2_PACKAGE_LIBRSVG),y)
200 VLC_CONF_OPTS += --enable-svg --enable-svgdec
201 VLC_DEPENDENCIES += librsvg
203 VLC_CONF_OPTS += --disable-svg --disable-svgdec
206 ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
207 VLC_CONF_OPTS += --enable-theora
208 VLC_DEPENDENCIES += libtheora
210 VLC_CONF_OPTS += --disable-theora
213 ifeq ($(BR2_PACKAGE_LIBUPNP),y)
214 VLC_CONF_OPTS += --enable-upnp
215 VLC_DEPENDENCIES += libupnp
217 VLC_CONF_OPTS += --disable-upnp
220 ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
221 VLC_CONF_OPTS += --enable-vorbis
222 VLC_DEPENDENCIES += libvorbis
224 VLC_CONF_OPTS += --disable-vorbis
227 ifeq ($(BR2_PACKAGE_LIBV4L),y)
228 VLC_CONF_OPTS += --enable-v4l2
229 VLC_DEPENDENCIES += libv4l
231 VLC_CONF_OPTS += --disable-v4l2
234 ifeq ($(BR2_PACKAGE_LIBXCB),y)
235 VLC_CONF_OPTS += --enable-xcb
236 VLC_DEPENDENCIES += libxcb
238 VLC_CONF_OPTS += --disable-xcb
241 ifeq ($(BR2_PACKAGE_LIBXML2),y)
242 VLC_CONF_OPTS += --enable-libxml2
243 VLC_DEPENDENCIES += libxml2
245 VLC_CONF_OPTS += --disable-libxml2
248 ifeq ($(BR2_PACKAGE_LIVE555),y)
249 VLC_CONF_OPTS += --enable-live555
250 VLC_DEPENDENCIES += live555
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 \
258 LIVE555_LIBS="-L$(STAGING_DIR)/usr/lib -lliveMedia"
260 VLC_CONF_OPTS += --disable-live555
263 ifeq ($(BR2_PACKAGE_LUA),y)
264 VLC_CONF_OPTS += --enable-lua
265 VLC_DEPENDENCIES += lua host-lua
267 VLC_CONF_OPTS += --disable-lua
270 ifeq ($(BR2_PACKAGE_QT_GUI_MODULE),y)
271 VLC_CONF_OPTS += --enable-qt
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
278 VLC_CONF_OPTS += --disable-qt
281 ifeq ($(BR2_PACKAGE_SDL_X11),y)
282 VLC_CONF_OPTS += --enable-sdl
283 VLC_DEPENDENCIES += sdl
285 VLC_CONF_OPTS += --disable-sdl
288 ifeq ($(BR2_PACKAGE_SDL_IMAGE),y)
289 VLC_CONF_OPTS += --enable-sdl-image
290 VLC_DEPENDENCIES += sdl_image
292 VLC_CONF_OPTS += --disable-sdl-image
295 ifeq ($(BR2_PACKAGE_SPEEX),y)
296 VLC_CONF_OPTS += --enable-speex
297 VLC_DEPENDENCIES += speex
299 VLC_CONF_OPTS += --disable-speex
302 ifeq ($(BR2_PACKAGE_TREMOR),y)
303 VLC_CONF_OPTS += --enable-tremor
304 VLC_DEPENDENCIES += tremor
306 VLC_CONF_OPTS += --disable-tremor
309 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
310 VLC_CONF_OPTS += --enable-udev
311 VLC_DEPENDENCIES += udev
313 VLC_CONF_OPTS += --disable-udev
316 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
317 VLC_CONF_OPTS += --with-x
318 VLC_DEPENDENCIES += xlib_libX11
320 VLC_CONF_OPTS += --without-x
323 $(eval $(autotools-package))