mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-28 20:11:34 +01:00
sbc is crashing due to GCC 5+ generating incorrect code. A patch [1] to fix this was submitted to upstream sbc but there hasn't been any follow up [2]. This patch has been tested with gcc 8.2.0-r1. Before applying this patch bluetooth a2dp audio on an arm device does not work. pulseaudio will crash in sbc_analyze_eight_armv6. After applying this patch bluetooth a2dp audio works. [1] https://marc.info/?l=linux-bluetooth&m=152535913710490&w=2 [2] https://marc.info/?l=linux-bluetooth&m=154464978110178&w=2
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
|
# Maintainer: Mark Riedesel <mark@klowner.com>
|
|
pkgname=sbc
|
|
pkgver=1.3
|
|
pkgrel=1
|
|
pkgdesc="Bluetooth Subband Codec (SBC) library"
|
|
url="http://www.bluez.org/"
|
|
arch="all"
|
|
options="!check" # No tests.
|
|
license="LGPL"
|
|
depends=""
|
|
depends_dev="libsndfile-dev"
|
|
makedepends="$depends_dev linux-headers"
|
|
subpackages="$pkgname-dev $pkgname-utils"
|
|
source="https://www.kernel.org/pub/linux/bluetooth/sbc-$pkgver.tar.xz
|
|
fix-armv6-assembly.patch
|
|
"
|
|
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
prepare() {
|
|
default_prepare
|
|
update_config_sub
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
utils() {
|
|
pkgdesc="sbc utilities"
|
|
mkdir -p "$subpkgdir"/usr
|
|
mv "$pkgdir"/usr/bin \
|
|
"$subpkgdir"/usr/
|
|
}
|
|
|
|
sha512sums="c11cb1ede8abdb226d404ce34307d217b716b91cbe550ed90cb5387b062b7b97a6b7a81371de6f462d8c1429cb3299869a1bda347fa175e9d81cfa2bc2056c8b sbc-1.3.tar.xz
|
|
73e8f3ab7962c5a32d533bd9cdba3e84f2ae54c02fc157cccb0b9c6b6fa227b2a7d6c1d52fffc77cb74951ebc225e60b58d0177dc3d488fd870ea17bb540f102 fix-armv6-assembly.patch"
|