homebrew-core/Formula/logstalgia.rb
2014-12-04 19:54:17 -05:00

46 lines
1.2 KiB
Ruby

require "formula"
class Logstalgia < Formula
homepage "http://code.google.com/p/logstalgia/"
url "https://github.com/acaudwell/Logstalgia/releases/download/logstalgia-1.0.6/logstalgia-1.0.6.tar.gz"
sha1 "92b2b037d289840517d6648bf72f09afbf3f09d5"
head do
url "https://github.com/acaudwell/Logstalgia.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "sdl2"
depends_on "sdl2_image"
depends_on "freetype"
depends_on "pkg-config" => :build
depends_on "boost" => :build
depends_on "glm" => :build
depends_on "glew"
depends_on "libpng"
depends_on "jpeg"
depends_on "pcre"
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"
# Handle building head.
system "autoreconf -f -i" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-x"
system "make"
system "make install"
end
end