diff options
| author | Charlie Sharpsteen | 2012-05-04 11:09:33 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-05-04 11:09:33 -0700 |
| commit | ebd474c9b6e541a66171f9b1b15fb0d8143077b3 (patch) | |
| tree | 6ffde731c3e74c83103e41bc9fdc86f6aca8366a /Library | |
| parent | 6eb1ec3fa4d7ab18b15b640a4b04e87070972a69 (diff) | |
| download | homebrew-ebd474c9b6e541a66171f9b1b15fb0d8143077b3.tar.bz2 | |
usbmuxd: Pass path to libusb headers to CMake
CMake fails to find this info on it's own.
Fixes #7293.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/usbmuxd.rb | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Library/Formula/usbmuxd.rb b/Library/Formula/usbmuxd.rb index c32609faa..7bec60622 100644 --- a/Library/Formula/usbmuxd.rb +++ b/Library/Formula/usbmuxd.rb @@ -8,12 +8,26 @@ class Usbmuxd < Formula head 'http://cgit.sukimashita.com/usbmuxd.git' depends_on 'cmake' => :build + depends_on 'pkg-config' => :build + depends_on 'libusb' depends_on 'libplist' def install + libusb = Formula.factory 'libusb' inreplace 'Modules/VersionTag.cmake', '"sh"', '"bash"' - system "cmake #{std_cmake_parameters} -DLIB_SUFFIX='' ." - system "make install" + + # The CMake scripts responsible for locating libusb headers are broken. So, + # we explicitly point the build script at the proper directory. + args = std_cmake_parameters.split.concat %W[ + -DLIB_SUFFIX='' + -DUSB_INCLUDE_DIR='#{libusb.include.children.first}' + ] + + mkdir 'build' + chdir 'build' do + system 'cmake', '..', *args + system 'make install' + end end end |
