2011-01-02 14:21:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Logstalgia < Formula
|
2011-01-02 14:21:15 +00:00
|
|
|
homepage 'http://code.google.com/p/logstalgia/'
|
2012-07-07 18:08:22 +00:00
|
|
|
url 'http://logstalgia.googlecode.com/files/logstalgia-1.0.3.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '9d5db0f3598291b3a7a10b8f4bff9f6164eccadc'
|
2011-01-02 14:21:15 +00:00
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
head 'https://github.com/acaudwell/Logstalgia.git'
|
|
|
|
|
2011-01-02 14:21:15 +00:00
|
|
|
depends_on 'sdl'
|
2012-09-02 08:05:50 +00:00
|
|
|
depends_on :freetype
|
|
|
|
depends_on 'pkg-config' => :build
|
2011-01-02 14:21:15 +00:00
|
|
|
depends_on 'ftgl'
|
2012-09-02 08:05:50 +00:00
|
|
|
depends_on :libpng
|
2011-01-02 14:21:15 +00:00
|
|
|
depends_on 'jpeg'
|
2012-09-02 08:05:50 +00:00
|
|
|
depends_on 'sdl_image'
|
2011-01-02 14:21:15 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
|
2012-09-04 01:30:24 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-02-29 01:44:13 +00:00
|
|
|
end
|
|
|
|
|
2011-01-02 14:21:15 +00:00
|
|
|
def install
|
|
|
|
# For non-/usr/local installs
|
|
|
|
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
|
|
|
|
# Handle building head.
|
2012-09-04 01:30:24 +00:00
|
|
|
system "autoreconf -f -i" if build.head?
|
2011-01-02 14:21:15 +00:00
|
|
|
|
2011-03-31 00:38:53 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-01-02 14:21:15 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|