summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/ffmpeg
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-01-27 17:11:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-30 11:37:01 +0000
commit74e2f682bb9ed90b0b729d5a32b7267f2b4efefd (patch)
tree2b57a441341a72fbce7506ddfaf2cf253ea88014 /meta/recipes-multimedia/ffmpeg
parenteb7e554cbd6194203e885e7e0ba304c01c647f06 (diff)
downloadpoky-74e2f682bb9ed90b0b729d5a32b7267f2b4efefd.tar.gz
ffmpeg: add a recipe, and remove the libav recipe
The reasons for the switch are here: http://lists.openembedded.org/pipermail/openembedded-core/2015-July/107091.html http://lists.openembedded.org/pipermail/openembedded-core/2016-January/116007.html Changes made to libav recipe: - drop libav-fix-CVE-2014-9676.patch, the fix is available upstream - merge .inc into .bb, only one upstream version (latest one) is provided - drop separate libpostproc recipe, the library is provided directly from ffmpeg source tree - drop ARM tweaks; they date to classic-OE, need to be retested against the new code and probably haven't been relevant for a long time - drop PACKAGECONFIG options that are no longer provided upstream - drop build and packaging tweaks that don't seem to do anything useful and also date back to classic OE; if you run into issues, please report - explicitly enable PIC and disable stripping of binaries (From OE-Core rev: 77dbf07293df15cd5473422abd678930d6277bb0) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/ffmpeg')
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_2.8.5.bb111
1 files changed, 111 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_2.8.5.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_2.8.5.bb
new file mode 100644
index 0000000000..7107803c46
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_2.8.5.bb
@@ -0,0 +1,111 @@
1SUMMARY = "A complete, cross-platform solution to record, convert and stream audio and video."
2DESCRIPTION = "FFmpeg is the leading multimedia framework, able to decode, encode, transcode, \
3 mux, demux, stream, filter and play pretty much anything that humans and machines \
4 have created. It supports the most obscure ancient formats up to the cutting edge."
5HOMEPAGE = "https://www.ffmpeg.org/"
6SECTION = "libs"
7
8LICENSE = "GPLv2+"
9LICENSE_FLAGS = "commercial"
10
11LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
12 file://COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
13 file://COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \
14 file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02"
15
16SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz"
17
18SRC_URI[md5sum] = "b34164bd181f4f81c21da3dd131d919d"
19SRC_URI[sha256sum] = "76fb83a267d2d1cb332742dadf28ad8b58af7958165f51bb1a2c226a122f0ac7"
20
21# Should be API compatible with libav (which was a fork of ffmpeg)
22# libpostproc was previously packaged from a separate recipe
23PROVIDES = "libav libpostproc"
24
25DEPENDS = "alsa-lib zlib libogg yasm-native libxv"
26
27inherit autotools pkgconfig
28
29PACKAGECONFIG ??= "avdevice avfilter gpl theora x264 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
30PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice"
31PACKAGECONFIG[avfilter] = "--enable-avfilter,--disable-avfilter"
32PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac"
33PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl"
34PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
35PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
36PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis"
37PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame"
38PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
39PACKAGECONFIG[schroedinger] = "--enable-libschroedinger,--disable-libschroedinger,schroedinger"
40PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex"
41PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora"
42PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva"
43PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx"
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)}"
49
50EXTRA_OECONF = " \
51 --disable-stripping \
52 --enable-pic \
53 --enable-shared \
54 --enable-pthreads \
55 ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
56 \
57 --cross-prefix=${TARGET_PREFIX} \
58 \
59 --ld="${CCLD}" \
60 --arch=${TARGET_ARCH} \
61 --target-os="linux" \
62 --enable-cross-compile \
63 --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
64 --extra-ldflags="${TARGET_LDFLAGS}" \
65 --sysroot="${STAGING_DIR_TARGET}" \
66 --enable-hardcoded-tables \
67 ${EXTRA_FFCONF} \
68 --libdir=${libdir} \
69 --shlibdir=${libdir} \
70 --datadir=${datadir}/ffmpeg \
71"
72
73do_configure() {
74 ${S}/configure ${EXTRA_OECONF}
75}
76
77RSUGGESTS_${PN} = "mplayer"
78PACKAGES_DYNAMIC += "^lib(av(codec|device|filter|format|util)|swscale).*"
79
80python populate_packages_prepend() {
81 av_libdir = d.expand('${libdir}')
82 av_pkgconfig = d.expand('${libdir}/pkgconfig')
83
84 # Runtime package
85 do_split_packages(d, av_libdir, '^lib(.*)\.so\..*',
86 output_pattern='lib%s',
87 description='libav %s library',
88 extra_depends='',
89 prepend=True,
90 allow_links=True)
91
92 # Development packages (-dev, -staticdev)
93 do_split_packages(d, av_libdir, '^lib(.*)\.so$',
94 output_pattern='lib%s-dev',
95 description='libav %s development package',
96 extra_depends='${PN}-dev',
97 prepend=True,
98 allow_links=True)
99 do_split_packages(d, av_pkgconfig, '^lib(.*)\.pc$',
100 output_pattern='lib%s-dev',
101 description='libav %s development package',
102 extra_depends='${PN}-dev',
103 prepend=True)
104 do_split_packages(d, av_libdir, '^lib(.*)\.a$',
105 output_pattern='lib%s-staticdev',
106 description='libav %s development package - static library',
107 extra_depends='${PN}-dev',
108 prepend=True,
109 allow_links=True)
110
111}