libusb: make this build with musl.
This commit is contained in:
parent
0ded5053e1
commit
bd774ccc0f
|
@ -0,0 +1,16 @@
|
|||
--- libusb/io.c.orig 2014-01-11 16:34:55.811463881 +0100
|
||||
+++ libusb/io.c 2014-01-11 16:35:26.138281377 +0100
|
||||
@@ -34,6 +34,13 @@
|
||||
#include <sys/timerfd.h>
|
||||
#endif
|
||||
|
||||
+#ifndef TIMESPEC_TO_TIMEVAL
|
||||
+#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
|
||||
+ (tv)->tv_sec = (ts)->tv_sec; \
|
||||
+ (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#include "libusbi.h"
|
||||
|
||||
/**
|
|
@ -1,23 +1,22 @@
|
|||
# Template file for 'libusb'
|
||||
pkgname=libusb
|
||||
version=1.0.9
|
||||
build_style=gnu-configure
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
short_desc="A library which allows userspace access to USB devices"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="LGPL-2.1"
|
||||
homepage="http://libusb.sourceforge.net/"
|
||||
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
||||
checksum=e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b
|
||||
long_desc="
|
||||
This package provides a way for applications to access USB devices."
|
||||
|
||||
libusb-devel_package() {
|
||||
depends="libusb>=${version}"
|
||||
depends="libusb>=${version}_${revision}"
|
||||
short_desc+=" -- development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove "usr/lib/*.a"
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/lib/pkgconfig
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue