celt051: fix musl build

This commit is contained in:
Alessio Sergi 2015-06-14 15:45:15 +02:00
parent fb4a1e07d8
commit 1f2aec0611
2 changed files with 24 additions and 4 deletions

View File

@ -0,0 +1,20 @@
--- libcelt/ecintrin.h
+++ libcelt/ecintrin.h
@@ -52,8 +52,7 @@
/*Count leading zeros.
This macro should only be used for implementing ec_ilog(), if it is defined.
All other code should use EC_ILOG() instead.*/
-#ifdef __GNUC_PREREQ
-#if __GNUC_PREREQ(3,4)
+#if defined(__GNUC__) && ((__GNUC__<<16)+__GNUC_MINOR__) >= 0x304
# if INT_MAX>=2147483647
# define EC_CLZ0 sizeof(unsigned)*CHAR_BIT
# define EC_CLZ(_x) (__builtin_clz(_x))
@@ -61,7 +60,6 @@
# define EC_CLZ0 sizeof(unsigned long)*CHAR_BIT
# define EC_CLZ(_x) (__builtin_clzl(_x))
# endif
-#endif
#endif
#if defined(EC_CLZ)

View File

@ -1,7 +1,7 @@
# Template file for 'celt051'
pkgname=celt051
version=0.5.1.3
revision=5
revision=6
wrksrc=celt-${version}
build_style=gnu-configure
hostmakedepends="pkg-config"
@ -14,12 +14,12 @@ distfiles="http://downloads.us.xiph.org/releases/celt/celt-${version}.tar.gz"
checksum=fc2e5b68382eb436a38c3104684a6c494df9bde133c139fbba3ddb5d7eaa6a2e
celt051-devel_package() {
depends="libogg-devel ${sourcepkg}>=${version}_${revision}"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}