2010-02-12 00:48:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gource < Formula
|
2010-02-12 00:48:54 +00:00
|
|
|
homepage 'http://code.google.com/p/gource/'
|
2013-04-26 05:07:31 +00:00
|
|
|
url 'http://gource.googlecode.com/files/gource-0.40.tar.gz'
|
|
|
|
sha1 '7af594f84c0ec4c84278a8e9008f83a7a02e97fa'
|
2012-07-07 18:08:22 +00:00
|
|
|
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/acaudwell/Gource.git'
|
2010-02-12 00:48:54 +00:00
|
|
|
|
2012-08-31 20:58:04 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
2012-04-20 16:57:19 +00:00
|
|
|
|
2013-01-22 08:43:30 +00:00
|
|
|
depends_on :x11 if MacOS::X11.installed?
|
2012-08-31 20:58:04 +00:00
|
|
|
depends_on :freetype
|
2012-07-07 18:08:22 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'glm' => :build
|
|
|
|
|
2012-04-20 16:57:19 +00:00
|
|
|
depends_on 'boost'
|
|
|
|
depends_on 'glew'
|
2010-02-12 00:48:54 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'pcre'
|
2012-04-20 16:57:19 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_image'
|
2010-02-12 00:48:54 +00:00
|
|
|
|
|
|
|
def install
|
2010-07-31 17:25:49 +00:00
|
|
|
# For non-/usr/local installs
|
|
|
|
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
|
2012-08-31 20:58:04 +00:00
|
|
|
system "autoreconf -f -i" if build.head?
|
2010-02-12 00:48:54 +00:00
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-sdltest",
|
2013-01-22 07:46:23 +00:00
|
|
|
"--without-x",
|
2010-02-12 00:48:54 +00:00
|
|
|
"--disable-freetypetest"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|