mxcl/homebrew — pull request #16835 by timsutton (2013-01-02 02:16:52+00:00)
Title: dfu-programmer upgrade to 0.5.5, force legacy libusb support

Release notes:

"This release improves support for Windows users by providing build instructions and a pre-compiled binary and USB driver set. It also fixes operation of the reset command, adds support for the atmega16u2 and improves the operation of autoconf so that building works on more platforms."

As explained in the commit, 0.5.5's configure script seems to not properly configure make to use the newer libusb 1.0.x version. The current 0.5.4 formula is requiring libusb-compat, although because libusb-compat requires libusb, the build will find libusb and link it instead.

I reproduced this issue independent of Homebrew and I've reported it upstream. I think it's worth including this new version using the legacy libusb option for now, as it doesn't change the tool's functionality. There are currently at least two forked versions of dfu-programmer on GitHub that exist only to add support for the atmega16u2 that was added in the official 0.5.5 release.

Tested on 10.6, 10.7, 10.8.