ftgl: make it buildable when doxygen is installed

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Tianyi Cui 2010-09-25 07:19:22 +08:00 committed by Adam Vandenberg
parent 36a56760c3
commit d95a947973

View file

@ -8,14 +8,12 @@ class Ftgl <Formula
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
# 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;"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-freetypetest",