2010-06-02 21:44:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libimobiledevice < Formula
|
2010-06-02 21:44:16 +00:00
|
|
|
homepage 'http://www.libimobiledevice.org/'
|
2012-05-04 09:13:07 +00:00
|
|
|
url 'http://www.libimobiledevice.org/downloads/libimobiledevice-1.1.4.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'd59d9751d9f792e8674cd87c91005d431bf56065'
|
2010-06-02 21:44:16 +00:00
|
|
|
|
2012-04-19 02:37:43 +00:00
|
|
|
head 'http://cgit.sukimashita.com/libimobiledevice.git'
|
2012-01-25 23:10:26 +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'
|
2012-11-15 18:27:17 +00:00
|
|
|
depends_on 'libgcrypt'
|
2010-06-02 21:44:16 +00:00
|
|
|
|
2012-09-03 21:03:11 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-02-27 03:44:55 +00:00
|
|
|
end
|
|
|
|
|
2010-06-02 21:44:16 +00:00
|
|
|
def install
|
2012-09-03 21:03:11 +00:00
|
|
|
if build.head?
|
2012-01-25 23:10:26 +00:00
|
|
|
# fix the m4 problem with the missing pkg.m4
|
2012-02-27 03:44:55 +00:00
|
|
|
ENV['LIBTOOLIZE'] = "glibtoolize"
|
|
|
|
ENV['ACLOCAL'] = "aclocal -I m4 -I #{HOMEBREW_PREFIX}/share/aclocal"
|
2012-01-25 23:10:26 +00:00
|
|
|
ENV.prepend "CFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
|
|
|
|
system "autoreconf -ivf"
|
|
|
|
end
|
|
|
|
|
|
|
|
ENV.append_to_cflags "-std=gnu89" if ENV.compiler == :clang
|
|
|
|
|
2011-05-12 12:53:43 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-05-15 03:58:30 +00:00
|
|
|
# As long as libplist builds without Cython
|
2012-05-04 18:13:02 +00:00
|
|
|
# bindings, libimobiledevice must as well.
|
|
|
|
"--without-cython"
|
2010-06-02 21:44:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|