2014-01-16 14:57:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gst1-libav
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-03-25 13:50:13 +01:00
|
|
|
GST1_LIBAV_VERSION = 1.8.0
|
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-10-19 11:59:01 +02:00
|
|
|
GST1_LIBAV_CONF_EXTRA_OPTS = --cross-prefix=$(TARGET_CROSS) --target-os=linux
|
2014-01-16 14:57:52 +01:00
|
|
|
|
|
|
|
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-10-21 22:26:53 +02:00
|
|
|
ifeq ($(BR2_ARM_CPU_ARMV4),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
|
2014-10-21 22:26:54 +02:00
|
|
|
ifeq ($(BR2_ARM_CPU_ARMV6)$(BR2_ARM_CPU_ARMV7A),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))
|