55 lines
1.3 KiB
Ruby
55 lines
1.3 KiB
Ruby
require "formula"
|
|
|
|
class Gource < Formula
|
|
homepage "http://code.google.com/p/gource/"
|
|
head "https://github.com/acaudwell/Gource.git"
|
|
url "https://github.com/acaudwell/Gource/releases/download/gource-0.42/gource-0.42.tar.gz"
|
|
sha1 "97ebaa5c9dd73698f578c0afd1c6e8d514d7452c"
|
|
|
|
head do
|
|
url "https://github.com/acaudwell/Gource.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on :x11 => :optional
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "glm" => :build
|
|
depends_on "freetype"
|
|
|
|
# boost failing on lion
|
|
depends_on :macos => :mountain_lion
|
|
|
|
if MacOS.version < :mavericks
|
|
depends_on "boost" => "c++11"
|
|
else
|
|
depends_on "boost"
|
|
end
|
|
|
|
depends_on "glew"
|
|
depends_on "jpeg"
|
|
depends_on "pcre"
|
|
depends_on "sdl2"
|
|
depends_on "sdl2_image"
|
|
|
|
needs :cxx11
|
|
|
|
def install
|
|
# clang on Mt. Lion will try to build against libstdc++,
|
|
# despite -std=gnu++0x
|
|
ENV.libcxx
|
|
|
|
# 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}",
|
|
"--without-x"
|
|
system "make install"
|
|
end
|
|
end
|