libfreeaptx: add aptX/aptX-HD codec library

Add a libfreeaptx recipe (LGPL-2.1+) to provide aptX/aptX-HD codec
support for Bluetooth A2DP audio codec.

Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Shuai Zhang 2026-03-06 18:23:21 +08:00 committed by Khem Raj
parent 001d503fe7
commit d44ea32dba
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -0,0 +1,33 @@
SUMMARY = "Free aptX / aptX-HD audio codec library (LGPL fork of openaptx 0.2.0)"
HOMEPAGE = "https://github.com/regularhunter/libfreeaptx"
LICENSE = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
PV = "0.2.2"
SRC_URI = "git://github.com/regularhunter/libfreeaptx.git;protocol=https;branch=master"
SRCREV = "6dee419f934ec781e531f885f7e8e740752e67d1"
inherit pkgconfig
EXTRA_OEMAKE = "\
LIBDIR=${baselib} \
CFLAGS='${CFLAGS}' \
CPPFLAGS='${CPPFLAGS}' \
LDFLAGS='${LDFLAGS}' \
CP='cp -a --no-preserve=ownership' \
"
do_compile() {
oe_runmake
}
do_install() {
oe_runmake DESTDIR=${D} PREFIX=${prefix} install
}
PACKAGES =+ "${PN}-utils"
FILES:${PN} += "${libdir}/libfreeaptx.so.*"
FILES:${PN}-dev += "${includedir}/freeaptx.h ${libdir}/libfreeaptx.so ${libdir}/pkgconfig/libfreeaptx.pc"
FILES:${PN}-utils += "${bindir}/freeaptxenc ${bindir}/freeaptxdec"