ffmpeg.inc 3.88 KiB
DESCRIPTION = "FFmpeg is a complete solution to record, convert and stream audio and video"
HOMEPAGE = "http://ffmpeg.mplayerhq.hu/"
AUTHOR = "Fabrice Bellard ffmpeg-devel@mplayerhq.hu"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2+ & LGPLv2.1+"
ARM_INSTRUCTION_SET = "arm"
DEPENDS = "zlib libogg libvorbis libtheora liba52 libva"
INC_PR = "r0"
inherit autotools pkgconfig
LEAD_SONAME = "libavcodec.so"
EXTRA_OECONF = "\
        --enable-pp \
        --enable-shared \
        --enable-pthreads \
        --enable-gpl \
        --cross-prefix=${TARGET_PREFIX} \
        --disable-debug \
        --disable-ffserver \
        --disable-ffplay \
EXTRA_OECONF_append_powerpc += "--${@['disable-altivec','enable-altivec'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce600']]}"
FFMPEG_LIBS = "libavcodec libavdevice libavformat \
               libavutil libpostproc libswscale libavfilter"
SYSROOT_PREPROCESS_FUNCS = " \
  ffmpeg_stage_cleanup \
  ffmpeg_create_compat_links"
ffmpeg_create_compat_links() {
        rm -rf ${SYSROOT_DESTDIR}${includedir}/ffmpeg
        mkdir -m 0755 ${SYSROOT_DESTDIR}${includedir}/ffmpeg
        cd ${SYSROOT_DESTDIR}${includedir}/ffmpeg
        for lib in ${FFMPEG_LIBS}; do
                ln -s ../$lib/*.h '.' || true
        done
ffmpeg_stage_cleanup() {
        rm -rf ${SYSROOT_DESTDIR}${libdir}/vhook \
        ${SYSROOT_DESTDIR}${datadir}
PACKAGES += "${PN}-vhook-dbg ${PN}-vhook"
FILES_${PN} = "${bindir}"
FILES_${PN}-dev = "${includedir}/${PN}"
FILES_${PN}-vhook = "${libdir}/vhook"
FILES_${PN}-vhook-dbg += "${libdir}/vhook/.debug"
PACKAGES += "ffmpeg-x264-presets \
             libavcodec  libavcodec-dev  libavcodec-dbg \
             libavdevice libavdevice-dev libavdevice-dbg \
             libavformat libavformat-dev libavformat-dbg \
             libavutil   libavutil-dev   libavutil-dbg \
             libpostproc libpostproc-dev libpostproc-dbg \
             libswscale  libswscale-dev  libswscale-dbg \