aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libimobiledevice.rb
blob: 75b7ce287b2e5939f47294fdc8f005862e147a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Libimobiledevice < Formula
  url 'http://www.libimobiledevice.org/downloads/libimobiledevice-1.0.6.tar.bz2'
  homepage 'http://www.libimobiledevice.org/'
  md5 'bd5cdff5212060ee299481360f67fa24'

  depends_on 'pkg-config' => :build
  depends_on 'libtasn1'
  depends_on 'usbmuxd'
  depends_on 'libplist'
  depends_on 'gnutls'
  depends_on 'glib'

  def install
    ENV.prepend "CFLAGS", "-I#{HOMEBREW_PREFIX}/include"
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--without-swig"
    system "make install"
  end
end