Skip to content

Instantly share code, notes, and snippets.

@chambbj
Created March 28, 2012 18:24
Show Gist options
  • Save chambbj/2229071 to your computer and use it in GitHub Desktop.
Save chambbj/2229071 to your computer and use it in GitHub Desktop.
My libusb-devel formula for Homebrew (for PCL installation on OS X Lion)
require 'formula'
class LibusbDevel < Formula
url 'https://github.com/OpenNI/OpenNI/blob/4dbf64bc45b880bfda6aa6bb2a30d1ddd03a8c65/Platform/Linux/Build/Prerequisites/libusb-1.0.8-osx.tar.bz2?raw=true'
homepage 'http://www.libusb.org/'
md5 '8ad20ec24b7612caf75a059a03f21dd8'
depends_on "automake" => :build
depends_on "libtool" => :build
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "LDFLAGS=-framework IOKit -framework CoreFoundation -arch x86_64", "CFLAGS=-arch x86_64"
system "make"
system "make install"
end
end
@yyx990803
Copy link

saved a lot of time for me, thanks!

@jm3
Copy link

jm3 commented Nov 14, 2015

MD5 support has been dropped for security reasons.
Please switch this formula to SHA256.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment