2014-01-07 13:36:47 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# vlc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
VLC_VERSION = 2.1.2
|
|
|
|
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
|
|
|
|
|
|
|
VLC_CONF_OPT += \
|
|
|
|
--disable-a52 \
|
|
|
|
--disable-shout \
|
|
|
|
--disable-twolame \
|
|
|
|
--disable-dca \
|
|
|
|
--disable-dirac \
|
|
|
|
--disable-schroedinger \
|
|
|
|
--disable-quicksync \
|
|
|
|
--disable-fluidsynth \
|
|
|
|
--disable-zvbi \
|
|
|
|
--disable-kate \
|
|
|
|
--disable-caca \
|
|
|
|
--disable-jack \
|
|
|
|
--disable-samplerate \
|
|
|
|
--disable-chromaprint \
|
|
|
|
--disable-goom \
|
|
|
|
--disable-projectm \
|
|
|
|
--disable-vsxu \
|
2014-02-15 23:13:22 +01:00
|
|
|
--disable-mtp \
|
|
|
|
--without-opencv
|
2014-01-07 13:36:47 +01:00
|
|
|
|
2014-02-08 15:34:55 +01:00
|
|
|
# Set powerpc altivec appropriately
|
|
|
|
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
|
|
|
|
VCL_CONF_OPT += --enable-altivec
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-altivec
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
|
|
VLC_CONF_OPT += --enable-alsa
|
|
|
|
VLC_DEPENDENCIES += alsa-lib
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-alsa
|
|
|
|
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-01-07 13:36:47 +01:00
|
|
|
VLC_CONF_OPT += --enable-bonjour
|
2014-02-08 15:34:51 +01:00
|
|
|
VLC_DEPENDENCIES += avahi dbus
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-bonjour
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
|
|
|
VLC_CONF_OPT += --enable-dbus
|
|
|
|
VLC_DEPENDENCIES += dbus
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-dbus
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB),y)
|
|
|
|
VLC_CONF_OPT += --enable-directfb
|
|
|
|
VLC_DEPENDENCIES += directfb
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-directfb
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FAAD2),y)
|
|
|
|
VLC_CONF_OPT += --enable-faad
|
|
|
|
VLC_DEPENDENCIES += faad2
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-faad
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
|
|
|
VLC_CONF_OPT += --enable-avcodec
|
|
|
|
VLC_DEPENDENCIES += ffmpeg
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-avcodec
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_POSTPROC),y)
|
|
|
|
VLC_CONF_OPT += --enable-postproc
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-postproc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
|
|
|
|
VLC_CONF_OPT += --enable-swscale
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-swscale
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FLAC),y)
|
|
|
|
VLC_CONF_OPT += --enable-flac
|
|
|
|
VLC_DEPENDENCIES += flac
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-flac
|
|
|
|
endif
|
|
|
|
|
2014-02-09 13:47:11 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D),y)
|
|
|
|
VLC_CONF_OPT += --enable-glx
|
|
|
|
VLC_DEPENDENCIES += mesa3d
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-glx
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPUS),y)
|
|
|
|
VLC_CONF_OPT += --enable-opus
|
|
|
|
VLC_DEPENDENCIES += opus
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-opus
|
|
|
|
endif
|
|
|
|
|
2014-01-29 10:25:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBASS),y)
|
|
|
|
VLC_CONF_OPT += --enable-libass
|
|
|
|
VLC_DEPENDENCIES += libass
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-libass
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
VLC_CONF_OPT += --enable-libgcrypt
|
|
|
|
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
|
|
|
|
VLC_CONF_OPT += --disable-libgcrypt
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAD),y)
|
|
|
|
VLC_CONF_OPT += --enable-mad
|
|
|
|
VLC_DEPENDENCIES += libmad
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-mad
|
|
|
|
endif
|
|
|
|
|
2014-01-16 08:37:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBMODPLUG),y)
|
|
|
|
VLC_CONF_OPT += --enable-mod
|
|
|
|
VLC_DEPENDENCIES += libmodplug
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-mod
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBMPEG2),y)
|
|
|
|
VLC_CONF_OPT += --enable-libmpeg2
|
|
|
|
VLC_DEPENDENCIES += libmpeg2
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-libmpeg2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
VLC_CONF_OPT += --enable-png
|
|
|
|
VLC_DEPENDENCIES += libpng
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-png
|
|
|
|
endif
|
|
|
|
|
2014-02-08 15:34:50 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_CONF_OPT += --enable-svg
|
2014-02-08 15:34:50 +01:00
|
|
|
VLC_DEPENDENCIES += librsvg
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-svg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
|
|
|
|
VLC_CONF_OPT += --enable-theora
|
2014-01-14 10:57:50 +01:00
|
|
|
VLC_DEPENDENCIES += libtheora
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-theora
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUPNP),y)
|
|
|
|
VLC_CONF_OPT += --enable-upnp
|
|
|
|
VLC_DEPENDENCIES += libupnp
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-upnp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
|
|
|
VLC_CONF_OPT += --enable-vorbis
|
|
|
|
VLC_DEPENDENCIES += libvorbis
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-vorbis
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
|
|
|
VLC_CONF_OPT += --enable-v4l2
|
|
|
|
VLC_DEPENDENCIES += libv4l
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-v4l2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXCB),y)
|
|
|
|
VLC_CONF_OPT += --enable-xcb
|
|
|
|
VLC_DEPENDENCIES += libxcb
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-xcb
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
|
VLC_CONF_OPT += --enable-libxml2
|
|
|
|
VLC_DEPENDENCIES += libxml2
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-libxml2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIVE555),y)
|
|
|
|
VLC_CONF_OPT += --enable-live555
|
|
|
|
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
|
|
|
|
VLC_CONF_OPT += --disable-live555
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LUA),y)
|
|
|
|
VLC_CONF_OPT += --enable-lua
|
2014-02-16 19:32:42 +01:00
|
|
|
VLC_DEPENDENCIES += lua host-lua
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-lua
|
|
|
|
endif
|
|
|
|
|
2014-02-04 15:12:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_QT_GUI_MODULE),y)
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_CONF_OPT += --enable-qt
|
|
|
|
VLC_DEPENDENCIES += qt
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-qt
|
|
|
|
endif
|
|
|
|
|
2014-02-08 15:34:54 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
2014-01-07 13:36:47 +01:00
|
|
|
VLC_CONF_OPT += --enable-sdl
|
|
|
|
VLC_DEPENDENCIES += sdl
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-sdl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_IMAGE),y)
|
|
|
|
VLC_CONF_OPT += --enable-sdl-image
|
2014-01-21 07:29:09 +01:00
|
|
|
VLC_DEPENDENCIES += sdl_image
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-sdl-image
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SPEEX),y)
|
|
|
|
VLC_CONF_OPT += --enable-speex
|
|
|
|
VLC_DEPENDENCIES += speex
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-speex
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TREMOR),y)
|
|
|
|
VLC_CONF_OPT += --enable-tremor
|
|
|
|
VLC_DEPENDENCIES += tremor
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-tremor
|
|
|
|
endif
|
|
|
|
|
2014-01-16 08:41:36 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_UDEV),y)
|
|
|
|
VLC_CONF_OPT += --enable-udev
|
|
|
|
VLC_DEPENDENCIES += udev
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --disable-udev
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
|
|
|
VLC_CONF_OPT += --with-x
|
|
|
|
VLC_DEPENDENCIES += xlib_libX11
|
|
|
|
else
|
|
|
|
VLC_CONF_OPT += --without-x
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|