1. portaudio support libportaudio-dev

2. jemalloc support libjemalloc-dev
3. upgrade curl to 7.83.1
4. upgrade nghttp2 to 1.47.0
This commit is contained in:
Huang Xin 2022-05-13 18:43:47 -07:00
parent 1fc1f2431a
commit 1b646c9f70
7 changed files with 176 additions and 5 deletions

View File

@ -20,6 +20,22 @@ do_install() {
install -m 755 ${S}/include/jemalloc/jemalloc.h ${D}${includedir}/jemalloc install -m 755 ${S}/include/jemalloc/jemalloc.h ${D}${includedir}/jemalloc
} }
FILES_${PN} += "${includedir} ${libdir}" # The base package, this includes everything needed to actually run the application on the target system.
INSANE_SKIP_${PN} += "already-stripped ldflags" PACKAGES += "FILES-${PN}-lib"
FILES_${PN}-dev = "${libdir} ${includedir}"
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 = ""

View File

@ -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 = ""

View File

@ -16,7 +16,7 @@ SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
SRC_URI += " file://configure_ac.patch" SRC_URI += " file://configure_ac.patch"
SRC_URI[md5sum] = "0a6c1e993bd5102bc52fc89900542644" SRC_URI[md5sum] = "0a6c1e993bd5102bc52fc89900542644"
SRC_URI[sha256sum] = "9bab7ed4ecff77020a312d84cc5fb7eb02d58419d218f267477a724a17fd8dd8" SRC_URI[sha256sum] = "93fb2cd4b880656b4e8589c912a9fd092750166d555166370247f09d18f5d0c0"
CVE_PRODUCT = "libcurl" CVE_PRODUCT = "libcurl"
inherit autotools pkgconfig binconfig multilib_header inherit autotools pkgconfig binconfig multilib_header

View File

@ -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"

View File

@ -8,6 +8,7 @@ SRC_URI = "https://github.com/nghttp2/nghttp2/releases/download/v${PV}/nghttp2-$
SRC_URI[md5sum] = "926f07ad3b50f38f7d8935ced04716cf" SRC_URI[md5sum] = "926f07ad3b50f38f7d8935ced04716cf"
SRC_URI[sha256sum] = "0df4229f4123b5aa96e834ebcfdffe954e93d986f0252fd10123d50c6f010983" 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 inherit cmake pythonnative python-dir
INSANE_SKIP_${PN} += "already-stripped ldflags dev-so"

View File

@ -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

View File

@ -15,6 +15,7 @@ CORE_IMAGE_EXTRA_INSTALL += " \
${@base_contains('LICENSE_FLAGS_GMRENDER', 'yes', 'packagegroup-mtk-gstreamer1.0', '' ,d)} \ ${@base_contains('LICENSE_FLAGS_GMRENDER', 'yes', 'packagegroup-mtk-gstreamer1.0', '' ,d)} \
" "
TOOLCHAIN_TARGET_TASK_remove = "ntp"
IMAGE_INSTALL_append = " \ IMAGE_INSTALL_append = " \
${@base_contains('LICENSE_FLAGS_FFMPEG', 'yes', 'ffmpeg', '' ,d)} \ ${@base_contains('LICENSE_FLAGS_FFMPEG', 'yes', 'ffmpeg', '' ,d)} \
@ -64,6 +65,7 @@ IMAGE_INSTALL_append = " \
cunit \ cunit \
nghttp2 \ nghttp2 \
jemalloc \ jemalloc \
portaudio \
" "
install_proc() { install_proc() {