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 # Uses __atomic_fetch_add_4
60 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC
),y
)
61 VLC_CONF_ENV
+= LIBS
="-latomic"
64 # Building static and shared doesn't work, so force static off.
65 ifeq ($(BR2_STATIC_LIBS
),)
66 VLC_CONF_OPTS
+= --disable-static
69 ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC
),y
)
70 VLC_CONF_OPTS
+= --enable-altivec
72 VLC_CONF_OPTS
+= --disable-altivec
75 ifeq ($(BR2_X86_CPU_HAS_SSE
),y
)
76 VLC_CONF_OPTS
+= --enable-sse
78 VLC_CONF_OPTS
+= --disable-sse
81 ifeq ($(BR2_PACKAGE_ALSA_LIB
),y
)
82 VLC_CONF_OPTS
+= --enable-alsa
83 VLC_DEPENDENCIES
+= alsa-lib
85 VLC_CONF_OPTS
+= --disable-alsa
88 # bonjour support needs avahi-client, which needs avahi-daemon and dbus
89 ifeq ($(BR2_PACKAGE_AVAHI
)$(BR2_PACKAGE_AVAHI_DAEMON
)$(BR2_PACKAGE_DBUS
),yyy
)
90 VLC_CONF_OPTS
+= --enable-bonjour
91 VLC_DEPENDENCIES
+= avahi dbus
93 VLC_CONF_OPTS
+= --disable-bonjour
96 ifeq ($(BR2_PACKAGE_DBUS
),y
)
97 VLC_CONF_OPTS
+= --enable-dbus
98 VLC_DEPENDENCIES
+= dbus
100 VLC_CONF_OPTS
+= --disable-dbus
103 ifeq ($(BR2_PACKAGE_DIRECTFB
),y
)
104 VLC_CONF_OPTS
+= --enable-directfb
105 VLC_CONF_ENV
+= ac_cv_path_DIRECTFB_CONFIG
=$(STAGING_DIR
)/usr
/bin
/directfb-config
106 VLC_DEPENDENCIES
+= directfb
108 VLC_CONF_OPTS
+= --disable-directfb
111 ifeq ($(BR2_PACKAGE_FAAD2
),y
)
112 VLC_CONF_OPTS
+= --enable-faad
113 VLC_DEPENDENCIES
+= faad2
115 VLC_CONF_OPTS
+= --disable-faad
118 ifeq ($(BR2_PACKAGE_FFMPEG
),y
)
119 VLC_CONF_OPTS
+= --enable-avcodec
120 VLC_DEPENDENCIES
+= ffmpeg
122 VLC_CONF_OPTS
+= --disable-avcodec
125 ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC
),y
)
126 VLC_CONF_OPTS
+= --enable-postproc
128 VLC_CONF_OPTS
+= --disable-postproc
131 ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE
),y
)
132 VLC_CONF_OPTS
+= --enable-swscale
134 VLC_CONF_OPTS
+= --disable-swscale
137 ifeq ($(BR2_PACKAGE_FLAC
),y
)
138 VLC_CONF_OPTS
+= --enable-flac
139 VLC_DEPENDENCIES
+= flac
141 VLC_CONF_OPTS
+= --disable-flac
144 ifeq ($(BR2_PACKAGE_FREERDP
),y
)
145 VLC_DEPENDENCIES
+= freerdp
148 ifeq ($(BR2_PACKAGE_HAS_LIBGL
),y
)
149 VLC_DEPENDENCIES
+= libgl
152 ifeq ($(BR2_PACKAGE_HAS_LIBGLES
),y
)
153 VLC_CONF_OPTS
+= --enable-gles2
154 VLC_DEPENDENCIES
+= libgles
156 VLC_CONF_OPTS
+= --disable-gles2
159 ifeq ($(BR2_PACKAGE_OPENCV
)$(BR2_PACKAGE_OPENCV3
),y
)
160 VLC_CONF_OPTS
+= --enable-opencv
161 ifeq ($(BR2_PACKAGE_OPENCV
),y
)
162 VLC_DEPENDENCIES
+= opencv
164 VLC_DEPENDENCIES
+= opencv3
167 VLC_CONF_OPTS
+= --disable-opencv
170 ifeq ($(BR2_PACKAGE_OPUS
),y
)
171 VLC_CONF_OPTS
+= --enable-opus
172 VLC_DEPENDENCIES
+= libvorbis opus
174 VLC_CONF_OPTS
+= --disable-opus
177 ifeq ($(BR2_PACKAGE_LIBASS
),y
)
178 VLC_CONF_OPTS
+= --enable-libass
179 VLC_DEPENDENCIES
+= libass
181 VLC_CONF_OPTS
+= --disable-libass
184 ifeq ($(BR2_PACKAGE_LIBBLURAY
),y
)
185 VLC_CONF_OPTS
+= --enable-bluray
186 VLC_DEPENDENCIES
+= libbluray
188 VLC_CONF_OPTS
+= --disable-bluray
191 ifeq ($(BR2_PACKAGE_LIBCDDB
),y
)
192 VLC_CONF_OPTS
+= --enable-libcddb
193 VLC_DEPENDENCIES
+= libcddb
195 VLC_CONF_OPTS
+= --disable-libcddb
198 ifeq ($(BR2_PACKAGE_LIBDVBPSI
),y
)
199 VLC_CONF_OPTS
+= --enable-dvbpsi
200 VLC_DEPENDENCIES
+= libdvbpsi
202 VLC_CONF_OPTS
+= --disable-dvbpsi
205 ifeq ($(BR2_PACKAGE_LIBGCRYPT
),y
)
206 VLC_CONF_OPTS
+= --enable-libgcrypt
207 VLC_DEPENDENCIES
+= libgcrypt
209 GCRYPT_CONFIG
="$(STAGING_DIR)/usr/bin/libgcrypt-config"
211 VLC_CONF_OPTS
+= --disable-libgcrypt
214 ifeq ($(BR2_PACKAGE_LIBMAD
),y
)
215 VLC_CONF_OPTS
+= --enable-mad
216 VLC_DEPENDENCIES
+= libmad
218 VLC_CONF_OPTS
+= --disable-mad
221 ifeq ($(BR2_PACKAGE_LIBMATROSKA
),y
)
222 VLC_CONF_OPTS
+= --enable-mkv
223 VLC_DEPENDENCIES
+= libmatroska
225 VLC_CONF_OPTS
+= --disable-mkv
228 ifeq ($(BR2_PACKAGE_LIBMODPLUG
),y
)
229 VLC_CONF_OPTS
+= --enable-mod
230 VLC_DEPENDENCIES
+= libmodplug
232 VLC_CONF_OPTS
+= --disable-mod
235 ifeq ($(BR2_PACKAGE_LIBMPEG2
),y
)
236 VLC_CONF_OPTS
+= --enable-libmpeg2
237 VLC_DEPENDENCIES
+= libmpeg2
239 VLC_CONF_OPTS
+= --disable-libmpeg2
242 ifeq ($(BR2_PACKAGE_LIBPNG
),y
)
243 VLC_CONF_OPTS
+= --enable-png
244 VLC_DEPENDENCIES
+= libpng
246 VLC_CONF_OPTS
+= --disable-png
249 ifeq ($(BR2_PACKAGE_LIBRSVG
),y
)
250 VLC_CONF_OPTS
+= --enable-svg
--enable-svgdec
251 VLC_DEPENDENCIES
+= librsvg
253 VLC_CONF_OPTS
+= --disable-svg
--disable-svgdec
256 ifeq ($(BR2_PACKAGE_LIBSSH2
),y
)
257 VLC_CONF_OPTS
+= --enable-sftp
258 VLC_DEPENDENCIES
+= libssh2
260 VLC_CONF_OPTS
+= --disable-sftp
263 ifeq ($(BR2_PACKAGE_LIBSIDPLAY2
),y
)
264 VLC_CONF_OPTS
+= --enable-sid
265 VLC_DEPENDENCIES
+= libsidplay2
267 VLC_CONF_OPTS
+= --disable-sid
270 ifeq ($(BR2_PACKAGE_LIBTHEORA
),y
)
271 VLC_CONF_OPTS
+= --enable-theora
272 VLC_DEPENDENCIES
+= libtheora
274 VLC_CONF_OPTS
+= --disable-theora
277 ifeq ($(BR2_PACKAGE_LIBUPNP
),y
)
278 VLC_CONF_OPTS
+= --enable-upnp
279 VLC_DEPENDENCIES
+= libupnp
281 VLC_CONF_OPTS
+= --disable-upnp
284 ifeq ($(BR2_PACKAGE_LIBVNCSERVER
),y
)
285 VLC_CONF_OPTS
+= --enable-vnc
286 VLC_DEPENDENCIES
+= libvncserver
288 VLC_CONF_OPTS
+= --disable-vnc
291 ifeq ($(BR2_PACKAGE_LIBVORBIS
),y
)
292 VLC_CONF_OPTS
+= --enable-vorbis
293 VLC_DEPENDENCIES
+= libvorbis
295 VLC_CONF_OPTS
+= --disable-vorbis
298 ifeq ($(BR2_PACKAGE_LIBV4L
),y
)
299 VLC_CONF_OPTS
+= --enable-v4l2
300 VLC_DEPENDENCIES
+= libv4l
302 VLC_CONF_OPTS
+= --disable-v4l2
305 ifeq ($(BR2_PACKAGE_LIBXCB
),y
)
306 VLC_CONF_OPTS
+= --enable-xcb
307 VLC_DEPENDENCIES
+= libxcb
309 VLC_CONF_OPTS
+= --disable-xcb
312 ifeq ($(BR2_PACKAGE_LIBXML2
),y
)
313 VLC_CONF_OPTS
+= --enable-libxml2
314 VLC_DEPENDENCIES
+= libxml2
316 VLC_CONF_OPTS
+= --disable-libxml2
319 ifeq ($(BR2_PACKAGE_LIVE555
),y
)
320 VLC_CONF_OPTS
+= --enable-live555
321 VLC_DEPENDENCIES
+= live555
324 -I$(STAGING_DIR)/usr/include/BasicUsageEnvironment \
325 -I$(STAGING_DIR)/usr/include/groupsock \
326 -I$(STAGING_DIR)/usr/include/liveMedia \
327 -I$(STAGING_DIR)/usr/include/UsageEnvironment \
329 LIVE555_LIBS
="-L$(STAGING_DIR)/usr/lib -lliveMedia"
331 VLC_CONF_OPTS
+= --disable-live555
334 ifeq ($(BR2_PACKAGE_LUA
),y
)
335 VLC_CONF_OPTS
+= --enable-lua
336 VLC_DEPENDENCIES
+= lua host-lua
338 VLC_CONF_OPTS
+= --disable-lua
341 ifeq ($(BR2_PACKAGE_MINIZIP
),y
)
342 VLC_DEPENDENCIES
+= minizip
345 ifeq ($(BR2_PACKAGE_MUSEPACK
),y
)
346 VLC_CONF_OPTS
+= --enable-mpc
347 VLC_DEPENDENCIES
+= musepack
349 VLC_CONF_OPTS
+= --disable-mpc
352 ifeq ($(BR2_PACKAGE_QT_GUI_MODULE
),y
)
353 VLC_CONF_OPTS
+= --enable-qt
355 ac_cv_path_MOC
=$(HOST_DIR
)/usr
/bin
/moc \
356 ac_cv_path_RCC
=$(HOST_DIR
)/usr
/bin
/rcc \
357 ac_cv_path_UIC
=$(HOST_DIR
)/usr
/bin
/uic
358 VLC_DEPENDENCIES
+= qt
360 VLC_CONF_OPTS
+= --disable-qt
363 ifeq ($(BR2_PACKAGE_SDL_X11
),y
)
364 VLC_CONF_OPTS
+= --enable-sdl
365 VLC_DEPENDENCIES
+= sdl
367 VLC_CONF_OPTS
+= --disable-sdl
370 ifeq ($(BR2_PACKAGE_SDL_IMAGE
),y
)
371 VLC_CONF_OPTS
+= --enable-sdl-image
372 VLC_DEPENDENCIES
+= sdl_image
374 VLC_CONF_OPTS
+= --disable-sdl-image
377 ifeq ($(BR2_PACKAGE_SPEEX
),y
)
378 VLC_CONF_OPTS
+= --enable-speex
379 VLC_DEPENDENCIES
+= speex
381 VLC_CONF_OPTS
+= --disable-speex
384 ifeq ($(BR2_PACKAGE_TAGLIB
),y
)
385 VLC_CONF_OPTS
+= --enable-taglib
386 VLC_DEPENDENCIES
+= taglib
388 VLC_CONF_OPTS
+= --disable-taglib
391 ifeq ($(BR2_PACKAGE_TREMOR
),y
)
392 VLC_CONF_OPTS
+= --enable-tremor
393 VLC_DEPENDENCIES
+= tremor
395 VLC_CONF_OPTS
+= --disable-tremor
398 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
399 VLC_CONF_OPTS
+= --enable-udev
400 VLC_DEPENDENCIES
+= udev
402 VLC_CONF_OPTS
+= --disable-udev
405 ifeq ($(BR2_PACKAGE_XCB_UTIL_KEYSYMS
),y
)
406 VLC_CONF_OPTS
+= --enable-xcb
407 VLC_DEPENDENCIES
+= xcb-util-keysyms
409 VLC_CONF_OPTS
+= --disable-xcb
412 ifeq ($(BR2_PACKAGE_XLIB_LIBX11
),y
)
413 VLC_CONF_OPTS
+= --with-x
414 VLC_DEPENDENCIES
+= xlib_libX11
416 VLC_CONF_OPTS
+= --without-x
419 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
420 VLC_DEPENDENCIES
+= zlib
423 $(eval
$(autotools-package
))