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/'
|
2013-03-25 23:21:27 +00:00
|
|
|
url 'http://www.libimobiledevice.org/downloads/libimobiledevice-1.1.5.tar.bz2'
|
|
|
|
sha1 '1c2ce186787fe661d2ef5a1be170ddbe5f85db77'
|
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'
|
|
|
|
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
|
|
|
|
|
|
|
def install
|
2012-01-25 23:10:26 +00:00
|
|
|
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
|