diff options
author | drochner <drochner@pkgsrc.org> | 2001-03-28 10:11:41 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2001-03-28 10:11:41 +0000 |
commit | 3bce6f5e3994045114349037123954b52314c13e (patch) | |
tree | 470b98ead5204e4f4de20717d43900014a6e75f6 /devel/libusb | |
parent | 3565bd5bc1a3169f9ea9de4d05349bd684fd12c5 (diff) | |
download | pkgsrc-3bce6f5e3994045114349037123954b52314c13e.tar.gz |
user level USB access library, used by Linux apps mostly
Diffstat (limited to 'devel/libusb')
-rw-r--r-- | devel/libusb/Makefile | 16 | ||||
-rw-r--r-- | devel/libusb/files/md5 | 3 | ||||
-rw-r--r-- | devel/libusb/files/patch-sum | 5 | ||||
-rw-r--r-- | devel/libusb/patches/patch-aa | 13 | ||||
-rw-r--r-- | devel/libusb/patches/patch-ab | 47 | ||||
-rw-r--r-- | devel/libusb/patches/patch-ac | 11 | ||||
-rw-r--r-- | devel/libusb/pkg/DESCR | 1 | ||||
-rw-r--r-- | devel/libusb/pkg/PLIST | 9 |
8 files changed, 105 insertions, 0 deletions
diff --git a/devel/libusb/Makefile b/devel/libusb/Makefile new file mode 100644 index 00000000000..47086db9f70 --- /dev/null +++ b/devel/libusb/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $ +# + +DISTNAME= libusb-0.1.3b +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libusb/} + +MAINTAINER= drochner@netbsd.org +HOMEPAGE= http://libusb.sourceforge.net/ +COMMENT= USB access library + +GNU_CONFIGURE= YES +USE_LIBTOOL= yes +LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/libusb/files/md5 b/devel/libusb/files/md5 new file mode 100644 index 00000000000..486a6e68c72 --- /dev/null +++ b/devel/libusb/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $ + +MD5 (libusb-0.1.3b.tar.gz) = a5d80dff371935ca0bb0e4f9547ac401 diff --git a/devel/libusb/files/patch-sum b/devel/libusb/files/patch-sum new file mode 100644 index 00000000000..9033edc7dfa --- /dev/null +++ b/devel/libusb/files/patch-sum @@ -0,0 +1,5 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $ + +SHA1 (patch-aa) = 38de6f762249a6a2fa5d36bebcca3ce2b17bdb15 +SHA1 (patch-ab) = f4a37ced4335e1ff9ed7060b59f0a59b614eba53 +SHA1 (patch-ac) = 4e68ca416a75d54845bb0c19e17bd1c3d42ed252 diff --git a/devel/libusb/patches/patch-aa b/devel/libusb/patches/patch-aa new file mode 100644 index 00000000000..61147f7dd82 --- /dev/null +++ b/devel/libusb/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $ + +--- configure.orig Fri Feb 16 17:58:02 2001 ++++ configure Fri Feb 16 17:58:29 2001 +@@ -1605,7 +1605,7 @@ + os_support=linux + echo "$ac_t""Linux" 1>&6 + ;; +- *-freebsd*) ++ *-freebsd*|*-netbsd*) + cat >> confdefs.h <<\EOF + #define FREEBSD 1 + EOF diff --git a/devel/libusb/patches/patch-ab b/devel/libusb/patches/patch-ab new file mode 100644 index 00000000000..bd063e02548 --- /dev/null +++ b/devel/libusb/patches/patch-ab @@ -0,0 +1,47 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $ + +--- freebsd.c.orig Fri Feb 16 17:59:02 2001 ++++ freebsd.c Fri Feb 16 17:59:16 2001 +@@ -41,16 +41,18 @@ + { + int i; + struct freebsd_usb_dev_handle_info *info; ++ char ctlpath[PATH_MAX]; + + info = malloc(sizeof(*info)); + if (!info) + USB_ERROR(-ENOMEM); + dev->impl_info = info; + +- dev->fd = open(dev->device->filename, O_RDWR); ++ snprintf(ctlpath, PATH_MAX, "%s.00", dev->device->filename); ++ dev->fd = open(ctlpath, O_RDWR); + if (dev->fd < 0) + { +- dev->fd = open(dev->device->filename, O_RDONLY); ++ dev->fd = open(ctlpath, O_RDONLY); + if (dev->fd < 0) + { + free(info); +@@ -152,7 +154,7 @@ + + if(info->ep_fd[ep] < 0) + { +- sprintf(buf, "%s.%d", dev->device->filename, ep); ++ sprintf(buf, "%s.%02d", dev->device->filename, ep); + fd = open(buf, O_RDONLY); + if(fd < 0) + USB_ERROR_STR(fd, "can't open %s for bulk read: %s\n", +@@ -234,10 +236,12 @@ + req.data = bytes; + req.flags = 0; + ++#if 0 + ret = ioctl(dev->fd, USB_SET_TIMEOUT, &timeout); + if (ret < 0) + USB_ERROR_STR(ret, "error setting timeout: %s", + strerror(errno)); ++#endif + + ret = ioctl(dev->fd, USB_DO_REQUEST, &req); + if (ret < 0) diff --git a/devel/libusb/patches/patch-ac b/devel/libusb/patches/patch-ac new file mode 100644 index 00000000000..971a36d9e12 --- /dev/null +++ b/devel/libusb/patches/patch-ac @@ -0,0 +1,11 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $ + +--- libusb-config.in.orig Fri Feb 16 18:10:59 2001 ++++ libusb-config.in Fri Feb 16 18:12:52 2001 +@@ -75,5 +75,5 @@ + echo $includes + fi + if test "$echo_libs" = "yes"; then +- echo -L@libdir@ -lusb ++ echo -L@libdir@ -Wl,-R@libdir@ -lusb + fi diff --git a/devel/libusb/pkg/DESCR b/devel/libusb/pkg/DESCR new file mode 100644 index 00000000000..3bc1ef98b31 --- /dev/null +++ b/devel/libusb/pkg/DESCR @@ -0,0 +1 @@ +libusb provides a library for application access to USB devices. diff --git a/devel/libusb/pkg/PLIST b/devel/libusb/pkg/PLIST new file mode 100644 index 00000000000..043e43ff04a --- /dev/null +++ b/devel/libusb/pkg/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $ +bin/libusb-config +include/usb.h +lib/libusb-0.1.so.3.0 +lib/libusb-0.1.so.3 +lib/libusb-0.1.so +lib/libusb.so +lib/libusb.la +lib/libusb.a |