2010-02-12 00:48:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ftgl < Formula
|
2010-02-12 00:48:36 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ftgl/FTGL%20Source/2.1.3~rc5/ftgl-2.1.3-rc5.tar.gz'
|
|
|
|
homepage 'http://sourceforge.net/projects/ftgl/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b9c11d3a594896333f1bbe46e10d8617713b4fc6'
|
2010-02-12 00:48:36 +00:00
|
|
|
|
2012-09-02 07:57:45 +00:00
|
|
|
depends_on :freetype
|
2010-02-12 00:48:36 +00:00
|
|
|
|
|
|
|
def install
|
2010-09-24 23:19:22 +00:00
|
|
|
# If doxygen is installed, the docs may still fail to build.
|
|
|
|
# So we disable building docs.
|
|
|
|
inreplace "configure", "set dummy doxygen;", "set dummy no_doxygen;"
|
|
|
|
|
2010-02-12 00:48:36 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-freetypetest",
|
|
|
|
# Skip building the example program by failing to find GLUT (MacPorts)
|
|
|
|
"--with-glut-inc=/dev/null",
|
|
|
|
"--with-glut-lib=/dev/null"
|
|
|
|
|
|
|
|
# Hack the package info
|
|
|
|
inreplace "ftgl.pc", "Requires.private: freetype2\n", ""
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|