blob: f53c8dde92832334967ed50a8e3afe911bdd2cc0 [file] [log] [blame]
DESCRIPTION = "vo-amrwbenc"
DEPENDS = ""
SECTION = "lib"
LICENSE = "zte"
PV = "0.1.2"
PR = "r0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
#配置code路径信息。
#FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
#SRC_URI = " \
# file://vo-amrwbenc-${PV} \
# "
SRC_URI = " \
https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/vo-amrwbenc-${PV}.tar.gz \
file://0001-fix-for-sanchips-device.patch \
"
SRC_URI[md5sum] = "588205f686adc23532e31fe3646ddcb6"
SRC_URI[sha256sum] = "dd8c33e57bc415754f31fbb1b1536563bf731fc14e55f8182564e4c0fbb26435"
S = "${WORKDIR}"
#引用公用头文件和编译选项。
include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
do_configure () {
cd vo-amrwbenc-${PV} && ./build_sc.sh
}
#库和头文件的安装
do_install () {
install -d ${D}${libdir}/
install -d ${D}/usr/include
install -d ${D}/usr/include/vo-amrwbenc
install -m 0755 ${S}/vo-amrwbenc-${PV}/pkgs/lib/*.a ${D}${libdir}/
install -m 0644 ${S}/vo-amrwbenc-${PV}/pkgs/include/vo-amrwbenc/*.h ${D}/usr/include/vo-amrwbenc
#install elfs
install -d ${ELFS-PATH}/
install -m 0755 ${S}/vo-amrwbenc-${PV}/pkgs/lib/*.a ${ELFS-PATH}/
}
#清库
do_cleanlibs () {
rm -fr ${ELFS-PATH}/libvo-amrwbenc.a
}
#rootfs包含的文件
FILES_${PN} += "${libdir}/*.so"
FILES_${PN}-dbg += "${libdir}/.debug"
FILES_SOLIBSDEV = ""
INSANE_SKIP_${PN} = "dev-so"