2014-01-07 13:36:47 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# vlc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-06-11 20:06:04 +02:00
|
|
|
VLC_VERSION = 2.2.4
|
2014-12-20 10:34:32 +01:00
|
|
|
VLC_SITE = http://get.videolan.org/vlc/$(VLC_VERSION)
|
2014-01-07 13:36:47 +01:00
|
|
|
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
|
|
|
|
2015-06-28 13:00:28 +02:00
|
|
|
# Install vlc libraries in staging.
|
|
|
|
VLC_INSTALL_STAGING = YES
|
|
|
|
|
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 += \
|
2015-04-22 23:23:28 +02:00
|
|
|
--disable-gles1 \
|
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-schroedinger \
|
|
|
|
--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 \
|
package/vlc: bump to 2.2.0
Since we bumped FreeRDP, vlc no longer builds:
http://autobuild.buildroot.org/results/8d9/8d91e3ffccee753135e9d0faa2b1ae00875606c9/
http://autobuild.buildroot.org/results/e1f/e1f6526d1a4ac2c95998793efea2188faa708e29/
Fix that by bumping vlc to 2.2.0, as vlc-2.1.6will never support this
new version of FreeRDP.
Add dependency on kernel headers >= 3.7, because it needs DTV_STREAM_ID.
I stumbled on this whith a toolchain using headers forom 3.5, but only
tested with a toolchain with headers from 3.9, so there might be other
dependencies I missed on 3.8 or even 3.9. Let's wait for build failures
to find out...
There are quite a bunch of new --enable/disable options, so I've tried
to catter for all the changes. Most notably, there's no longer a flag to
enable.disable GL, it is now always auto-detected. Also, I've added
flags for GLES which we were missing so far, so we had to rely on the
build order to detect those dependencies (which was OK becasue libgles
sorts before vlc). Finally, SVG now has two flags to enable different
parts of SVG support, but they both depend on the same library, so
enable both.
There are new support for some features, like acceleration on RPI, but
that can well wait for further patches when someone is interested ;-) ,
vdpau HW accelearation on NVidia (we have a package for that, but not
able to test, so not added), vpx support (we have a libvpx package,
but I had no time to test), x262 and x265 support for which we're
currently lacking the packaging, and a few other exotic stuff...
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-03-04 23:15:34 +01:00
|
|
|
--disable-mmal-codec \
|
|
|
|
--disable-mmal-vout \
|
|
|
|
--disable-dvdnav \
|
|
|
|
--disable-vpx \
|
|
|
|
--disable-jpeg \
|
|
|
|
--disable-x262 \
|
|
|
|
--disable-x265 \
|
|
|
|
--disable-mfx \
|
|
|
|
--disable-vdpau \
|
|
|
|
--disable-addonmanagermodules \
|
2015-09-16 10:26:49 +02:00
|
|
|
--enable-run-as-root \
|
2014-01-07 13:36:47 +01:00
|
|
|
|
2016-10-16 23:01:27 +02:00
|
|
|
# Uses __atomic_fetch_add_4
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
VLC_CONF_ENV += LIBS="-latomic"
|
|
|
|
endif
|
|
|
|
|
2014-02-27 00:21:16 +01:00
|
|
|
# Building static and shared doesn't work, so force static off.
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),)
|
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
|
|
|
|
|
2015-07-05 18:49:14 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
|
|
|
VLC_CONF_OPTS += --enable-sse
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-sse
|
|
|
|
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
|
2015-05-04 16:27:10 +02:00
|
|
|
VLC_CONF_ENV += ac_cv_path_DIRECTFB_CONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
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
|
|
|
|
|
2015-03-04 23:15:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FREERDP),y)
|
|
|
|
VLC_DEPENDENCIES += freerdp
|
|
|
|
endif
|
|
|
|
|
2014-04-17 18:04:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
|
|
VLC_DEPENDENCIES += libgl
|
package/vlc: bump to 2.2.0
Since we bumped FreeRDP, vlc no longer builds:
http://autobuild.buildroot.org/results/8d9/8d91e3ffccee753135e9d0faa2b1ae00875606c9/
http://autobuild.buildroot.org/results/e1f/e1f6526d1a4ac2c95998793efea2188faa708e29/
Fix that by bumping vlc to 2.2.0, as vlc-2.1.6will never support this
new version of FreeRDP.
Add dependency on kernel headers >= 3.7, because it needs DTV_STREAM_ID.
I stumbled on this whith a toolchain using headers forom 3.5, but only
tested with a toolchain with headers from 3.9, so there might be other
dependencies I missed on 3.8 or even 3.9. Let's wait for build failures
to find out...
There are quite a bunch of new --enable/disable options, so I've tried
to catter for all the changes. Most notably, there's no longer a flag to
enable.disable GL, it is now always auto-detected. Also, I've added
flags for GLES which we were missing so far, so we had to rely on the
build order to detect those dependencies (which was OK becasue libgles
sorts before vlc). Finally, SVG now has two flags to enable different
parts of SVG support, but they both depend on the same library, so
enable both.
There are new support for some features, like acceleration on RPI, but
that can well wait for further patches when someone is interested ;-) ,
vdpau HW accelearation on NVidia (we have a package for that, but not
able to test, so not added), vpx support (we have a libvpx package,
but I had no time to test), x262 and x265 support for which we're
currently lacking the packaging, and a few other exotic stuff...
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-03-04 23:15:34 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
2015-04-22 23:23:28 +02:00
|
|
|
VLC_CONF_OPTS += --enable-gles2
|
package/vlc: bump to 2.2.0
Since we bumped FreeRDP, vlc no longer builds:
http://autobuild.buildroot.org/results/8d9/8d91e3ffccee753135e9d0faa2b1ae00875606c9/
http://autobuild.buildroot.org/results/e1f/e1f6526d1a4ac2c95998793efea2188faa708e29/
Fix that by bumping vlc to 2.2.0, as vlc-2.1.6will never support this
new version of FreeRDP.
Add dependency on kernel headers >= 3.7, because it needs DTV_STREAM_ID.
I stumbled on this whith a toolchain using headers forom 3.5, but only
tested with a toolchain with headers from 3.9, so there might be other
dependencies I missed on 3.8 or even 3.9. Let's wait for build failures
to find out...
There are quite a bunch of new --enable/disable options, so I've tried
to catter for all the changes. Most notably, there's no longer a flag to
enable.disable GL, it is now always auto-detected. Also, I've added
flags for GLES which we were missing so far, so we had to rely on the
build order to detect those dependencies (which was OK becasue libgles
sorts before vlc). Finally, SVG now has two flags to enable different
parts of SVG support, but they both depend on the same library, so
enable both.
There are new support for some features, like acceleration on RPI, but
that can well wait for further patches when someone is interested ;-) ,
vdpau HW accelearation on NVidia (we have a package for that, but not
able to test, so not added), vpx support (we have a libvpx package,
but I had no time to test), x262 and x265 support for which we're
currently lacking the packaging, and a few other exotic stuff...
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-03-04 23:15:34 +01:00
|
|
|
VLC_DEPENDENCIES += libgles
|
2014-02-09 13:47:11 +01:00
|
|
|
else
|
2015-04-22 23:23:28 +02:00
|
|
|
VLC_CONF_OPTS += --disable-gles2
|
2014-02-09 13:47:11 +01:00
|
|
|
endif
|
|
|
|
|
2015-08-24 14:47:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENCV)$(BR2_PACKAGE_OPENCV3),y)
|
2015-07-05 11:40:29 +02:00
|
|
|
VLC_CONF_OPTS += --enable-opencv
|
2015-08-24 14:47:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENCV),y)
|
|
|
|
VLC_DEPENDENCIES += opencv
|
|
|
|
else
|
2015-08-24 14:47:09 +02:00
|
|
|
VLC_DEPENDENCIES += opencv3
|
2015-08-24 14:47:12 +02:00
|
|
|
endif
|
2015-07-05 11:40:29 +02:00
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-opencv
|
|
|
|
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
|
|
|
|
|
2016-01-09 22:03:55 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLURAY),y)
|
|
|
|
VLC_CONF_OPTS += --enable-bluray
|
|
|
|
VLC_DEPENDENCIES += libbluray
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-bluray
|
|
|
|
endif
|
|
|
|
|
2016-02-28 21:18:23 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCDDB),y)
|
|
|
|
VLC_CONF_OPTS += --enable-libcddb
|
|
|
|
VLC_DEPENDENCIES += libcddb
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-libcddb
|
|
|
|
endif
|
|
|
|
|
2015-12-30 15:45:55 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDVBPSI),y)
|
|
|
|
VLC_CONF_OPTS += --enable-dvbpsi
|
|
|
|
VLC_DEPENDENCIES += libdvbpsi
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-dvbpsi
|
|
|
|
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
|
|
|
|
|
2015-12-31 12:02:22 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBMATROSKA),y)
|
|
|
|
VLC_CONF_OPTS += --enable-mkv
|
|
|
|
VLC_DEPENDENCIES += libmatroska
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-mkv
|
|
|
|
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)
|
package/vlc: bump to 2.2.0
Since we bumped FreeRDP, vlc no longer builds:
http://autobuild.buildroot.org/results/8d9/8d91e3ffccee753135e9d0faa2b1ae00875606c9/
http://autobuild.buildroot.org/results/e1f/e1f6526d1a4ac2c95998793efea2188faa708e29/
Fix that by bumping vlc to 2.2.0, as vlc-2.1.6will never support this
new version of FreeRDP.
Add dependency on kernel headers >= 3.7, because it needs DTV_STREAM_ID.
I stumbled on this whith a toolchain using headers forom 3.5, but only
tested with a toolchain with headers from 3.9, so there might be other
dependencies I missed on 3.8 or even 3.9. Let's wait for build failures
to find out...
There are quite a bunch of new --enable/disable options, so I've tried
to catter for all the changes. Most notably, there's no longer a flag to
enable.disable GL, it is now always auto-detected. Also, I've added
flags for GLES which we were missing so far, so we had to rely on the
build order to detect those dependencies (which was OK becasue libgles
sorts before vlc). Finally, SVG now has two flags to enable different
parts of SVG support, but they both depend on the same library, so
enable both.
There are new support for some features, like acceleration on RPI, but
that can well wait for further patches when someone is interested ;-) ,
vdpau HW accelearation on NVidia (we have a package for that, but not
able to test, so not added), vpx support (we have a libvpx package,
but I had no time to test), x262 and x265 support for which we're
currently lacking the packaging, and a few other exotic stuff...
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-03-04 23:15:34 +01:00
|
|
|
VLC_CONF_OPTS += --enable-svg --enable-svgdec
|
2014-02-08 15:34:50 +01:00
|
|
|
VLC_DEPENDENCIES += librsvg
|
2014-01-07 13:36:47 +01:00
|
|
|
else
|
package/vlc: bump to 2.2.0
Since we bumped FreeRDP, vlc no longer builds:
http://autobuild.buildroot.org/results/8d9/8d91e3ffccee753135e9d0faa2b1ae00875606c9/
http://autobuild.buildroot.org/results/e1f/e1f6526d1a4ac2c95998793efea2188faa708e29/
Fix that by bumping vlc to 2.2.0, as vlc-2.1.6will never support this
new version of FreeRDP.
Add dependency on kernel headers >= 3.7, because it needs DTV_STREAM_ID.
I stumbled on this whith a toolchain using headers forom 3.5, but only
tested with a toolchain with headers from 3.9, so there might be other
dependencies I missed on 3.8 or even 3.9. Let's wait for build failures
to find out...
There are quite a bunch of new --enable/disable options, so I've tried
to catter for all the changes. Most notably, there's no longer a flag to
enable.disable GL, it is now always auto-detected. Also, I've added
flags for GLES which we were missing so far, so we had to rely on the
build order to detect those dependencies (which was OK becasue libgles
sorts before vlc). Finally, SVG now has two flags to enable different
parts of SVG support, but they both depend on the same library, so
enable both.
There are new support for some features, like acceleration on RPI, but
that can well wait for further patches when someone is interested ;-) ,
vdpau HW accelearation on NVidia (we have a package for that, but not
able to test, so not added), vpx support (we have a libvpx package,
but I had no time to test), x262 and x265 support for which we're
currently lacking the packaging, and a few other exotic stuff...
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-03-04 23:15:34 +01:00
|
|
|
VLC_CONF_OPTS += --disable-svg --disable-svgdec
|
2014-01-07 13:36:47 +01:00
|
|
|
endif
|
|
|
|
|
2016-02-28 21:18:25 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH2),y)
|
|
|
|
VLC_CONF_OPTS += --enable-sftp
|
|
|
|
VLC_DEPENDENCIES += libssh2
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-sftp
|
|
|
|
endif
|
|
|
|
|
2015-06-18 22:19:41 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSIDPLAY2),y)
|
|
|
|
VLC_CONF_OPTS += --enable-sid
|
|
|
|
VLC_DEPENDENCIES += libsidplay2
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-sid
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
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
|
|
|
|
|
2016-02-28 21:18:24 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBVNCSERVER),y)
|
|
|
|
VLC_CONF_OPTS += --enable-vnc
|
|
|
|
VLC_DEPENDENCIES += libvncserver
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-vnc
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
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-11-17 09:18:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIVE555),y)
|
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="\
|
2014-11-17 09:18:14 +01:00
|
|
|
-I$(STAGING_DIR)/usr/include/BasicUsageEnvironment \
|
|
|
|
-I$(STAGING_DIR)/usr/include/groupsock \
|
|
|
|
-I$(STAGING_DIR)/usr/include/liveMedia \
|
|
|
|
-I$(STAGING_DIR)/usr/include/UsageEnvironment \
|
2014-02-08 15:34:52 +01:00
|
|
|
" \
|
|
|
|
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
|
|
|
|
|
2016-02-28 21:18:26 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MINIZIP),y)
|
|
|
|
VLC_DEPENDENCIES += minizip
|
|
|
|
endif
|
|
|
|
|
2016-02-28 21:18:28 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MUSEPACK),y)
|
|
|
|
VLC_CONF_OPTS += --enable-mpc
|
|
|
|
VLC_DEPENDENCIES += musepack
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-mpc
|
|
|
|
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 += \
|
2014-10-25 20:29:31 +02:00
|
|
|
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
|
|
|
|
|
2015-10-12 19:07:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_TAGLIB),y)
|
|
|
|
VLC_CONF_OPTS += --enable-taglib
|
|
|
|
VLC_DEPENDENCIES += taglib
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-taglib
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
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
|
|
|
|
|
2016-02-28 21:18:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XCB_UTIL_KEYSYMS),y)
|
|
|
|
VLC_CONF_OPTS += --enable-xcb
|
|
|
|
VLC_DEPENDENCIES += xcb-util-keysyms
|
|
|
|
else
|
|
|
|
VLC_CONF_OPTS += --disable-xcb
|
|
|
|
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
|
|
|
|
|
2016-01-09 22:03:54 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
VLC_DEPENDENCIES += zlib
|
|
|
|
endif
|
|
|
|
|
2014-01-07 13:36:47 +01:00
|
|
|
$(eval $(autotools-package))
|