2010-02-12 00:48:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gource <Formula
|
|
|
|
homepage 'http://code.google.com/p/gource/'
|
2010-04-07 05:58:35 +00:00
|
|
|
url 'git://github.com/acaudwell/Gource.git', :tag => "24feaee4"
|
|
|
|
version "0.27"
|
2010-02-12 00:48:54 +00:00
|
|
|
head 'git://github.com/acaudwell/Gource.git'
|
|
|
|
|
|
|
|
depends_on 'pkg-config'
|
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_image'
|
|
|
|
depends_on 'ftgl'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'libpng'
|
|
|
|
depends_on 'pcre'
|
2010-06-16 14:49:10 +00:00
|
|
|
depends_on 'glew'
|
2010-02-12 00:48:54 +00:00
|
|
|
|
|
|
|
def install
|
2010-04-07 05:58:35 +00:00
|
|
|
ENV.x11 # Put freetype-config in path
|
2010-02-12 00:48:54 +00:00
|
|
|
|
2010-07-31 17:25:49 +00:00
|
|
|
# For non-/usr/local installs
|
|
|
|
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
|
2010-02-12 00:48:54 +00:00
|
|
|
system "autoreconf -f -i" unless File.exist? "configure"
|
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-sdltest",
|
|
|
|
"--disable-freetypetest"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|