aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gource.rb
blob: 8463305b7137fcdb6a3d5dc8f2e8305e56ec6a59 (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
32
33
34
35
36
37
38
39
40
41
require 'formula'

class Gource < Formula
  homepage 'http://code.google.com/p/gource/'
  url 'http://gource.googlecode.com/files/gource-0.40.tar.gz'
  sha1 '7af594f84c0ec4c84278a8e9008f83a7a02e97fa'

  head 'https://github.com/acaudwell/Gource.git'

  if build.head?
    depends_on :automake
    depends_on :libtool
  end

  depends_on :x11 if MacOS::X11.installed?
  depends_on :freetype

  depends_on 'pkg-config' => :build
  depends_on 'glm' => :build

  depends_on 'boost'
  depends_on 'glew'
  depends_on 'jpeg'
  depends_on 'pcre'
  depends_on 'sdl'
  depends_on 'sdl_image'

  def install
    # For non-/usr/local installs
    ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"

    system "autoreconf -f -i" if build.head?

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-sdltest",
                          "--without-x",
                          "--disable-freetypetest"
    system "make install"
  end
end