[54136] trunk/dports/devel
toby at macports.org
toby at macports.org
Tue Jul 21 14:44:26 PDT 2009
Revision: 54136
http://trac.macports.org/changeset/54136
Author: toby at macports.org
Date: 2009-07-21 14:44:26 -0700 (Tue, 21 Jul 2009)
Log Message:
-----------
add libusb1, a port for libusb 1.0.2 (incompatible with libusb 0.x)
Added Paths:
-----------
trunk/dports/devel/libusb1/
trunk/dports/devel/libusb1/Portfile
trunk/dports/devel/libusb1/files/
trunk/dports/devel/libusb1/files/patch-libusb__os__darwin_usb.c
Added: trunk/dports/devel/libusb1/Portfile
===================================================================
--- trunk/dports/devel/libusb1/Portfile (rev 0)
+++ trunk/dports/devel/libusb1/Portfile 2009-07-21 21:44:26 UTC (rev 54136)
@@ -0,0 +1,27 @@
+# $Id$
+
+PortSystem 1.0
+
+name libusb1
+version 1.0.2
+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://libusb.sourceforge.net/
+
+platforms darwin
+#license lgpl2.1+
+maintainers toby
+
+master_sites sourceforge:libusb
+checksums md5 dc8865eaff167aabe78e5799762b8067 \
+ sha1 704a964bbdf5173a9eaedba2ccc486184652c2de \
+ rmd160 5756917a3294822b3d6153930daa05fd593af5d6
+
+distname libusb-${version}
+use_bzip2 yes
+
+patchfiles patch-libusb__os__darwin_usb.c
\ No newline at end of file
Property changes on: trunk/dports/devel/libusb1/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: trunk/dports/devel/libusb1/files/patch-libusb__os__darwin_usb.c
===================================================================
--- trunk/dports/devel/libusb1/files/patch-libusb__os__darwin_usb.c (rev 0)
+++ trunk/dports/devel/libusb1/files/patch-libusb__os__darwin_usb.c 2009-07-21 21:44:26 UTC (rev 54136)
@@ -0,0 +1,30 @@
+--- libusb/os/darwin_usb.c.orig 2009-07-21 14:39:55.000000000 -0700
++++ libusb/os/darwin_usb.c 2009-07-21 14:42:39.000000000 -0700
+@@ -150,7 +150,8 @@
+ io_cf_plugin_ref_t *plugInInterface = NULL;
+ usb_device_t **device;
+ io_service_t usbDevice;
+- long result, score;
++ long result;
++ SInt32 score;
+
+ if (!IOIteratorIsValid (deviceIterator) || !(usbDevice = IOIteratorNext(deviceIterator)))
+ return NULL;
+@@ -278,7 +279,7 @@
+ if (kresult != kIOReturnSuccess) {
+ _usbi_log (ctx, LOG_LEVEL_ERROR, "could not add hotplug event source: %s", darwin_error_str (kresult));
+
+- pthread_exit ((void *)kresult);
++ pthread_exit ((void *)(intptr_t)kresult);
+ }
+
+ /* arm notifiers */
+@@ -767,7 +768,7 @@
+ io_service_t usbInterface = IO_OBJECT_NULL;
+ IOReturn kresult;
+ IOCFPlugInInterface **plugInInterface = NULL;
+- long score;
++ SInt32 score;
+ uint8_t new_config;
+
+ /* current interface */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090721/b1571703/attachment.html>
More information about the macports-changes
mailing list