require ffmpeg.inc # The license depends on the configure option selected in this recipe 'non-free' is disabled and 'gpl' is enabled LICENSE = "GPLv2+" DEPENDS += "virtual/libsdl schroedinger libgsm libvpx" # When bumping SRCREV make sure you bump PR here and in dependant recipes (gst-ffmpeg, gnash, omxil, etc) to account for SOVERSION changes SRCREV = "24596" PV = "0.6+${PR}+svnr${SRCPV}" PR = "${INC_PR}.3" DEFAULT_PREFERENCE = "-1" DEFAULT_PREFERENCE_angstrom = "1" DEFAULT_PREFERENCE_shr = "1" SRC_URI = "svn://svn.ffmpeg.org/ffmpeg/;module=trunk" S = "${WORKDIR}/trunk" B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" FULL_OPTIMIZATION_armv7a = "-fexpensive-optimizations -fno-tree-vectorize -fomit-frame-pointer -O4 -ffast-math" BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}" EXTRA_FFCONF_armv7a = "--cpu=cortex-a8" EXTRA_FFCONF ?= "" EXTRA_OECONF = " \ --enable-shared \ --enable-pthreads \ --disable-stripping \ --enable-gpl \ --enable-postproc \ \ --cross-prefix=${TARGET_PREFIX} \ --prefix=${prefix} \ \ --enable-ffserver \ --enable-ffplay \ --enable-x11grab \ --enable-libgsm \ --enable-libmp3lame \ --enable-libschroedinger \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --arch=${TARGET_ARCH} \ --target-os="linux" \ --enable-cross-compile \ --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \ --extra-ldflags="${TARGET_LDFLAGS}" \ --enable-hardcoded-tables \ ${EXTRA_FFCONF} \ " do_configure() { sed -i -e s:'check_cflags -std=c99'::g ${S}/configure mkdir -p ${B} cd ${B} ${S}/configure ${EXTRA_OECONF} sed -i -e s:Os:O4:g ${B}/config.h }