2011-01-02 14:21:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Logstalgia < Formula
|
2011-03-08 17:54:54 +00:00
|
|
|
url 'http://logstalgia.googlecode.com/files/logstalgia-1.0.3.tar.gz'
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/acaudwell/Logstalgia.git'
|
2011-01-02 14:21:15 +00:00
|
|
|
homepage 'http://code.google.com/p/logstalgia/'
|
2011-03-08 17:54:54 +00:00
|
|
|
md5 '5160380adb1fb1ed9272cf57fbdf3341'
|
2011-01-02 14:21:15 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_image'
|
|
|
|
depends_on 'ftgl'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
|
2012-02-29 01:47:09 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2012-02-29 01:44:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
2011-01-02 14:21:15 +00:00
|
|
|
def install
|
|
|
|
ENV.x11 # Put freetype-config in path
|
|
|
|
|
|
|
|
# For non-/usr/local installs
|
|
|
|
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
|
|
|
|
# Handle building head.
|
2012-02-29 01:44:13 +00:00
|
|
|
system "autoreconf -f -i" if ARGV.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
|