From f59513de0e666aaa51d639a7a1731b395935446a Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Fri, 13 May 2022 18:43:47 -0700 Subject: [PATCH] add portaudio --- .../portaudio/portaudio_19.0.7.bb | 26 +++++++++++++++++++ .../images/mtk-image-aud-8516.bb | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 meta/meta-mediatek-aud/recipes-apps/portaudio/portaudio_19.0.7.bb diff --git a/meta/meta-mediatek-aud/recipes-apps/portaudio/portaudio_19.0.7.bb b/meta/meta-mediatek-aud/recipes-apps/portaudio/portaudio_19.0.7.bb new file mode 100644 index 000000000..7d6eb9296 --- /dev/null +++ b/meta/meta-mediatek-aud/recipes-apps/portaudio/portaudio_19.0.7.bb @@ -0,0 +1,26 @@ +SUMMARY = "PortAudio is a free, cross-platform, open-source, audio I/O library." +DESCRIPTION = "It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). " +HOMEPAGE = "http://www.portaudio.com/" +DEPENDS = "" +LICENSE = "GPLv2" + +inherit workonsrc +WORKONSRC = "${TOPDIR}/../src/apps/portaudio" + +COMPATIBLE_HOST = "aarch64-poky-linux" + +do_install() { + install -d ${D}${libdir} + install -d ${D}${libdir}/pkgconfig + install -d ${D}${includedir} + + #jemalloc + install -m 755 ${S}/lib64/libportaudio.so ${D}${libdir} + install -m 755 ${S}/lib64/pkgconfig/portaudio-2.0.pc ${D}${libdir}/pkgconfig + install -m 755 ${S}/include/pa_linux_alsa.h ${D}${includedir}/ + install -m 755 ${S}/include/portaudio.h ${D}${includedir}/ +} + +FILES_${PN} += "${includedir} ${libdir}" +INSANE_SKIP_${PN} += "already-stripped ldflags" +FILES_${PN}-dev = "${libdir} ${includedir}" \ No newline at end of file diff --git a/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb b/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb index d7bfdecb1..4e4721c26 100755 --- a/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb +++ b/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb @@ -15,6 +15,7 @@ CORE_IMAGE_EXTRA_INSTALL += " \ ${@base_contains('LICENSE_FLAGS_GMRENDER', 'yes', 'packagegroup-mtk-gstreamer1.0', '' ,d)} \ " +TOOLCHAIN_TARGET_TASK_remove = "ntp" IMAGE_INSTALL_append = " \ ${@base_contains('LICENSE_FLAGS_FFMPEG', 'yes', 'ffmpeg', '' ,d)} \ @@ -64,6 +65,7 @@ IMAGE_INSTALL_append = " \ cunit \ nghttp2 \ jemalloc \ + portaudio \ " install_proc() {