aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDavid Gageot2010-02-11 16:48:36 -0800
committerAdam Vandenberg2010-04-18 20:47:00 -0700
commit3b74647045db521114015fdbc5ec47baf188cb66 (patch)
tree7d000ab3621dc2b054e78ee68cca737b58afc9d1 /Library/Formula
parentce337af8ffe383078c19108c6e18131ffcf004a9 (diff)
downloadhomebrew-3b74647045db521114015fdbc5ec47baf188cb66.tar.bz2
ftgl 2.1.3-rc5
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Fixes to find Freetype. * Warning about building documentation.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ftgl.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/ftgl.rb b/Library/Formula/ftgl.rb
new file mode 100644
index 000000000..24c79117f
--- /dev/null
+++ b/Library/Formula/ftgl.rb
@@ -0,0 +1,33 @@
+require 'formula'
+
+class Ftgl <Formula
+ 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/'
+ md5 'fcf4d0567b7de9875d4e99a9f7423633'
+
+ depends_on 'pkg-config'
+
+ def install
+ if Formula.factory("doxygen").installed?
+ puts "If doxygen is installed, the docs may still fail to build."
+ puts "Try \"brew unlink doxygen\" before installing ftgl, and then"
+ puts "use \"brew link doxygen\" afterwards to reactivate it."
+ end
+
+ # Freetype - include headers, libs and put freetype-config in path
+ ENV.prepend 'PATH', "/usr/X11/bin", ":"
+ ENV.x11
+
+ 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