diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2012-05-17 22:41:47 -0500 |
---|---|---|
committer | Tom Zanussi <tom.zanussi@intel.com> | 2012-05-30 14:22:51 -0500 |
commit | e2ca4f157d647f89e155ede81cbc5b1c7fecd719 (patch) | |
tree | 6ed4215392368782bb2662e4dc8bc44d205b3af6 /common/recipes-multimedia/ffmpeg/ffmpeg.inc | |
parent | ef1c6ace4269172eb67fcc3c8243e4bae6415c32 (diff) | |
download | meta-intel-e2ca4f157d647f89e155ede81cbc5b1c7fecd719.tar.gz |
ffmpeg: new recipe
This is a modified version of the ffmpeg recipe from oe-classic
(git://git.openembedded.org/openembedded), updated to ffmpeg-0.7.12,
along with some changes take from meta-demo
(git://git.yoctoproject.org/meta-demo).
The starting point ffmpeg recipe taken from oe-classic version was
ffmpeg_0.6.1.bb:
commit 5316c5b1416391f15277ce867489e525b7eccd6e
Author: Andreas Oberritter <obi@opendreambox.org>
Date: Wed Dec 8 22:08:40 2010 +0000
ffmpeg: add recipe for 0.6.1 (LGPLv2.1+)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
The starting point ffmpeg.inc taken from oe-classic corresponds to the
starting commit:
commit 709c4d66e0b107ca606941b988bad717c0b45d9b
Author: Denys Dmytriyenko <denis@denix.org>
Date: Tue Mar 17 14:32:59 2009 -0400
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
up to the following commit:
commit 18d59f5fad41e4ea05b5d5a8c1588a0bdbdbf815
Author: Andreas Oberritter <obi@opendreambox.org>
Date: Wed Dec 8 22:08:39 2010 +0000
ffmpeg: set default license to GPLv2+, because --enable-gpl is used.
* See http://www.ffmpeg.org/legal.html
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
The following changes were taken from meta-demo for ffmpeg.inc:
commit 33513db7658b9c72bb8c6d477c57b2ab62dab669
Author: Joshua Lock <josh@linux.intel.com>
Date: Tue Jan 25 18:00:00 2011 +0000
ffmpeg: Fix some path references that broke with latest master of poky
Signed-off-by: Joshua Lock <josh@linux.intel.com>
commit ef61afc110ee4444a1c893290079f11c96e0d560
Author: Joshua Lock <josh@linux.intel.com>
Date: Tue Mar 1 17:10:20 2011 +0000
ffmpeg: fix header installation
Change merged from OpenEmbedded
Signed-off-by: Joshua Lock <josh@linux.intel.com>
commit cae78e5c49423e9ce967f05a5a7c46920ca0cd6b
Author: Darren Hart <dvhart@linux.intel.com>
Date: Wed Nov 10 14:41:24 2010 -0800
License audit for meta-demo layer
Correct .bb and .inc files to include the proper LICENSE and LIC_FILES_CHKSUM
variables. Note that in most cases the "(at your option) a later version" clause
to the L?GPL is contained in a source file, not COPYING. In those case, add a
more or less core source file to the LIC_FILES_CHKSUM list.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Acked-by: Saul Wold <sgw@linux.intel.com>
To get the latest bug and security fixes:
- updated to ffmpeg-0.7.12
Some additional changes were made to simplify and remove components
that weren't strictly necessary for current needs:
- removed shroedinger and libgsm dependencies
- removed faac faad2 lame dependencies
- removed --libgsm, --libmp3lame, --libschroedinger
- removed RSUGGESTS mplayer
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'common/recipes-multimedia/ffmpeg/ffmpeg.inc')
-rw-r--r-- | common/recipes-multimedia/ffmpeg/ffmpeg.inc | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/common/recipes-multimedia/ffmpeg/ffmpeg.inc b/common/recipes-multimedia/ffmpeg/ffmpeg.inc new file mode 100644 index 00000000..fc8b8544 --- /dev/null +++ b/common/recipes-multimedia/ffmpeg/ffmpeg.inc | |||
@@ -0,0 +1,108 @@ | |||
1 | DESCRIPTION = "FFmpeg is a complete solution to record, convert and stream audio and video" | ||
2 | HOMEPAGE = "http://ffmpeg.mplayerhq.hu/" | ||
3 | AUTHOR = "Fabrice Bellard ffmpeg-devel@mplayerhq.hu" | ||
4 | SECTION = "libs" | ||
5 | PRIORITY = "optional" | ||
6 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
7 | |||
8 | ARM_INSTRUCTION_SET = "arm" | ||
9 | |||
10 | DEPENDS = "zlib libogg libvorbis libtheora liba52" | ||
11 | |||
12 | INC_PR = "r0" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | LEAD_SONAME = "libavcodec.so" | ||
17 | |||
18 | EXTRA_OECONF = "\ | ||
19 | \ | ||
20 | --enable-pp \ | ||
21 | --enable-shared \ | ||
22 | --enable-pthreads \ | ||
23 | --enable-gpl \ | ||
24 | \ | ||
25 | --cross-prefix=${TARGET_PREFIX} \ | ||
26 | --disable-debug \ | ||
27 | --disable-ffserver \ | ||
28 | --disable-ffplay \ | ||
29 | \ | ||
30 | " | ||
31 | |||
32 | EXTRA_OECONF_append_powerpc += "--${@['disable-altivec','enable-altivec'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce600']]}" | ||
33 | |||
34 | FFMPEG_LIBS = "libavcodec libavdevice libavformat \ | ||
35 | libavutil libpostproc libswscale libavfilter" | ||
36 | |||
37 | SYSROOT_PREPROCESS_FUNCS = " \ | ||
38 | ffmpeg_stage_cleanup \ | ||
39 | ffmpeg_create_compat_links" | ||
40 | |||
41 | ffmpeg_create_compat_links() { | ||
42 | rm -rf ${SYSROOT_DESTDIR}${includedir}/ffmpeg | ||
43 | mkdir -m 0755 ${SYSROOT_DESTDIR}${includedir}/ffmpeg | ||
44 | cd ${SYSROOT_DESTDIR}${includedir}/ffmpeg | ||
45 | |||
46 | for lib in ${FFMPEG_LIBS}; do | ||
47 | ln -s ../$lib/*.h '.' || true | ||
48 | done | ||
49 | } | ||
50 | |||
51 | ffmpeg_stage_cleanup() { | ||
52 | rm -rf ${SYSROOT_DESTDIR}${libdir}/vhook \ | ||
53 | ${SYSROOT_DESTDIR}${datadir} | ||
54 | } | ||
55 | |||
56 | PACKAGES += "${PN}-vhook-dbg ${PN}-vhook" | ||
57 | |||
58 | FILES_${PN} = "${bindir}" | ||
59 | FILES_${PN}-dev = "${includedir}/${PN}" | ||
60 | |||
61 | FILES_${PN}-vhook = "${libdir}/vhook" | ||
62 | FILES_${PN}-vhook-dbg += "${libdir}/vhook/.debug" | ||
63 | |||
64 | PACKAGES += "ffmpeg-x264-presets \ | ||
65 | libavcodec libavcodec-dev libavcodec-dbg \ | ||
66 | libavdevice libavdevice-dev libavdevice-dbg \ | ||
67 | libavformat libavformat-dev libavformat-dbg \ | ||
68 | libavutil libavutil-dev libavutil-dbg \ | ||
69 | libpostproc libpostproc-dev libpostproc-dbg \ | ||
70 | libswscale libswscale-dev libswscale-dbg \ | ||
71 | libavfilter libavfilter-dev libavfilter-dbg \ | ||
72 | libavcore libavcore-dev libavcore-dbg \ | ||
73 | " | ||
74 | |||
75 | FILES_ffmpeg-x264-presets = "${datadir}/*.ffpreset" | ||
76 | |||
77 | FILES_${PN}-dev = "${includedir}" | ||
78 | FILES_libavcodec = "${libdir}/libavcodec*.so.*" | ||
79 | FILES_libavcodec-dev = "${libdir}/libavcodec*.so ${libdir}/pkgconfig/libavcodec.pc ${libdir}/libavcodec*.a" | ||
80 | FILES_libavcodec-dbg += "${libdir}/.debug/libavcodec*" | ||
81 | |||
82 | FILES_libavdevice = "${libdir}/libavdevice*.so.*" | ||
83 | FILES_libavdevice-dev = "${libdir}/libavdevice*.so ${libdir}/pkgconfig/libavdevice.pc ${libdir}/libavdevice*.a" | ||
84 | FILES_libavdevice-dbg += "${libdir}/.debug/libavdevice*" | ||
85 | |||
86 | FILES_libavformat = "${libdir}/libavformat*.so.*" | ||
87 | FILES_libavformat-dev = "${libdir}/libavformat*.so ${libdir}/pkgconfig/libavformat.pc ${libdir}/libavformat*.a" | ||
88 | FILES_libavformat-dbg += "${libdir}/.debug/libavformat*" | ||
89 | |||
90 | FILES_libavutil = "${libdir}/libavutil*.so.*" | ||
91 | FILES_libavutil-dev = "${libdir}/libavutil*.so ${libdir}/pkgconfig/libavutil.pc ${libdir}/libavutil*.a" | ||
92 | FILES_libavutil-dbg += "${libdir}/.debug/libavutil*" | ||
93 | |||
94 | FILES_libpostproc = "${libdir}/libpostproc*.so.*" | ||
95 | FILES_libpostproc-dev = "${libdir}/libpostproc*.so ${libdir}/pkgconfig/libpostproc.pc ${libdir}/libpostproc*.a ${includedir}/postproc" | ||
96 | FILES_libpostproc-dbg += "${libdir}/.debug/libpostproc*" | ||
97 | |||
98 | FILES_libswscale = "${libdir}/libswscale*.so.*" | ||
99 | FILES_libswscale-dev = "${libdir}/libswscale*.so ${libdir}/pkgconfig/libswscale.pc ${libdir}/libswscale*.a" | ||
100 | FILES_libswscale-dbg += "${libdir}/.debug/libswscale*" | ||
101 | |||
102 | FILES_libavfilter = "${libdir}/libavfilter*.so.*" | ||
103 | FILES_libavfilter-dev = "${libdir}/libavfilter*.so ${libdir}/pkgconfig/libavfilter.pc ${libdir}/libavfilter*.a" | ||
104 | FILES_libavfilter-dbg += "${libdir}/.debug/libavfilter*" | ||
105 | |||
106 | FILES_libavcore = "${libdir}/libavcore*.so.*" | ||
107 | FILES_libavcore-dev = "${libdir}/libavcore*.so ${libdir}/pkgconfig/libavcore.pc ${libdir}/libavcore*.a" | ||
108 | FILES_libavcore-dbg += "${libdir}/.debug/libavcore*" | ||