2011-03-10 05:11:03 +00:00
|
|
|
class Ftgl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Freetype / OpenGL bridge"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://sourceforge.net/projects/ftgl/"
|
|
|
|
url "https://downloads.sourceforge.net/project/ftgl/FTGL%20Source/2.1.3~rc5/ftgl-2.1.3-rc5.tar.gz"
|
|
|
|
sha256 "5458d62122454869572d39f8aa85745fc05d5518001bcefa63bd6cbb8d26565b"
|
2010-02-12 00:48:36 +00:00
|
|
|
|
2015-08-03 12:55:31 +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",
|
2015-08-03 12:55:31 +00:00
|
|
|
# Skip building the example program by failing to find GLUT (MacPorts)
|
2010-02-12 00:48:36 +00:00
|
|
|
"--with-glut-inc=/dev/null",
|
|
|
|
"--with-glut-lib=/dev/null"
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-02-12 00:48:36 +00:00
|
|
|
end
|
|
|
|
end
|