Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Libav-based GStreamer 1.x plugin" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 2 | HOMEPAGE = "http://gstreamer.freedesktop.org/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | SECTION = "multimedia" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 4 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | LICENSE = "GPLv2+ & LGPLv2+ & ( (GPLv2+ & LGPLv2.1+) | (GPLv3+ & LGPLv3+) )" |
| 6 | LICENSE_FLAGS = "commercial" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 8 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base zlib bzip2 xz" |
| 9 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 10 | inherit autotools pkgconfig upstream-version-is-even gtk-doc |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 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 Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 15 | PACKAGECONFIG ??= "orc yasm" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 17 | PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl," |
| 18 | PACKAGECONFIG[libav] = "--with-system-libav,,libav" |
| 19 | PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc" |
| 20 | PACKAGECONFIG[yasm] = "--enable-yasm,--disable-yasm,yasm-native" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 21 | PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | |
| 23 | GSTREAMER_1_0_DEBUG ?= "--disable-debug" |
| 24 | |
| 25 | LIBAV_EXTRA_CONFIGURE = "--with-libav-extra-configure" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 26 | |
| 27 | LIBAV_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 33 | # Disable assembly optimizations for X32, as this libav lacks the support |
| 34 | PACKAGECONFIG_remove_linux-gnux32 = "yasm" |
| 35 | LIBAV_EXTRA_CONFIGURE_COMMON_ARG_append_linux-gnux32 = " --disable-asm" |
| 36 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | LIBAV_EXTRA_CONFIGURE_COMMON = \ |
| 38 | '${LIBAV_EXTRA_CONFIGURE}="${LIBAV_EXTRA_CONFIGURE_COMMON_ARG}"' |
| 39 | |
| 40 | EXTRA_OECONF = "${LIBAV_EXTRA_CONFIGURE_COMMON}" |
| 41 | |
| 42 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la" |
| 44 | FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" |
| 45 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 46 | # http://errors.yoctoproject.org/Errors/Details/20493/ |
| 47 | ARM_INSTRUCTION_SET_armv4 = "arm" |
| 48 | ARM_INSTRUCTION_SET_armv5 = "arm" |
| 49 | |
| 50 | # ffmpeg/libav disables PIC on some platforms (e.g. x86-32) |
| 51 | INSANE_SKIP_${PN} = "textrel" |