blob: c2283061cc0131add96bf038bd538f68c622a6e8 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Libav-based GStreamer 1.x plugin"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002HOMEPAGE = "http://gstreamer.freedesktop.org/"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003SECTION = "multimedia"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05004
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005LICENSE = "GPLv2+ & LGPLv2+ & ( (GPLv2+ & LGPLv2.1+) | (GPLv3+ & LGPLv3+) )"
6LICENSE_FLAGS = "commercial"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base zlib bzip2 xz"
9
Patrick Williamsc0f7c042017-02-23 20:41:17 -060010inherit autotools pkgconfig upstream-version-is-even gtk-doc
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12# CAUTION: Using the system libav is not recommended. Since the libav API is changing all the time,
13# compilation errors (and other, more subtle bugs) can happen. It is usually better to rely on the
14# libav copy included in the gst-libav package.
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015PACKAGECONFIG ??= "orc yasm"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl,"
18PACKAGECONFIG[libav] = "--with-system-libav,,libav"
19PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc"
20PACKAGECONFIG[yasm] = "--enable-yasm,--disable-yasm,yasm-native"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060021PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022
23GSTREAMER_1_0_DEBUG ?= "--disable-debug"
24
25LIBAV_EXTRA_CONFIGURE = "--with-libav-extra-configure"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050026
27LIBAV_EXTRA_CONFIGURE_COMMON_ARG = "--target-os=linux \
28 --cc='${CC}' --as='${CC}' --ld='${CC}' --nm='${NM}' --ar='${AR}' \
29 --ranlib='${RANLIB}' \
30 ${GSTREAMER_1_0_DEBUG} \
31 --cross-prefix='${HOST_PREFIX}'"
32
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033# Disable assembly optimizations for X32, as this libav lacks the support
34PACKAGECONFIG_remove_linux-gnux32 = "yasm"
35LIBAV_EXTRA_CONFIGURE_COMMON_ARG_append_linux-gnux32 = " --disable-asm"
36
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037LIBAV_EXTRA_CONFIGURE_COMMON = \
38'${LIBAV_EXTRA_CONFIGURE}="${LIBAV_EXTRA_CONFIGURE_COMMON_ARG}"'
39
40EXTRA_OECONF = "${LIBAV_EXTRA_CONFIGURE_COMMON}"
41
42FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
44FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
45
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050046# http://errors.yoctoproject.org/Errors/Details/20493/
47ARM_INSTRUCTION_SET_armv4 = "arm"
48ARM_INSTRUCTION_SET_armv5 = "arm"
49
50# ffmpeg/libav disables PIC on some platforms (e.g. x86-32)
51INSANE_SKIP_${PN} = "textrel"