diff --git a/srcpkgs/libusb/patches/portability-fixes.patch b/srcpkgs/libusb/patches/portability-fixes.patch new file mode 100644 index 00000000000..2f58447426a --- /dev/null +++ b/srcpkgs/libusb/patches/portability-fixes.patch @@ -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 + #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" + + /** diff --git a/srcpkgs/libusb/template b/srcpkgs/libusb/template index 56eb8dde35d..907b438fcf0 100644 --- a/srcpkgs/libusb/template +++ b/srcpkgs/libusb/template @@ -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 " 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 } }