diff --git a/meta/meta-mediatek-aud/recipes-apps/jemalloc/jemalloc_5.3.0.bb b/meta/meta-mediatek-aud/recipes-apps/jemalloc/jemalloc_5.3.0.bb index 68806bcf0..fcecd0ce7 100644 --- a/meta/meta-mediatek-aud/recipes-apps/jemalloc/jemalloc_5.3.0.bb +++ b/meta/meta-mediatek-aud/recipes-apps/jemalloc/jemalloc_5.3.0.bb @@ -20,6 +20,22 @@ do_install() { install -m 755 ${S}/include/jemalloc/jemalloc.h ${D}${includedir}/jemalloc } -FILES_${PN} += "${includedir} ${libdir}" -INSANE_SKIP_${PN} += "already-stripped ldflags" -FILES_${PN}-dev = "${libdir} ${includedir}" \ No newline at end of file +# The base package, this includes everything needed to actually run the application on the target system. +PACKAGES += "FILES-${PN}-lib" + +FILES_${PN}-lib = " \ + ${libdir}/lib*.so \ + ${includedir}/*" + +# Make sure our source directory (for the build) matches the directory structure in the tarball +PACKAGES = "${PN} FILES-${PN}-lib ${PN}-dev ${PN}-dbg ${PN}-staticdev" + +RDEPENDS_${PN}-staticdev = "" +RDEPENDS_${PN}-dev = "" +RDEPENDS_${PN}-dbg = "" + +INSANE_SKIP_${PN} = "ldflags" +INHIBIT_PACKAGE_STRIP = "1" +INHIBIT_SYSROOT_STRIP = "1" +SOLIBS = ".so" +FILES_SOLIBSDEV = "" \ No newline at end of file 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..29e5ab11f --- /dev/null +++ b/meta/meta-mediatek-aud/recipes-apps/portaudio/portaudio_19.0.7.bb @@ -0,0 +1,42 @@ +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}/ +} + +# The base package, this includes everything needed to actually run the application on the target system. +PACKAGES += "FILES-${PN}-lib" + +FILES_${PN}-lib = " \ + ${libdir}/lib*.so \ + ${includedir}/*" + +# Make sure our source directory (for the build) matches the directory structure in the tarball +PACKAGES = "${PN} FILES-${PN}-lib ${PN}-dev ${PN}-dbg ${PN}-staticdev" + +RDEPENDS_${PN}-staticdev = "" +RDEPENDS_${PN}-dev = "" +RDEPENDS_${PN}-dbg = "" + +INSANE_SKIP_${PN} = "ldflags" +INHIBIT_PACKAGE_STRIP = "1" +INHIBIT_SYSROOT_STRIP = "1" +SOLIBS = ".so" +FILES_SOLIBSDEV = "" \ No newline at end of file diff --git a/meta/meta-mediatek-aud/recipes-support/curl/curl_7.63.0.bb b/meta/meta-mediatek-aud/recipes-support/curl/curl_7.63.0.bb index adb0964db..d6e05fe6d 100755 --- a/meta/meta-mediatek-aud/recipes-support/curl/curl_7.63.0.bb +++ b/meta/meta-mediatek-aud/recipes-support/curl/curl_7.63.0.bb @@ -16,7 +16,7 @@ SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \ SRC_URI += " file://configure_ac.patch" SRC_URI[md5sum] = "0a6c1e993bd5102bc52fc89900542644" -SRC_URI[sha256sum] = "9bab7ed4ecff77020a312d84cc5fb7eb02d58419d218f267477a724a17fd8dd8" +SRC_URI[sha256sum] = "93fb2cd4b880656b4e8589c912a9fd092750166d555166370247f09d18f5d0c0" CVE_PRODUCT = "libcurl" inherit autotools pkgconfig binconfig multilib_header diff --git a/meta/meta-mediatek-aud/recipes-support/curl/curl_7.83.1.bb b/meta/meta-mediatek-aud/recipes-support/curl/curl_7.83.1.bb new file mode 100644 index 000000000..3f4f1bd91 --- /dev/null +++ b/meta/meta-mediatek-aud/recipes-support/curl/curl_7.83.1.bb @@ -0,0 +1,97 @@ +SUMMARY = "Command line tool and library for client-side URL transfers" +HOMEPAGE = "http://curl.haxx.se/" +BUGTRACKER = "http://curl.haxx.se/mail/list.cgi?list=curl-tracker" +SECTION = "console/network" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=190c514872597083303371684954f238" + +SRC_URI = "https://curl.se/download/curl-${PV}.tar.gz \ + file://0001-replace-krb5-config-with-pkg-config.patch \ +" + + +# curl likes to set -g0 in CFLAGS, so we stop it +# from mucking around with debug options +# +SRC_URI += " file://configure_ac.patch" + +SRC_URI[md5sum] = "0dc6c66339d925a6a03ff343f98d095e" +SRC_URI[sha256sum] = "93fb2cd4b880656b4e8589c912a9fd092750166d555166370247f09d18f5d0c0" + +CVE_PRODUCT = "libcurl" +inherit autotools pkgconfig binconfig multilib_header + +PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6", "", d)} proxy threaded-resolver zlib ssl" +PACKAGECONFIG_class-native = "ipv6 proxy ssl threaded-resolver zlib" +PACKAGECONFIG_class-nativesdk = "ipv6 proxy ssl threaded-resolver zlib" + +# 'ares' and 'threaded-resolver' are mutually exclusive +PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares" +PACKAGECONFIG[dict] = "--enable-dict,--disable-dict," +PACKAGECONFIG[gnutls] = "--without-gnutls,--with-gnutls,gnutls" +PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher," +PACKAGECONFIG[imap] = "--enable-imap,--disable-imap," +PACKAGECONFIG[ipv6] = "--disable-ipv6,--enable-ipv6," +PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap," +PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps," +PACKAGECONFIG[libidn] = "--with-libidn2,--without-libidn2,libidn2" +PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2" +PACKAGECONFIG[pop3] = "--enable-pop3,--disable-pop3," +PACKAGECONFIG[proxy] = "--enable-proxy,--disable-proxy," +PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump" +PACKAGECONFIG[rtsp] = "--enable-rtsp,--disable-rtsp," +PACKAGECONFIG[smb] = "--enable-smb,--disable-smb," +PACKAGECONFIG[smtp] = "--enable-smtp,--disable-smtp," +PACKAGECONFIG[ssl] = "--with-ssl --with-random=/dev/urandom,--without-ssl,openssl" +PACKAGECONFIG[telnet] = "--enable-telnet,--disable-telnet," +PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp," +PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threaded-resolver" +PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" +PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5" +PACKAGECONFIG[nghttp2] = "--with-nghttp2,--without-nghttp2,nghttp2" + +EXTRA_OECONF = " \ + --enable-crypto-auth \ + --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ + --without-libpsl \ + --disable-ftp \ + --disable-rtsp \ + --disable-tftp \ + --disable-telnet \ + --disable-smtp \ + --disable-imap \ + --without-librtmp \ + --disable-ldap \ + --disable-ldaps \ + --disable-pop3 \ + --disable-dict \ + --disable-gopher \ + --enable-optimize \ + --disable-curldebug \ + --disable-smb \ + --disable-manual \ + --disable-libcurl-option \ + --disable-versioned-symbols \ + --disable-sspi \ + --disable-ntlm-wb \ + --disable-tls-srp \ +" + + +do_install_append_class-target() { + # cleanup buildpaths from curl-config + sed -i \ + -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ + -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \ + -e 's|${DEBUG_PREFIX_MAP}||g' \ + ${D}${bindir}/curl-config +} + +PACKAGES =+ "lib${BPN}" + +FILES_lib${BPN} = "${libdir}/lib*.so.*" +RRECOMMENDS_lib${BPN} += "ca-certificates" + +FILES_${PN} += "${datadir}/zsh" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/meta-mediatek-aud/recipes-support/nghttp2/nghttp2_1.26.0.bb b/meta/meta-mediatek-aud/recipes-support/nghttp2/nghttp2_1.26.0.bb index 3ccd486be..83ae3fce4 100644 --- a/meta/meta-mediatek-aud/recipes-support/nghttp2/nghttp2_1.26.0.bb +++ b/meta/meta-mediatek-aud/recipes-support/nghttp2/nghttp2_1.26.0.bb @@ -8,6 +8,7 @@ SRC_URI = "https://github.com/nghttp2/nghttp2/releases/download/v${PV}/nghttp2-$ SRC_URI[md5sum] = "926f07ad3b50f38f7d8935ced04716cf" SRC_URI[sha256sum] = "0df4229f4123b5aa96e834ebcfdffe954e93d986f0252fd10123d50c6f010983" -DEPENDS = "libxml2 openssl zlib jansson cunit c-ares" +DEPENDS = "libxml2 openssl zlib jansson cunit c-ares jemalloc" inherit cmake pythonnative python-dir +INSANE_SKIP_${PN} += "already-stripped ldflags dev-so" \ No newline at end of file diff --git a/meta/meta-mediatek-aud/recipes-support/nghttp2/nghttp2_1.47.0.bb b/meta/meta-mediatek-aud/recipes-support/nghttp2/nghttp2_1.47.0.bb new file mode 100644 index 000000000..06d35cfda --- /dev/null +++ b/meta/meta-mediatek-aud/recipes-support/nghttp2/nghttp2_1.47.0.bb @@ -0,0 +1,13 @@ +SUMMARY = "HTTP/2 C Library and tools" +HOMEPAGE = "https://nghttp2.org/" +SECTION = "libs" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=764abdf30b2eadd37ce47dcbce0ea1ec" + +SRC_URI = "https://github.com/nghttp2/nghttp2/releases/download/v${PV}/nghttp2-${PV}.tar.bz2" +SRC_URI[md5sum] = "2bca98caef4b5c27d5bdc4732f36a5d6" +SRC_URI[sha256sum] = "07c89947438f0254c2f4300a884813431d678cfb2e699d9aacddc28c23e2a685" + +DEPENDS = "libxml2 openssl zlib jansson cunit c-ares" + +inherit cmake pythonnative python-dir \ 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() {