From 5d62099e5cafbd60c4a1d376a971a7f18acb14e9 Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Wed, 2 Jan 2013 22:34:52 -0800 Subject: [PATCH] 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 --- Formula/doxygen.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Formula/doxygen.rb b/Formula/doxygen.rb index 2c661fee74..8aecdf6fe7 100644 --- a/Formula/doxygen.rb +++ b/Formula/doxygen.rb @@ -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