doxygen: enable dot and GUI

* Add option and depends on graphviz for dot.
* Add option and depends on qt for GUI support.

Closes Homebrew/homebrew#16860.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Xiyue Deng 2013-01-02 22:34:52 -08:00 committed by Adam Vandenberg
parent a0f1df320d
commit 5d62099e5c

View file

@ -8,12 +8,15 @@ class Doxygen < Formula
head 'https://doxygen.svn.sourceforge.net/svnroot/doxygen/trunk'
option 'with-dot', 'Build with dot command support from Graphviz.'
option 'with-doxywizard', 'Build GUI frontend with qt support.'
depends_on 'graphviz' if build.include? 'with-dot'
depends_on 'qt' if build.include? 'with-doxywizard'
def install
system "./configure", "--prefix", prefix
system "make", "CC=#{ENV.cc}",
"CXX=#{ENV.cxx}",
"CFLAGS=#{ENV.cflags}",
"CXXFLAGS=#{ENV.cflags}"
system "make"
# MAN1DIR, relative to the given prefix
system "make", "MAN1DIR=share/man/man1", "install"
end