diff options
| author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2016-04-06 11:19:11 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-06 22:57:25 +0100 |
| commit | 8cc10a90c42f9e6c43aeef429029e2af997bf892 (patch) | |
| tree | efb1ff485f71a019119d31c8545d5bfcf4fe2869 | |
| parent | 45c19447ae611d4d1997dee83ea4dc00cd12b852 (diff) | |
| download | poky-8cc10a90c42f9e6c43aeef429029e2af997bf892.tar.gz | |
ffmpeg: Make configure options explicit
Currently ffmpeg builds libraries that are packaged but never appear
in PACKAGES. Add PACKAGECONFIGs for all libraries, and make sure
PACKAGES_DYNAMIC lists all dynamic packages.
Default choice (build all except libavresample) does not change.
(From OE-Core rev: c17411edfc08e4937405f33a354e0d308c6964a1)
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb index 7dfcf094f3..0296ada0aa 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb | |||
| @@ -29,9 +29,21 @@ DEPENDS = "alsa-lib zlib libogg yasm-native" | |||
| 29 | 29 | ||
| 30 | inherit autotools pkgconfig | 30 | inherit autotools pkgconfig |
| 31 | 31 | ||
| 32 | PACKAGECONFIG ??= "avdevice avfilter bzlib gpl lzma theora x264 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xv', '', d)}" | 32 | PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc \ |
| 33 | bzlib gpl lzma theora x264 \ | ||
| 34 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xv', '', d)}" | ||
| 35 | |||
| 36 | # libraries to build in addition to avutil | ||
| 33 | PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice" | 37 | PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice" |
| 34 | PACKAGECONFIG[avfilter] = "--enable-avfilter,--disable-avfilter" | 38 | PACKAGECONFIG[avfilter] = "--enable-avfilter,--disable-avfilter" |
| 39 | PACKAGECONFIG[avcodec] = "--enable-avcodec,--disable-avcodec" | ||
| 40 | PACKAGECONFIG[avformat] = "--enable-avformat,--disable-avformat" | ||
| 41 | PACKAGECONFIG[swresample] = "--enable-swresample,--disable-swresample" | ||
| 42 | PACKAGECONFIG[swscale] = "--enable-swscale,--disable-swscale" | ||
| 43 | PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc" | ||
| 44 | PACKAGECONFIG[avresample] = "--enable-avresample,--disable-avresample" | ||
| 45 | |||
| 46 | # features to support | ||
| 35 | PACKAGECONFIG[bzlib] = "--enable-bzlib,--disable-bzlib,bzip2" | 47 | PACKAGECONFIG[bzlib] = "--enable-bzlib,--disable-bzlib,bzip2" |
| 36 | PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac" | 48 | PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac" |
| 37 | PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl" | 49 | PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl" |
| @@ -80,7 +92,7 @@ do_configure() { | |||
| 80 | ${S}/configure ${EXTRA_OECONF} | 92 | ${S}/configure ${EXTRA_OECONF} |
| 81 | } | 93 | } |
| 82 | 94 | ||
| 83 | PACKAGES_DYNAMIC += "^lib(av(codec|device|filter|format|util)|swscale).*" | 95 | PACKAGES_DYNAMIC += "^lib(av(codec|device|filter|format|util|resample)|swscale|swresample|postproc).*" |
| 84 | 96 | ||
| 85 | python populate_packages_prepend() { | 97 | python populate_packages_prepend() { |
| 86 | av_libdir = d.expand('${libdir}') | 98 | av_libdir = d.expand('${libdir}') |
