Commit 4d2b0ded authored by Leo's avatar Leo

main/mpg123: upgrade to 1.26.0

parent 04b5d664
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123
pkgver=1.25.13
pkgver=1.26.0
pkgrel=0
pkgdesc="Console-based MPEG Audio Player for Layers 1, 2 and 3"
url="http://www.mpg123.org"
......@@ -8,11 +8,12 @@ arch="all"
license="LGPL-2.1-only"
subpackages="$pkgname-libs $pkgname-dev $pkgname-doc"
makedepends="libtool alsa-lib-dev linux-headers"
source="http://www.mpg123.org/download/mpg123-$pkgver.tar.bz2"
source="http://www.mpg123.org/download/mpg123-$pkgver.tar.bz2
fix-s390x.patch
"
options="libtool"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -26,13 +27,12 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="2308a899f47eb0d17a603cb8a19ea07b1f338d85d9c2f798fb55732d77c603802e18b6ca0215cc59ccdd70fe89816c09fd16a6a91b1d1cd3834bd7877239cb39 mpg123-1.25.13.tar.bz2"
sha512sums="0b58b02228f950320fa948fde17730f22a27e7bf6185fe678632281ca230fa5b84358382acb0f1f438631fcdfb93d1dce252d4fbfe616711144f181deb9f2a3e mpg123-1.26.0.tar.bz2
5331a79f9cc33a55a01757f5676d174bad7ce10b05616eebd1554717a01a3c9cb5e3390e1d1e693abfbc4dbdda440dd2eb2eba258fd804e2f7d61a34072d60cd fix-s390x.patch"
Upstream: No (lives in sourceforge)
Reason: Fixes compilation on big endian systems
diff --git a/src/libout123/hextxt.c b/src/libout123/hextxt.c
index 45c8134..f87c0dc 100644
--- a/src/libout123/hextxt.c
+++ b/src/libout123/hextxt.c
@@ -194,6 +194,7 @@ int txt_write(out123_handle *ao, unsigned char *buf, int len)
#define CHANPRINT24(type, ptype, fmt) \
{ \
unsigned char *ff = f; \
+ int c; \
for(c=0; c<ao->channels; ++c) \
{ \
uint32_t tmp = 0; \
diff --git a/src/libmpg123/sample.h b/src/libmpg123/sample.h
index 5a98fe0..4d244fe 100644
--- a/src/libmpg123/sample.h
+++ b/src/libmpg123/sample.h
@@ -185,7 +185,7 @@ static inline int16_t ftoi16(float x)
#ifdef WORDS_BIGENDIAN
/* Highest byte first. Drop last. */
#define DROP4BYTE(w,r) {(w)[0]=(r)[0]; (w)[1]=(r)[1]; (w)[2]=(r)[2];}
-#define ADD4BYTE(w,r) {(w)[0]=(r)[0]; (w)[1]=(r)[1]; (w)[2]=(r)[2]; (w)[3]=0}
+#define ADD4BYTE(w,r) {(w)[0]=(r)[0]; (w)[1]=(r)[1]; (w)[2]=(r)[2]; (w)[3]=0;}
#else
/* Lowest byte first, drop that. */
#define DROP4BYTE(w,r) {(w)[0]=(r)[1]; (w)[1]=(r)[2]; (w)[2]=(r)[3];}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment