Skip to content


Subversion checkout URL

You can clone with
Download ZIP


libusbx 1.0.14 #18429

wants to merge 3 commits into from

2 participants


There is already a pull request for libusbx 1.0.14:

However, the existing pull request has not been merged as it does not meet the homebrew standards for options. In addition to this "do test" seems incorrect as libusbx does not have libusb-config binary.

My pull request addresses the issues mentioned above.


@adamv Many apologies. I thought I had them all, clearly a case of selective eye-sight!


No worries; I've been staring at formulae for a LONG time.


Closed in favour of #18452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 30 additions and 0 deletions.
  1. +30 −0 Library/Formula/libusbx.rb
30 Library/Formula/libusbx.rb
@@ -0,0 +1,30 @@
+require 'formula'
+class Libusbx < Formula
+ homepage ''
+ url ''
+ sha1 '2896201c54a0a9d0aee724925ab58c96956d5251'
+ conflicts_with 'libusb',
+ :because => 'libusb and libusbx both install'
+ if build.head?
+ depends_on :automake
+ depends_on :libtool
+ end
+ option :universal
+ option 'no-runtime-logging', 'Build without runtime logging functionality'
+ option 'with-default-log-level-debug' 'Build with default runtime log level of debug (instead of none)'
+ def install
+ ENV.universal_binary if build.universal?
+ system "./" if build.head?
+ args = ["--disable-dependency-tracking",
+ "--prefix=#{prefix}"]
+ args << "--disable-log" if build.include?('no-runtime-logging')
+ args << "--enable-debug-log" if build.include?('with-default-log-level-debug')
+ system "./configure", *args
+ system "make install"
+ end
Something went wrong with that request. Please try again.