Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 6 additions & 2 deletions meta-multimedia/recipes-multimedia/pipewire/pipewire_1.6.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ SYSTEMD_PACKAGES = "${PN}"
# AptX and LDAC are not available in OE. Currently, neither
# are lv2, ROC, and libmysofa.
#
# AptX support is only available via freeaptx (libfreeaptx)
# for Bluetooth audio (A2DP).
#
# The RTKit module is deprecated in favor of the newer RT module.
# It still exists for legacy setups that still include it in
# their PipeWire configuration files.
Expand All @@ -61,7 +64,6 @@ EXTRA_OEMESON += " \
-Dsession-managers='[]' \
-Dlv2=disabled \
-Droc=disabled \
-Dbluez5-codec-aptx=disabled \
-Dbluez5-codec-ldac=disabled \
-Dlegacy-rtkit=false \
-Dlibmysofa=disabled \
Expand All @@ -85,7 +87,7 @@ BLUETOOTH_AAC = "${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'b

PACKAGECONFIG:class-target ??= " \
${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez bluez-opus ${BLUETOOTH_AAC}', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez bluez-opus ${BLUETOOTH_AAC} bluez-aptx', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \
${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \
${PIPEWIRE_SESSION_MANAGER} \
Expand All @@ -103,6 +105,8 @@ PACKAGECONFIG[bluez] = "-Dbluez5=enabled,-Dbluez5=disabled,bluez5 sbc glib-2.0-n
PACKAGECONFIG[bluez-aac] = "-Dbluez5-codec-aac=enabled,-Dbluez5-codec-aac=disabled,fdk-aac"
PACKAGECONFIG[bluez-opus] = "-Dbluez5-codec-opus=enabled,-Dbluez5-codec-opus=disabled,libopus"
PACKAGECONFIG[bluez-lc3] = "-Dbluez5-codec-lc3=enabled,-Dbluez5-codec-lc3=disabled,liblc3"
# Eneble libfreeaptx to support bluetooth audio codec
PACKAGECONFIG[bluez-aptx] = "-Dbluez5-codec-aptx=enabled,-Dbluez5-codec-aptx=disabled,libfreeaptx"
# From the pipewire git log:
# "Some Linux phones doesn't use oFono but ModemManager to control the modem."
# This packageconfig enables modemmanager specific code in the BlueZ backend.
Expand Down