blob: ab94f257e6f19c9d27b817dc2ab1596c51ec37e9 (
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
42
43
44
45
46
47
  | 
require 'formula'
class Logstalgia < Formula
  homepage 'http://code.google.com/p/logstalgia/'
  url 'https://github.com/acaudwell/Logstalgia/releases/download/logstalgia-1.0.5/logstalgia-1.0.5.tar.gz'
  sha1 '3687d67033ef4fa0abebda66fd77c56f7f05bcc7'
  revision 1
  head do
    url 'https://github.com/acaudwell/Logstalgia.git'
    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  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
  |