blob: 3072d6d1107e8639cc675fd55dae9792527b2567 [file] [log] [blame]
xf.liaa4d92f2023-09-13 00:18:58 -07001DESCRIPTION = "ffmpeg"
2DEPENDS = "fdk-aac-master vo-amrwbenc opencore-amr"
3SECTION = "lib"
4LICENSE = "zte"
5PV = "3.2.14"
6PR = "r0"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
8
9#配置code路径信息。
10#FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
11#SRC_URI = " \
12# file://ffmpeg-${PV} \
13# "
14SRC_URI = " \
15 https://www.ffmpeg.org/releases/ffmpeg-${PV}.tar.gz \
16 file://0001-fix-for-sanchips-device.patch \
xf.lice873192023-11-08 17:10:35 -080017 file://0001-fix-for-msm.patch \
xf.liaa4d92f2023-09-13 00:18:58 -070018 "
19
20SRC_URI[md5sum] = "e0568845434f6fdeb67f4c3a67717e5b"
21SRC_URI[sha256sum] = "d611182010c8cba1b63deade32467810af905e0f265e4683fbfb22fcbc165bb6"
22
23S = "${WORKDIR}"
24#引用公用头文件和编译选项。
25include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
26
27do_configure () {
28 cd ffmpeg-${PV} && ./build_sc_phone.sh
29}
30#编译
31#do_compile () {
32#}
33
34#库和头文件的安装
35do_install () {
36 install -d ${D}${libdir}/
37
38 install -d ${D}/usr/include
39 install -d ${D}/usr/include/libavcodec
40 install -d ${D}/usr/include/libavformat
41 install -d ${D}/usr/include/libavutil
42
43 install -m 0755 ${S}/ffmpeg-3.2.14/pkgs/*.a ${D}${libdir}/
44
45 install -m 0644 ${S}/ffmpeg-3.2.14/pkgs/include/libavcodec/*.h ${D}/usr/include/libavcodec
46 install -m 0644 ${S}/ffmpeg-3.2.14/pkgs/include/libavformat/*.h ${D}/usr/include/libavformat
47 install -m 0644 ${S}/ffmpeg-3.2.14/pkgs/include/libavutil/*.h ${D}/usr/include/libavutil
48
49 #install elfs
50 install -d ${ELFS-PATH}/
51 install -m 0755 ${S}/ffmpeg-3.2.14/pkgs/*.a ${ELFS-PATH}/
52
53}
54
55#清库
56do_cleanlibs () {
57 rm -fr ${ELFS-PATH}/libavcodec.a
58 rm -fr ${ELFS-PATH}/libavformat.a
59 rm -fr ${ELFS-PATH}/libavutil.a
60}
61
62#rootfs包含的文件
63FILES_${PN} += "${libdir}/*.so"
64FILES_${PN}-dbg += "${libdir}/.debug"
65FILES_SOLIBSDEV = ""
66INSANE_SKIP_${PN} = "dev-so"
67