summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-multimedia/libav/libav.inc30
1 files changed, 22 insertions, 8 deletions
diff --git a/meta/recipes-multimedia/libav/libav.inc b/meta/recipes-multimedia/libav/libav.inc
index a05a2a6601..1d617a2482 100644
--- a/meta/recipes-multimedia/libav/libav.inc
+++ b/meta/recipes-multimedia/libav/libav.inc
@@ -1,6 +1,12 @@
1SUMMARY = "A complete, cross-platform solution to record, convert and stream audio and video" 1SUMMARY = "Open source audio and video processing tools and librairies"
2DESCRIPTION = "Libav is a friendly and community-driven effort to provide its users \
3 with a set of portable, functional and high-performance libraries for \
4 dealing with multimedia formats of all sorts. It originates from the \
5 FFmpeg codebase, but goes its own way these days, providing its users \
6 with reliable releases and a clear vision how to go forward."
2HOMEPAGE = "http://libav.org/" 7HOMEPAGE = "http://libav.org/"
3SECTION = "libs" 8SECTION = "libs"
9
4LICENSE = "GPLv2+" 10LICENSE = "GPLv2+"
5LICENSE_FLAGS = "commercial" 11LICENSE_FLAGS = "commercial"
6 12
@@ -9,7 +15,7 @@ PROVIDES = "ffmpeg"
9 15
10ARM_INSTRUCTION_SET = "arm" 16ARM_INSTRUCTION_SET = "arm"
11 17
12DEPENDS = "zlib libogg libvorbis libtheora yasm-native" 18DEPENDS = "zlib libogg yasm-native"
13 19
14INC_PR = "r8" 20INC_PR = "r8"
15 21
@@ -23,21 +29,29 @@ BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}"
23EXTRA_FFCONF_armv7a = "--cpu=cortex-a8" 29EXTRA_FFCONF_armv7a = "--cpu=cortex-a8"
24EXTRA_FFCONF ?= "" 30EXTRA_FFCONF ?= ""
25 31
26PACKAGECONFIG ??= "bzip2 x264 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" 32PACKAGECONFIG ??= "bzip2 x264 theora ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
27PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
28PACKAGECONFIG[bzip2] = "--enable-bzlib,--disable-bzlib,bzip2" 33PACKAGECONFIG[bzip2] = "--enable-bzlib,--disable-bzlib,bzip2"
29PACKAGECONFIG[schroedinger] = "--enable-libschroedinger,--disable-libschroedinger,schroedinger" 34PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac"
30PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm" 35PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
31PACKAGECONFIG[x264] = "--enable-libx264,--disable-libx264,x264" 36PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
32PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx" 37PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis"
33PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame" 38PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame"
34PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac" 39PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
40PACKAGECONFIG[schroedinger] = "--enable-libschroedinger,--disable-libschroedinger,schroedinger"
41PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex"
42PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora"
43PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx"
35PACKAGECONFIG[x11] = "--enable-x11grab,--disable-x11grab,virtual/libx11 libxfixes libxext xproto virtual/libsdl" 44PACKAGECONFIG[x11] = "--enable-x11grab,--disable-x11grab,virtual/libx11 libxfixes libxext xproto virtual/libsdl"
45PACKAGECONFIG[x264] = "--enable-libx264,--disable-libx264,x264"
46
47# Check codecs that require --enable-nonfree
48USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ], 'yes', '', d)}"
36 49
37EXTRA_OECONF = " \ 50EXTRA_OECONF = " \
38 --enable-shared \ 51 --enable-shared \
39 --enable-pthreads \ 52 --enable-pthreads \
40 --enable-gpl \ 53 --enable-gpl \
54 ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
41 --enable-avfilter \ 55 --enable-avfilter \
42 \ 56 \
43 --cross-prefix=${TARGET_PREFIX} \ 57 --cross-prefix=${TARGET_PREFIX} \