2014-01-16 14:57:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gst1-libav
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-09-29 17:10:28 +02:00
|
|
|
GST1_LIBAV_VERSION = 1.4.3
|
2014-01-16 14:57:52 +01:00
|
|
|
GST1_LIBAV_SOURCE = gst-libav-$(GST1_LIBAV_VERSION).tar.xz
|
|
|
|
GST1_LIBAV_SITE = http://gstreamer.freedesktop.org/src/gst-libav
|
|
|
|
|
|
|
|
GST1_LIBAV_DEPENDENCIES = host-pkgconf gstreamer1 gst1-plugins-base
|
|
|
|
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS = \
|
2014-01-16 14:57:52 +01:00
|
|
|
--cross-prefix=$(TARGET_CROSS) \
|
|
|
|
--target-os=linux \
|
|
|
|
$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-zlib
|
2014-01-16 14:57:52 +01:00
|
|
|
GST1_LIBAV_DEPENDENCIES += zlib
|
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-zlib
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-bzlib
|
2014-01-16 14:57:52 +01:00
|
|
|
GST1_LIBAV_DEPENDENCIES += bzip2
|
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-bzlib
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_MMX),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-yasm
|
2014-01-16 14:57:52 +01:00
|
|
|
GST1_LIBAV_DEPENDENCIES += host-yasm
|
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-yasm
|
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-mmx
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-sse
|
2014-01-16 14:57:52 +01:00
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-sse
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSSE3),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-ssse3
|
2014-01-16 14:57:52 +01:00
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-ssse3
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Explicitly disable everything that doesn't match for ARM
|
|
|
|
# FFMPEG "autodetects" by compiling an extended instruction via AS
|
|
|
|
# This works on compilers that aren't built for generic by default
|
2014-05-07 19:10:05 +02:00
|
|
|
ifeq ($(BR2_arm920t)$(BR2_arm922t)$(BR2_strongarm)$(BR2_fa526),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-armv5te
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_arm1136jf_s)$(BR2_arm1176jz_s)$(BR2_arm1176jzf_s),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-armv6
|
2014-01-16 14:57:52 +01:00
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-armv6 --disable-armv6t2
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-neon
|
2014-01-16 14:57:52 +01:00
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-neon
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_VFPV2),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-vfp
|
2014-01-16 14:57:52 +01:00
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-vfp
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
|
2014-05-13 07:28:17 +02:00
|
|
|
ifeq ($(BR2_POWERPC_CPU_HASH_ALTIVEC),y)
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --enable-altivec
|
2014-01-16 14:57:52 +01:00
|
|
|
else
|
2014-09-27 21:32:50 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS += --disable-altivec
|
2014-01-16 14:57:52 +01:00
|
|
|
endif
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_LIBAV_CONF_OPTS = \
|
2014-09-27 21:32:50 +02:00
|
|
|
--with-libav-extra-configure="$(GST1_LIBAV_CONF_EXTRA_OPTS)"
|
2014-01-16 14:57:52 +01:00
|
|
|
|
|
|
|
$(eval $(autotools-package))
|