2014-01-07 13:36:47 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# vlc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-08-02 18:26:02 +02:00
|
|
|
VLC_VERSION = 2.1.5
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_SITE = http://download.videolan.org/pub/videolan/vlc/$(VLC_VERSION)
|
|
|
|
VLC_SOURCE = vlc-$(VLC_VERSION).tar.xz
|
|
|
|
VLC_LICENSE = GPLv2+ LGPLv2.1+
|
|
|
|
VLC_LICENSE_FILES = COPYING COPYING.LIB
|
2014-01-13 13:32:42 +01:00
|
|
|
VLC_DEPENDENCIES = host-pkgconf
|
2014-02-08 15:34:53 +01:00
|
|
|
VLC_AUTORECONF = YES
|
2014-01-07 13:36:47 +01:00
|
|
|
|
2014-02-27 20:37:34 +01:00
|
|
|
# VLC defines two autoconf functions which are also defined by our own pkg.m4
|
|
|
|
# from pkgconf. Unfortunately, they are defined in a different way: VLC adds
|
|
|
|
# --enable- options, but pkg.m4 adds --with- options. To make sure we use
|
|
|
|
# VLC's definition, rename these two functions.
|
|
|
|
define VLC_OVERRIDE_PKG_M4
|
|
|
|
$(SED) 's/PKG_WITH_MODULES/VLC_PKG_WITH_MODULES/g' \
|
|
|
|
-e 's/PKG_HAVE_WITH_MODULES/VLC_PKG_HAVE_WITH_MODULES/g' \
|
|
|
|
$(@D)/configure.ac $(@D)/m4/with_pkg.m4
|
|
|
|
endef
|
|
|
|
VLC_POST_PATCH_HOOKS += VLC_OVERRIDE_PKG_M4
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += \
|
2014-01-07 13:36:47 +01:00
|
|
|
--disable-a52 \
|
2014-03-01 14:51:49 +01:00
|
|
|
--disable-shout \
|
|
|
|
--disable-twolame \
|
|
|
|
--disable-dca \
|
|
|
|
--disable-dirac \
|
|
|
|
--disable-schroedinger \
|
|
|
|
--disable-quicksync \
|
|
|
|
--disable-fluidsynth \
|
2014-01-07 13:36:47 +01:00
|
|
|
--disable-zvbi \
|
2014-03-01 14:51:49 +01:00
|
|
|
--disable-kate \
|
|
|
|
--disable-caca \
|
2014-01-07 13:36:47 +01:00
|
|
|
--disable-jack \
|
2014-03-01 14:51:49 +01:00
|
|
|
--disable-samplerate \
|
|
|
|
--disable-chromaprint \
|
|
|
|
--disable-goom \
|
2014-01-07 13:36:47 +01:00
|
|
|
--disable-projectm \
|
|
|
|
--disable-vsxu \
|
2014-03-01 14:51:49 +01:00
|
|
|
--disable-mtp \
|
2014-03-07 13:45:21 +01:00
|
|
|
--disable-opencv
|
2014-01-07 13:36:47 +01:00
|
|
|
|
2014-02-27 00:21:16 +01:00
|
|
|
# Building static and shared doesn't work, so force static off.
|
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-static
|
2014-02-27 00:21:16 +01:00
|
|
|
endif
|
|
|
|
|
2014-05-13 07:28:17 +02:00
|
|
|
ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
|
2014-10-12 17:38:12 +02:00
|
|
|
VLC_CONF_OPTS += --enable-altivec
|
2014-02-08 15:34:55 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-altivec
|
2014-02-08 15:34:55 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-alsa
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += alsa-lib
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-alsa
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-02-08 15:34:51 +01:00
|
|
|
# bonjour support needs avahi-client, which needs avahi-daemon and dbus
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yyy)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-bonjour
|
2014-02-08 15:34:51 +01:00
|
|
|
VLC_DEPENDENCIES += avahi dbus
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-bonjour
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-dbus
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += dbus
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-dbus
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-directfb
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += directfb
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-directfb
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FAAD2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-faad
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += faad2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-faad
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-avcodec
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += ffmpeg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-avcodec
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-postproc
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-postproc
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-swscale
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-swscale
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FLAC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-flac
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += flac
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-flac
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-04-17 18:04:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-glx
|
2014-04-17 18:04:25 +02:00
|
|
|
VLC_DEPENDENCIES += libgl
|
2014-02-09 13:47:11 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-glx
|
2014-02-09 13:47:11 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPUS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-opus
|
2014-04-14 16:20:07 +02:00
|
|
|
VLC_DEPENDENCIES += libvorbis opus
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-opus
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-29 10:25:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBASS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-libass
|
2014-01-29 10:25:53 +01:00
|
|
|
VLC_DEPENDENCIES += libass
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-libass
|
2014-01-29 10:25:53 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-libgcrypt
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libgcrypt
|
2014-02-08 15:34:53 +01:00
|
|
|
VLC_CONF_ENV += \
|
|
|
|
GCRYPT_CONFIG="$(STAGING_DIR)/usr/bin/libgcrypt-config"
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-libgcrypt
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-mad
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libmad
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-mad
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-16 08:37:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBMODPLUG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-mod
|
2014-01-16 08:37:46 +01:00
|
|
|
VLC_DEPENDENCIES += libmodplug
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-mod
|
2014-01-16 08:37:46 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBMPEG2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-libmpeg2
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libmpeg2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-libmpeg2
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-png
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libpng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-png
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-02-08 15:34:50 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-svg
|
2014-02-08 15:34:50 +01:00
|
|
|
VLC_DEPENDENCIES += librsvg
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-svg
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-theora
|
2014-01-14 10:57:50 +01:00
|
|
|
VLC_DEPENDENCIES += libtheora
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-theora
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUPNP),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-upnp
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libupnp
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-upnp
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-vorbis
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libvorbis
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-vorbis
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-v4l2
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libv4l
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-v4l2
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXCB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-xcb
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libxcb
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-xcb
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-libxml2
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += libxml2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-libxml2
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-02-27 00:21:16 +01:00
|
|
|
# live555 installs a static library only, and vlc tries to link it into a
|
|
|
|
# shared library - which doesn't work. So only enable live555 if static.
|
|
|
|
ifeq ($(BR2_PACKAGE_LIVE555)$(BR2_PREFER_STATIC_LIB),yy)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-live555
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += live555
|
2014-02-09 13:47:12 +01:00
|
|
|
VLC_CONF_ENV += \
|
2014-02-08 15:34:52 +01:00
|
|
|
LIVE555_CFLAGS="\
|
|
|
|
-I$(STAGING_DIR)/usr/include/live \
|
|
|
|
-I$(STAGING_DIR)/usr/include/live/BasicUsageEnvironment \
|
|
|
|
-I$(STAGING_DIR)/usr/include/live/groupsock \
|
|
|
|
-I$(STAGING_DIR)/usr/include/live/liveMedia \
|
|
|
|
-I$(STAGING_DIR)/usr/include/live/UsageEnvironment \
|
|
|
|
" \
|
|
|
|
LIVE555_LIBS="-L$(STAGING_DIR)/usr/lib -lliveMedia"
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-live555
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LUA),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-lua
|
2014-02-16 19:32:42 +01:00
|
|
|
VLC_DEPENDENCIES += lua host-lua
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-lua
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-02-04 15:12:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_QT_GUI_MODULE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-qt
|
2014-10-08 23:11:07 +02:00
|
|
|
VLC_CONF_ENV += \
|
|
|
|
ac_cv_path_MOC=$(HOST_DIR)/usr/bin/moc \
|
|
|
|
ac_cv_path_RCC=$(HOST_DIR)/usr/bin/rcc \
|
|
|
|
ac_cv_path_UIC=$(HOST_DIR)/usr/bin/uic
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += qt
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-qt
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-02-08 15:34:54 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-sdl
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += sdl
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-sdl
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_IMAGE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-sdl-image
|
2014-01-21 07:29:09 +01:00
|
|
|
VLC_DEPENDENCIES += sdl_image
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-sdl-image
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SPEEX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-speex
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += speex
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-speex
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TREMOR),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-tremor
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += tremor
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-tremor
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2014-02-07 14:21:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --enable-udev
|
2014-01-16 08:41:36 +01:00
|
|
|
VLC_DEPENDENCIES += udev
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --disable-udev
|
2014-01-16 08:41:36 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --with-x
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_DEPENDENCIES += xlib_libX11
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
VLC_CONF_OPTS += --without-x
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|