[137103] trunk/dports/devel/libusb

michaelld at macports.org michaelld at macports.org
Thu Jun 4 16:34:34 PDT 2015


Revision: 137103
          https://trac.macports.org/changeset/137103
Author:   michaelld at macports.org
Date:     2015-06-04 16:34:34 -0700 (Thu, 04 Jun 2015)
Log Message:
-----------
libusb:
+ add devel subport, at latest GIT master commit;
+ add dependency on libtool;
+ fix configure to be more concise and also work robustly.

Modified Paths:
--------------
    trunk/dports/devel/libusb/Portfile

Added Paths:
-----------
    trunk/dports/devel/libusb/files/
    trunk/dports/devel/libusb/files/patch-libusb_os_darwin_usb.h.devel.diff

Modified: trunk/dports/devel/libusb/Portfile
===================================================================
--- trunk/dports/devel/libusb/Portfile	2015-06-04 23:32:58 UTC (rev 137102)
+++ trunk/dports/devel/libusb/Portfile	2015-06-04 23:34:34 UTC (rev 137103)
@@ -17,20 +17,46 @@
 license         LGPL-2.1+
 maintainers     michaelld toby
 
-github.setup    libusb libusb 1.0.19 v
-checksums       rmd160 c1ebcb76759695ef288bf1137e131ca1fa3456df \
-                sha256 5b743a35a13af01f965818ca4a5f78d56b0335426632a6dc5820f5f66fd4edd4
+use_parallel_build no
+dist_subdir     libusb
 
-configure {
-    ui_debug "executing 'cd ${worksrcpath} && CC=${configure.cc} CFLAGS='${configure.cflags}' ./autogen.sh --prefix=${prefix}'"
-    system -W ${worksrcpath} "CC=${configure.cc} CFLAGS='${configure.cflags}' ./autogen.sh  --prefix=${prefix}"
+subport libusb-devel {}
+
+if {${subport} eq ${name}} {
+
+    github.setup    libusb libusb 1.0.19 v
+    checksums       rmd160 c1ebcb76759695ef288bf1137e131ca1fa3456df \
+                    sha256 5b743a35a13af01f965818ca4a5f78d56b0335426632a6dc5820f5f66fd4edd4
+
+    conflicts      libusb-devel
+
+    # overload the github livecheck regex to look for versions that
+    # are just numbers and '.', no letters (e.g., "1.0.19rc1").
+
+    livecheck.regex archive/[join ${github.tag_prefix} ""](\[0-9\.\]+)${extract.suffix}
+
+} else {
+
+    long_description ${long_description} \
+        This port provides devel version of ${name}, updated weekly to monthly.
+
+    github.setup   libusb libusb c141457debff6156b83786eb69b46d873634e5bd
+    version        20150513
+    checksums      rmd160 d0006a4b6ae77975fbb95dba1f48376fc03a5de3 \
+                   sha256 613793e6334d72f0b6fd7b216af3c9b18f702f453749f39dbc503b8b955736db
+
+    conflicts      libusb
+
+    patchfiles     patch-libusb_os_darwin_usb.h.devel.diff
+
 }
 
+homepage         http://libusb.info/
+
+depends_build    port:libtool
+
+configure.cmd    ./autogen.sh
+
 # build verbosely
 
 build.args-append AM_DEFAULT_VERBOSITY=1
-
-# overload the github livecheck regex to look for versions that
-# are just numbers and '.', no letters (e.g., "1.0.19rc1").
-
-livecheck.regex archive/[join ${github.tag_prefix} ""](\[0-9\.\]+)${extract.suffix}

Added: trunk/dports/devel/libusb/files/patch-libusb_os_darwin_usb.h.devel.diff
===================================================================
--- trunk/dports/devel/libusb/files/patch-libusb_os_darwin_usb.h.devel.diff	                        (rev 0)
+++ trunk/dports/devel/libusb/files/patch-libusb_os_darwin_usb.h.devel.diff	2015-06-04 23:34:34 UTC (rev 137103)
@@ -0,0 +1,20 @@
+--- libusb/os/darwin_usb.h.orig	2015-06-04 19:13:30.000000000 -0400
++++ libusb/os/darwin_usb.h	2015-06-04 19:14:06.000000000 -0400
+@@ -28,7 +28,7 @@
+ #include <IOKit/IOCFPlugIn.h>
+ 
+ /* IOUSBInterfaceInferface */
+-#if defined (kIOUSBInterfaceInterfaceID550) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9
++#if defined (kIOUSBInterfaceInterfaceID550) && defined (MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9
+ 
+ #define usb_interface_t IOUSBInterfaceInterface550
+ #define InterfaceInterfaceID kIOUSBInterfaceInterfaceID550
+@@ -65,7 +65,7 @@
+ #endif
+ 
+ /* IOUSBDeviceInterface */
+-#if defined (kIOUSBDeviceInterfaceID500) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9
++#if defined (kIOUSBDeviceInterfaceID500) && defined (MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9
+ 
+ #define usb_device_t    IOUSBDeviceInterface500
+ #define DeviceInterfaceID kIOUSBDeviceInterfaceID500
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150604/8ad78527/attachment.html>


More information about the macports-changes mailing list