7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
31 lines
1 KiB
Ruby
31 lines
1 KiB
Ruby
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
|
|
|
|
ENV.x11 # Put freetype-config in path
|
|
|
|
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
|