2010-06-02 21:44:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libimobiledevice < Formula
|
2011-05-12 12:53:43 +00:00
|
|
|
url 'http://www.libimobiledevice.org/downloads/libimobiledevice-1.1.1.tar.bz2'
|
2010-06-02 21:44:16 +00:00
|
|
|
homepage 'http://www.libimobiledevice.org/'
|
2011-05-12 12:53:43 +00:00
|
|
|
md5 'cdc13037e822d9ac2e109536701d153a'
|
2010-06-02 21:44:16 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-02 21:44:16 +00:00
|
|
|
depends_on 'libtasn1'
|
2011-05-12 12:53:43 +00:00
|
|
|
depends_on 'glib'
|
2010-06-02 21:44:16 +00:00
|
|
|
depends_on 'libplist'
|
2011-05-12 12:53:43 +00:00
|
|
|
depends_on 'usbmuxd'
|
2010-06-02 21:44:16 +00:00
|
|
|
depends_on 'gnutls'
|
|
|
|
|
|
|
|
def install
|
2011-02-16 11:01:13 +00:00
|
|
|
ENV.prepend "CFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
2011-05-12 12:53:43 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--without-swig"
|
2010-06-02 21:44:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|