# $Id: Portfile 78015 2011-04-19 15:58:13Z adfernandes@macports.org $

PortSystem 1.0

name            libusb-devel
version         1.0.8.20101017
revision        1
categories      devel

description         library for USB device access
long_description    library for use by user level applications to \
                    access USB devices regardless of OS
                    
homepage        http://www.libusb.org/

platforms       darwin
license         LGPLv2.1
maintainers     adfernandes openmaintainer

conflicts       libusb

fetch.type      git
git.url         http://git.libusb.org/libusb.git
git.branch      7da756e09fd97efad2b35b5cee0e2b2550aac2cb

depends_build   port:autoconf port:automake port:libtool
pre-configure   { system "cd ${worksrcpath}; ./autogen.sh" }

                # This patch is required for the Kinect: http://openkinect.org/wiki/Getting_Started
                # and is a known issue: <http://vimeo.com/16734124> and <http://www.libusb.org/ticket/31>
patch.pre_args  -p1
patchfiles      patch-USBI_OS_HANDLES_TIMEOUT.diff
        