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 # Install vlc libraries in staging.
16 VLC_INSTALL_STAGING
= YES
18 # VLC defines two autoconf functions which are also defined by our own pkg.m4
19 # from pkgconf. Unfortunately, they are defined in a different way: VLC adds
20 # --enable- options, but pkg.m4 adds --with- options. To make sure we use
21 # VLC's definition, rename these two functions.
22 define VLC_OVERRIDE_PKG_M4
23 $(SED
) 's/PKG_WITH_MODULES/VLC_PKG_WITH_MODULES/g' \
24 -e
's/PKG_HAVE_WITH_MODULES/VLC_PKG_HAVE_WITH_MODULES/g' \
25 $(@D
)/configure.ac
$(@D
)/m4
/with_pkg.m4
27 VLC_POST_PATCH_HOOKS
+= VLC_OVERRIDE_PKG_M4
35 --disable-schroedinger \
36 --disable-fluidsynth \
41 --disable-samplerate \
42 --disable-chromaprint \
47 --disable-mmal-codec \
56 --disable-addonmanagermodules \
57 --enable-run-as-root \
59 # Building static and shared doesn't work, so force static off.
60 ifeq ($(BR2_STATIC_LIBS
),)
61 VLC_CONF_OPTS
+= --disable-static
64 ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC
),y
)
65 VLC_CONF_OPTS
+= --enable-altivec
67 VLC_CONF_OPTS
+= --disable-altivec
70 ifeq ($(BR2_X86_CPU_HAS_SSE
),y
)
71 VLC_CONF_OPTS
+= --enable-sse
73 VLC_CONF_OPTS
+= --disable-sse
76 ifeq ($(BR2_PACKAGE_ALSA_LIB
),y
)
77 VLC_CONF_OPTS
+= --enable-alsa
78 VLC_DEPENDENCIES
+= alsa-lib
80 VLC_CONF_OPTS
+= --disable-alsa
83 # bonjour support needs avahi-client, which needs avahi-daemon and dbus
84 ifeq ($(BR2_PACKAGE_AVAHI
)$(BR2_PACKAGE_AVAHI_DAEMON
)$(BR2_PACKAGE_DBUS
),yyy
)
85 VLC_CONF_OPTS
+= --enable-bonjour
86 VLC_DEPENDENCIES
+= avahi dbus
88 VLC_CONF_OPTS
+= --disable-bonjour
91 ifeq ($(BR2_PACKAGE_DBUS
),y
)
92 VLC_CONF_OPTS
+= --enable-dbus
93 VLC_DEPENDENCIES
+= dbus
95 VLC_CONF_OPTS
+= --disable-dbus
98 ifeq ($(BR2_PACKAGE_DIRECTFB
),y
)
99 VLC_CONF_OPTS
+= --enable-directfb
100 VLC_CONF_ENV
+= ac_cv_path_DIRECTFB_CONFIG
=$(STAGING_DIR
)/usr
/bin
/directfb-config
101 VLC_DEPENDENCIES
+= directfb
103 VLC_CONF_OPTS
+= --disable-directfb
106 ifeq ($(BR2_PACKAGE_FAAD2
),y
)
107 VLC_CONF_OPTS
+= --enable-faad
108 VLC_DEPENDENCIES
+= faad2
110 VLC_CONF_OPTS
+= --disable-faad
113 ifeq ($(BR2_PACKAGE_FFMPEG
),y
)
114 VLC_CONF_OPTS
+= --enable-avcodec
115 VLC_DEPENDENCIES
+= ffmpeg
117 VLC_CONF_OPTS
+= --disable-avcodec
120 ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC
),y
)
121 VLC_CONF_OPTS
+= --enable-postproc
123 VLC_CONF_OPTS
+= --disable-postproc
126 ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE
),y
)
127 VLC_CONF_OPTS
+= --enable-swscale
129 VLC_CONF_OPTS
+= --disable-swscale
132 ifeq ($(BR2_PACKAGE_FLAC
),y
)
133 VLC_CONF_OPTS
+= --enable-flac
134 VLC_DEPENDENCIES
+= flac
136 VLC_CONF_OPTS
+= --disable-flac
139 ifeq ($(BR2_PACKAGE_FREERDP
),y
)
140 VLC_CONF_OPTS
+= --enable-freerdp
141 VLC_DEPENDENCIES
+= freerdp
143 VLC_CONF_OPTS
+= --disable-libfreerdp
146 ifeq ($(BR2_PACKAGE_HAS_LIBGL
),y
)
147 VLC_DEPENDENCIES
+= libgl
150 ifeq ($(BR2_PACKAGE_HAS_LIBGLES
),y
)
151 VLC_CONF_OPTS
+= --enable-gles2
152 VLC_DEPENDENCIES
+= libgles
154 VLC_CONF_OPTS
+= --disable-gles2
157 ifeq ($(BR2_PACKAGE_OPENCV
)$(BR2_PACKAGE_OPENCV3
),y
)
158 VLC_CONF_OPTS
+= --enable-opencv
159 ifeq ($(BR2_PACKAGE_OPENCV
),y
)
160 VLC_DEPENDENCIES
+= opencv
162 VLC_DEPENDENCIES
+= opencv3
165 VLC_CONF_OPTS
+= --disable-opencv
168 ifeq ($(BR2_PACKAGE_OPUS
),y
)
169 VLC_CONF_OPTS
+= --enable-opus
170 VLC_DEPENDENCIES
+= libvorbis opus
172 VLC_CONF_OPTS
+= --disable-opus
175 ifeq ($(BR2_PACKAGE_LIBASS
),y
)
176 VLC_CONF_OPTS
+= --enable-libass
177 VLC_DEPENDENCIES
+= libass
179 VLC_CONF_OPTS
+= --disable-libass
182 ifeq ($(BR2_PACKAGE_LIBBLURAY
),y
)
183 VLC_CONF_OPTS
+= --enable-bluray
184 VLC_DEPENDENCIES
+= libbluray
186 VLC_CONF_OPTS
+= --disable-bluray
189 ifeq ($(BR2_PACKAGE_LIBCDDB
),y
)
190 VLC_CONF_OPTS
+= --enable-libcddb
191 VLC_DEPENDENCIES
+= libcddb
193 VLC_CONF_OPTS
+= --disable-libcddb
196 ifeq ($(BR2_PACKAGE_LIBDVBPSI
),y
)
197 VLC_CONF_OPTS
+= --enable-dvbpsi
198 VLC_DEPENDENCIES
+= libdvbpsi
200 VLC_CONF_OPTS
+= --disable-dvbpsi
203 ifeq ($(BR2_PACKAGE_LIBGCRYPT
),y
)
204 VLC_CONF_OPTS
+= --enable-libgcrypt
205 VLC_DEPENDENCIES
+= libgcrypt
207 GCRYPT_CONFIG
="$(STAGING_DIR)/usr/bin/libgcrypt-config"
209 VLC_CONF_OPTS
+= --disable-libgcrypt
212 ifeq ($(BR2_PACKAGE_LIBMAD
),y
)
213 VLC_CONF_OPTS
+= --enable-mad
214 VLC_DEPENDENCIES
+= libmad
216 VLC_CONF_OPTS
+= --disable-mad
219 ifeq ($(BR2_PACKAGE_LIBMATROSKA
),y
)
220 VLC_CONF_OPTS
+= --enable-mkv
221 VLC_DEPENDENCIES
+= libmatroska
223 VLC_CONF_OPTS
+= --disable-mkv
226 ifeq ($(BR2_PACKAGE_LIBMODPLUG
),y
)
227 VLC_CONF_OPTS
+= --enable-mod
228 VLC_DEPENDENCIES
+= libmodplug
230 VLC_CONF_OPTS
+= --disable-mod
233 ifeq ($(BR2_PACKAGE_LIBMPEG2
),y
)
234 VLC_CONF_OPTS
+= --enable-libmpeg2
235 VLC_DEPENDENCIES
+= libmpeg2
237 VLC_CONF_OPTS
+= --disable-libmpeg2
240 ifeq ($(BR2_PACKAGE_LIBPNG
),y
)
241 VLC_CONF_OPTS
+= --enable-png
242 VLC_DEPENDENCIES
+= libpng
244 VLC_CONF_OPTS
+= --disable-png
247 ifeq ($(BR2_PACKAGE_LIBRSVG
),y
)
248 VLC_CONF_OPTS
+= --enable-svg
--enable-svgdec
249 VLC_DEPENDENCIES
+= librsvg
251 VLC_CONF_OPTS
+= --disable-svg
--disable-svgdec
254 ifeq ($(BR2_PACKAGE_LIBSSH2
),y
)
255 VLC_CONF_OPTS
+= --enable-sftp
256 VLC_DEPENDENCIES
+= libssh2
258 VLC_CONF_OPTS
+= --disable-sftp
261 ifeq ($(BR2_PACKAGE_LIBSIDPLAY2
),y
)
262 VLC_CONF_OPTS
+= --enable-sid
263 VLC_DEPENDENCIES
+= libsidplay2
265 VLC_CONF_OPTS
+= --disable-sid
268 ifeq ($(BR2_PACKAGE_LIBTHEORA
),y
)
269 VLC_CONF_OPTS
+= --enable-theora
270 VLC_DEPENDENCIES
+= libtheora
272 VLC_CONF_OPTS
+= --disable-theora
275 ifeq ($(BR2_PACKAGE_LIBUPNP
),y
)
276 VLC_CONF_OPTS
+= --enable-upnp
277 VLC_DEPENDENCIES
+= libupnp
279 VLC_CONF_OPTS
+= --disable-upnp
282 ifeq ($(BR2_PACKAGE_LIBVNCSERVER
),y
)
283 VLC_CONF_OPTS
+= --enable-vnc
284 VLC_DEPENDENCIES
+= libvncserver
286 VLC_CONF_OPTS
+= --disable-vnc
289 ifeq ($(BR2_PACKAGE_LIBVORBIS
),y
)
290 VLC_CONF_OPTS
+= --enable-vorbis
291 VLC_DEPENDENCIES
+= libvorbis
293 VLC_CONF_OPTS
+= --disable-vorbis
296 ifeq ($(BR2_PACKAGE_LIBV4L
),y
)
297 VLC_CONF_OPTS
+= --enable-v4l2
298 VLC_DEPENDENCIES
+= libv4l
300 VLC_CONF_OPTS
+= --disable-v4l2
303 ifeq ($(BR2_PACKAGE_LIBXCB
),y
)
304 VLC_CONF_OPTS
+= --enable-xcb
305 VLC_DEPENDENCIES
+= libxcb
307 VLC_CONF_OPTS
+= --disable-xcb
310 ifeq ($(BR2_PACKAGE_LIBXML2
),y
)
311 VLC_CONF_OPTS
+= --enable-libxml2
312 VLC_DEPENDENCIES
+= libxml2
314 VLC_CONF_OPTS
+= --disable-libxml2
317 ifeq ($(BR2_PACKAGE_LIVE555
),y
)
318 VLC_CONF_OPTS
+= --enable-live555
319 VLC_DEPENDENCIES
+= live555
322 -I$(STAGING_DIR)/usr/include/BasicUsageEnvironment \
323 -I$(STAGING_DIR)/usr/include/groupsock \
324 -I$(STAGING_DIR)/usr/include/liveMedia \
325 -I$(STAGING_DIR)/usr/include/UsageEnvironment \
327 LIVE555_LIBS
="-L$(STAGING_DIR)/usr/lib -lliveMedia"
329 VLC_CONF_OPTS
+= --disable-live555
332 ifeq ($(BR2_PACKAGE_LUA
),y
)
333 VLC_CONF_OPTS
+= --enable-lua
334 VLC_DEPENDENCIES
+= lua host-lua
336 VLC_CONF_OPTS
+= --disable-lua
339 ifeq ($(BR2_PACKAGE_MINIZIP
),y
)
340 VLC_DEPENDENCIES
+= minizip
343 ifeq ($(BR2_PACKAGE_MUSEPACK
),y
)
344 VLC_CONF_OPTS
+= --enable-mpc
345 VLC_DEPENDENCIES
+= musepack
347 VLC_CONF_OPTS
+= --disable-mpc
350 ifeq ($(BR2_PACKAGE_QT_GUI_MODULE
),y
)
351 VLC_CONF_OPTS
+= --enable-qt
353 ac_cv_path_MOC
=$(HOST_DIR
)/usr
/bin
/moc \
354 ac_cv_path_RCC
=$(HOST_DIR
)/usr
/bin
/rcc \
355 ac_cv_path_UIC
=$(HOST_DIR
)/usr
/bin
/uic
356 VLC_DEPENDENCIES
+= qt
358 VLC_CONF_OPTS
+= --disable-qt
361 ifeq ($(BR2_PACKAGE_SDL_X11
),y
)
362 VLC_CONF_OPTS
+= --enable-sdl
363 VLC_DEPENDENCIES
+= sdl
365 VLC_CONF_OPTS
+= --disable-sdl
368 ifeq ($(BR2_PACKAGE_SDL_IMAGE
),y
)
369 VLC_CONF_OPTS
+= --enable-sdl-image
370 VLC_DEPENDENCIES
+= sdl_image
372 VLC_CONF_OPTS
+= --disable-sdl-image
375 ifeq ($(BR2_PACKAGE_SPEEX
),y
)
376 VLC_CONF_OPTS
+= --enable-speex
377 VLC_DEPENDENCIES
+= speex
379 VLC_CONF_OPTS
+= --disable-speex
382 ifeq ($(BR2_PACKAGE_TAGLIB
),y
)
383 VLC_CONF_OPTS
+= --enable-taglib
384 VLC_DEPENDENCIES
+= taglib
386 VLC_CONF_OPTS
+= --disable-taglib
389 ifeq ($(BR2_PACKAGE_TREMOR
),y
)
390 VLC_CONF_OPTS
+= --enable-tremor
391 VLC_DEPENDENCIES
+= tremor
393 VLC_CONF_OPTS
+= --disable-tremor
396 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
397 VLC_CONF_OPTS
+= --enable-udev
398 VLC_DEPENDENCIES
+= udev
400 VLC_CONF_OPTS
+= --disable-udev
403 ifeq ($(BR2_PACKAGE_XCB_UTIL_KEYSYMS
),y
)
404 VLC_CONF_OPTS
+= --enable-xcb
405 VLC_DEPENDENCIES
+= xcb-util-keysyms
407 VLC_CONF_OPTS
+= --disable-xcb
410 ifeq ($(BR2_PACKAGE_XLIB_LIBX11
),y
)
411 VLC_CONF_OPTS
+= --with-x
412 VLC_DEPENDENCIES
+= xlib_libX11
414 VLC_CONF_OPTS
+= --without-x
417 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
418 VLC_DEPENDENCIES
+= zlib
421 $(eval
$(autotools-package
))