aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/midgard2.rb
blob: ca7e4d25833ccd4e93f3f05cb66a108c6bfebf5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'formula'

class Midgard2 < Formula
  url 'http://www.midgard-project.org/midcom-serveattachmentguid-b459b3e443f711e0a6353dc3bca0241a241a/midgard2-core-10.05.4.tar.gz'
  head 'https://github.com/midgardproject/midgard-core.git', :branch => 'ratatoskr'
  homepage 'http://www.midgard-project.org/'
  md5 '99dcf5d5e39901712a882598e3da17d2'

  depends_on 'pkg-config' => :build
  depends_on 'glib'
  depends_on 'dbus-glib'
  depends_on 'libgda'

  if ARGV.build_head? and MacOS.xcode_version >= "4.3"
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  def install
    if ARGV.build_head?
      system "autoreconf", "-i", "--force"
      system "automake"
    end
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-libgda4",
                          "--with-dbus-support",
                          "--enable-introspection=no"
    system "make install"
  end
end