36 lines
871 B
Ruby
36 lines
871 B
Ruby
require 'formula'
|
|
|
|
class Logstalgia < Formula
|
|
homepage 'http://code.google.com/p/logstalgia/'
|
|
url 'http://logstalgia.googlecode.com/files/logstalgia-1.0.3.tar.gz'
|
|
sha1 '9d5db0f3598291b3a7a10b8f4bff9f6164eccadc'
|
|
|
|
head 'https://github.com/acaudwell/Logstalgia.git'
|
|
|
|
depends_on 'sdl'
|
|
depends_on :freetype
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'ftgl'
|
|
depends_on :libpng
|
|
depends_on 'jpeg'
|
|
depends_on 'sdl_image'
|
|
depends_on 'pcre'
|
|
|
|
if build.head?
|
|
depends_on :automake
|
|
depends_on :libtool
|
|
end
|
|
|
|
def install
|
|
# 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}"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|