package/libopenaptx: new package

This adds support for libopenaptx, an aptX encoder and decoder.

Signed-off-by: Yunhao Tian <t123yh.xyz@gmail.com>
[Thomas:
- drop patches that added a CMakeLists.txt and instead use the
Makefile provided by upstream.
- add !BR2_STATIC_LIBS dependency
- add entry in DEVELOPERS file]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Yunhao Tian 2021-11-03 16:31:09 +08:00 committed by Thomas Petazzoni
parent 3965f09cb4
commit 1e4050b2d0
5 changed files with 50 additions and 0 deletions

View File

@ -2966,6 +2966,9 @@ F: support/testing/tests/package/test_libftdi1.py
F: support/testing/tests/package/test_python_can.py
F: utils/scanpypi
N: Yunhao Tian <t123yh.xyz@gmail.com>
F: package/libopenaptx/
N: Zoltan Gyarmati <zgyarmati@zgyarmati.de>
F: package/crudini/
F: package/grantlee/

View File

@ -1744,6 +1744,7 @@ menu "Multimedia"
source "package/libmms/Config.in"
source "package/libmpeg2/Config.in"
source "package/libogg/Config.in"
source "package/libopenaptx/Config.in"
source "package/libopenh264/Config.in"
source "package/libopusenc/Config.in"
source "package/libtheora/Config.in"

View File

@ -0,0 +1,14 @@
config BR2_PACKAGE_LIBOPENAPTX
bool "libopenaptx"
# unconditionallly builds a shared lib
depends on !BR2_STATIC_LIBS
help
This is Open Source implementation of Audio Processing
Technology codec (aptX) originally derived from ffmpeg 4.0
project and licensed under GPLv3+. This codec is mainly used
in Bluetooth A2DP profile.
https://github.com/pali/libopenaptx
comment "libopenaptx needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS

View File

@ -0,0 +1,3 @@
# Locally calculated:
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
sha256 a19b3b642def6f86441b73dd4efda6e6f13d49e7e2d6e5e91cc7eb464ebb505a libopenaptx-0.2.1.tar.gz

View File

@ -0,0 +1,29 @@
################################################################################
#
# libogg
#
################################################################################
LIBOPENAPTX_VERSION = 0.2.1
LIBOPENAPTX_SITE = $(call github,pali,libopenaptx,$(LIBOPENAPTX_VERSION))
LIBOPENAPTX_LICENSE = GPL-3.0
LIBOPENAPTX_LICENSE_FILES = COPYING
LIBOPENAPTX_INSTALL_STAGING = YES
define LIBOPENAPTX_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef
define LIBOPENAPTX_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
DESTDIR=$(TARGET_DIR) \
PREFIX=/usr install
endef
define LIBOPENAPTX_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
DESTDIR=$(STAGING_DIR) \
PREFIX=/usr install
endef
$(eval $(generic-package))