Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
New formula: libusbx 1.0.14
Browse files Browse the repository at this point in the history
Added homebrew formula for the popular user-space USB library, libusbx 1.0.14

Closes #17186.
Closes #18452.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
Benjamin-Dobell authored and jacknagel committed Apr 14, 2013
1 parent 39d09c7 commit eac04fc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Formula/libusb.rb
Expand Up @@ -7,6 +7,9 @@ class Libusb < Formula

head 'git://git.libusb.org/libusb.git'

conflicts_with 'libusb',
:because => 'both provide libusb compatible libraries'

if build.head?
depends_on :automake
depends_on :libtool
Expand Down
31 changes: 31 additions & 0 deletions Library/Formula/libusbx.rb
@@ -0,0 +1,31 @@
require 'formula'

class Libusbx < Formula
homepage 'http://libusbx.org'
url 'http://downloads.sourceforge.net/project/libusbx/releases/1.0.14/source/libusbx-1.0.14.tar.bz2'
sha1 '2896201c54a0a9d0aee724925ab58c96956d5251'

head 'https://github.com/libusbx/libusbx.git'

conflicts_with 'libusb',
:because => 'both provide libusb compatible libraries'

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 "./autogen.sh" if build.head?
args = %W[--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
end

0 comments on commit eac04fc

Please sign in to comment.