2009-11-29 17:02:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Usbmuxd < Formula
|
2009-11-29 17:02:09 +00:00
|
|
|
homepage 'http://marcansoft.com/blog/iphonelinux/usbmuxd/'
|
2012-05-04 09:10:09 +00:00
|
|
|
url 'http://www.libimobiledevice.org/downloads/usbmuxd-1.0.8.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '56bd90d5ff94c1d9c528f8b49deffea25b7384e8'
|
2009-11-29 17:02:09 +00:00
|
|
|
|
2012-05-04 03:37:57 +00:00
|
|
|
head 'http://cgit.sukimashita.com/usbmuxd.git'
|
2012-04-22 08:30:36 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2012-05-04 18:09:33 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
2011-05-10 21:21:58 +00:00
|
|
|
depends_on 'libusb'
|
|
|
|
depends_on 'libplist'
|
2009-11-29 17:02:09 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-04 18:09:33 +00:00
|
|
|
libusb = Formula.factory 'libusb'
|
2010-06-02 20:57:43 +00:00
|
|
|
inreplace 'Modules/VersionTag.cmake', '"sh"', '"bash"'
|
2012-05-04 18:09:33 +00:00
|
|
|
|
|
|
|
# The CMake scripts responsible for locating libusb headers are broken. So,
|
|
|
|
# we explicitly point the build script at the proper directory.
|
2012-05-22 21:37:04 +00:00
|
|
|
mkdir 'build' do
|
|
|
|
system "cmake", "..",
|
|
|
|
"-DLIB_SUFFIX=",
|
|
|
|
"-DUSB_INCLUDE_DIR=#{libusb.include.children.first}",
|
|
|
|
*std_cmake_args
|
2012-05-04 18:09:33 +00:00
|
|
|
system 'make install'
|
|
|
|
end
|
2009-11-29 17:02:09 +00:00
|
|
|
end
|
|
|
|
end
|