diff options
Diffstat (limited to 'meta/recipes-multimedia/ffmpeg/ffmpeg_2.8.5.bb')
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_2.8.5.bb | 111 |
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 @@ | |||
1 | SUMMARY = "A complete, cross-platform solution to record, convert and stream audio and video." | ||
2 | DESCRIPTION = "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." | ||
5 | HOMEPAGE = "https://www.ffmpeg.org/" | ||
6 | SECTION = "libs" | ||
7 | |||
8 | LICENSE = "GPLv2+" | ||
9 | LICENSE_FLAGS = "commercial" | ||
10 | |||
11 | LIC_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 | |||
16 | SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz" | ||
17 | |||
18 | SRC_URI[md5sum] = "b34164bd181f4f81c21da3dd131d919d" | ||
19 | SRC_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 | ||
23 | PROVIDES = "libav libpostproc" | ||
24 | |||
25 | DEPENDS = "alsa-lib zlib libogg yasm-native libxv" | ||
26 | |||
27 | inherit autotools pkgconfig | ||
28 | |||
29 | PACKAGECONFIG ??= "avdevice avfilter gpl theora x264 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | ||
30 | PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice" | ||
31 | PACKAGECONFIG[avfilter] = "--enable-avfilter,--disable-avfilter" | ||
32 | PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac" | ||
33 | PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl" | ||
34 | PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm" | ||
35 | PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack" | ||
36 | PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis" | ||
37 | PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame" | ||
38 | PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" | ||
39 | PACKAGECONFIG[schroedinger] = "--enable-libschroedinger,--disable-libschroedinger,schroedinger" | ||
40 | PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex" | ||
41 | PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora" | ||
42 | PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva" | ||
43 | PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx" | ||
44 | PACKAGECONFIG[x11] = "--enable-x11grab,--disable-x11grab,virtual/libx11 libxfixes libxext xproto virtual/libsdl" | ||
45 | PACKAGECONFIG[x264] = "--enable-libx264,--disable-libx264,x264" | ||
46 | |||
47 | # Check codecs that require --enable-nonfree | ||
48 | USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ], 'yes', '', d)}" | ||
49 | |||
50 | EXTRA_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 | |||
73 | do_configure() { | ||
74 | ${S}/configure ${EXTRA_OECONF} | ||
75 | } | ||
76 | |||
77 | RSUGGESTS_${PN} = "mplayer" | ||
78 | PACKAGES_DYNAMIC += "^lib(av(codec|device|filter|format|util)|swscale).*" | ||
79 | |||
80 | python 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 | } | ||