SBC (Low Complexity Subband Codec) is the audio codec
commonly used in Bluetooth devices.

Signed-off-by: Lucas Stach <l.st...@pengutronix.de>
---
 rules/sbc.in   |  8 +++++++
 rules/sbc.make | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 rules/sbc.in
 create mode 100644 rules/sbc.make

diff --git a/rules/sbc.in b/rules/sbc.in
new file mode 100644
index 000000000000..3d19a36da16b
--- /dev/null
+++ b/rules/sbc.in
@@ -0,0 +1,8 @@
+## SECTION=multimedia_libs
+
+config SBC
+       tristate
+       prompt "sbc"
+       help
+         SBC (Low Complexity Subband Codec) is the audio codec
+         commonly used in Bluetooth devices.
diff --git a/rules/sbc.make b/rules/sbc.make
new file mode 100644
index 000000000000..a7bad239371c
--- /dev/null
+++ b/rules/sbc.make
@@ -0,0 +1,64 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Lucas Stach <l.st...@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SBC) += sbc
+
+#
+# Paths and names
+#
+SBC_VERSION    := 1.3
+SBC_MD5                := 2d8b7841f2c11ab287718d562f2b981c
+SBC            := sbc-$(SBC_VERSION)
+SBC_SUFFIX     := tar.xz
+SBC_URL                := 
https://www.kernel.org/pub/linux/bluetooth/$(SBC).$(SBC_SUFFIX)
+SBC_SOURCE     := $(SRCDIR)/$(SBC).$(SBC_SUFFIX)
+SBC_DIR                := $(BUILDDIR)/$(SBC)
+SBC_LICENSE    := GPL-2.0-only
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+SBC_CONF_TOOL  := autoconf
+SBC_CONF_OPT   := \
+       $(CROSS_AUTOCONF_USR) \
+       --enable-optimization \
+       --disable-debug \
+       --$(call ptx/endis, PTXCONF_TARGET_HARDEN_PIE)-pie \
+       --enable-high-precision \
+       --disable-tools \
+       --disable-tester
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sbc.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, sbc)
+       @$(call install_fixup, sbc,PRIORITY,optional)
+       @$(call install_fixup, sbc,SECTION,base)
+       @$(call install_fixup, sbc,AUTHOR,"Lucas Stach 
<l.st...@pengutronix.de>")
+       @$(call install_fixup, sbc,DESCRIPTION,missing)
+
+       @$(call install_lib, sbc, 0, 0, 0644, libsbc)
+
+       @$(call install_finish, sbc)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.19.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to