summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2015-12-02 10:45:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-08 10:20:50 +0000
commitfda98598f0d8afb94d573eca6c7c262b8c0d599f (patch)
tree2ae37b2c48bca32868179a1103b823e99c0ec577 /meta
parent7ba85f1c1373c45b363e566efc7e334152e16da5 (diff)
downloadpoky-fda98598f0d8afb94d573eca6c7c262b8c0d599f.tar.gz
libav: Add PACKAGECONFIG options: avdevice, avfilter, avplay, gpl
(From OE-Core rev: 896c27d45d77a2bb57b3cd350b60f1bd97dd13dc) Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-multimedia/libav/libav.inc13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta/recipes-multimedia/libav/libav.inc b/meta/recipes-multimedia/libav/libav.inc
index a8c78be031..e55038c2c2 100644
--- a/meta/recipes-multimedia/libav/libav.inc
+++ b/meta/recipes-multimedia/libav/libav.inc
@@ -34,9 +34,13 @@ BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}"
34EXTRA_FFCONF_armv7a = "--cpu=cortex-a8" 34EXTRA_FFCONF_armv7a = "--cpu=cortex-a8"
35EXTRA_FFCONF ?= "" 35EXTRA_FFCONF ?= ""
36 36
37PACKAGECONFIG ??= "bzip2 x264 theora ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" 37PACKAGECONFIG ??= "avdevice avfilter avplay bzip2 gpl theora x264 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
38PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice"
39PACKAGECONFIG[avfilter] = "--enable-avfilter,--disable-avfilter"
40PACKAGECONFIG[avplay] = "--enable-avplay,--disable-avplay"
38PACKAGECONFIG[bzip2] = "--enable-bzlib,--disable-bzlib,bzip2" 41PACKAGECONFIG[bzip2] = "--enable-bzlib,--disable-bzlib,bzip2"
39PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac" 42PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac"
43PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl"
40PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm" 44PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
41PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack" 45PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
42PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis" 46PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis"
@@ -56,14 +60,11 @@ USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ],
56EXTRA_OECONF = " \ 60EXTRA_OECONF = " \
57 --enable-shared \ 61 --enable-shared \
58 --enable-pthreads \ 62 --enable-pthreads \
59 --enable-gpl \
60 ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \ 63 ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
61 --enable-avfilter \
62 \ 64 \
63 --cross-prefix=${TARGET_PREFIX} \ 65 --cross-prefix=${TARGET_PREFIX} \
64 --prefix=${prefix} \ 66 --prefix=${prefix} \
65 \ 67 \
66 --enable-avplay \
67 --ld="${CCLD}" \ 68 --ld="${CCLD}" \
68 --arch=${TARGET_ARCH} \ 69 --arch=${TARGET_ARCH} \
69 --target-os="linux" \ 70 --target-os="linux" \
@@ -87,7 +88,9 @@ do_configure() {
87} 88}
88 89
89do_install_append() { 90do_install_append() {
90 install -m 0644 ${S}/libavfilter/*.h ${D}${includedir}/libavfilter/ 91 if [ -n "${@bb.utils.contains('PACKAGECONFIG', 'avfilter', 'yes', '', d)}" ]; then
92 install -m 0644 ${S}/libavfilter/*.h ${D}${includedir}/libavfilter/
93 fi
91} 94}
92 95
93PACKAGES += "${PN}-vhook-dbg ${PN}-vhook ffmpeg-x264-presets" 96PACKAGES += "${PN}-vhook-dbg ${PN}-vhook ffmpeg-x264-presets"