xine-lib: fix i686-musl build
This commit is contained in:
parent
8db9855a6d
commit
606e717f5a
|
@ -0,0 +1,29 @@
|
|||
--- contrib/libdha/sysdep/pci_linux.c 2018-01-11 13:49:46.000000000 +0100
|
||||
+++ contrib/libdha/sysdep/pci_linux.c 2018-03-03 12:38:03.867670134 +0100
|
||||
@@ -5,8 +5,12 @@
|
||||
*/
|
||||
#include <errno.h>
|
||||
#ifdef __i386__
|
||||
+#ifdef __GLIBC__
|
||||
#include <sys/perm.h>
|
||||
#else
|
||||
+#define iopl(x) (0)
|
||||
+#endif
|
||||
+#else
|
||||
#ifndef __sparc__
|
||||
#include <sys/io.h>
|
||||
#endif
|
||||
--- src/libw32dll/wine/ldt_keeper.c 2018-01-11 13:49:47.000000000 +0100
|
||||
+++ src/libw32dll/wine/ldt_keeper.c 2018-03-03 12:44:43.660633403 +0100
|
||||
@@ -73,7 +73,11 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
+#ifdef __GLIBC__
|
||||
int modify_ldt(int func, void *ptr, unsigned long bytecount);
|
||||
+#else
|
||||
+static int modify_ldt(int func, void *ptr, unsigned long bytecount) { return -ENOSYS; }
|
||||
+#endif
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
|
@ -20,6 +20,9 @@ homepage="http://www.xine-project.org"
|
|||
distfiles="${SOURCEFORGE_SITE}/xine/$pkgname-$version.tar.xz"
|
||||
checksum=32b34e8049feb762d75a551d5d2cdb56c396fdd83e35b9b7de5fd08e498e948d
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686-musl) configure_args+=" --disable-dha-kmod --disable-vidix" ;;
|
||||
esac
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686*|x86_64*) makedepends+=" libva-glx-devel libvdpau-devel glu-devel";;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue