homebrew-core/Formula/libimobiledevice.rb

43 lines
1.2 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libimobiledevice < Formula
homepage 'http://www.libimobiledevice.org/'
url 'http://www.libimobiledevice.org/downloads/libimobiledevice-1.1.4.tar.bz2'
sha1 'd59d9751d9f792e8674cd87c91005d431bf56065'
2012-04-19 02:37:43 +00:00
head 'http://cgit.sukimashita.com/libimobiledevice.git'
depends_on 'pkg-config' => :build
depends_on 'libtasn1'
depends_on 'glib'
depends_on 'libplist'
depends_on 'usbmuxd'
depends_on 'gnutls'
depends_on 'libgcrypt'
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
end
def install
2012-09-03 21:03:11 +00:00
if build.head?
# fix the m4 problem with the missing pkg.m4
ENV['LIBTOOLIZE'] = "glibtoolize"
ENV['ACLOCAL'] = "aclocal -I m4 -I #{HOMEBREW_PREFIX}/share/aclocal"
ENV.prepend "CFLAGS", "-I#{HOMEBREW_PREFIX}/include"
system "autoreconf -ivf"
end
ENV.append_to_cflags "-std=gnu89" if ENV.compiler == :clang
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
# As long as libplist builds without Cython
# bindings, libimobiledevice must as well.
"--without-cython"
system "make install"
end
end