aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mscgen.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/mscgen.rb b/Library/Formula/mscgen.rb
index c8274c303..3bc0eacf0 100644
--- a/Library/Formula/mscgen.rb
+++ b/Library/Formula/mscgen.rb
@@ -8,10 +8,15 @@ class Mscgen < Formula
depends_on :x11
depends_on 'pkg-config' => :build
depends_on 'gd' => :recommended
+ depends_on :freetype => :optional
def install
- system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
+ args = ["--prefix=#{prefix}",
+ "--disable-dependency-tracking"]
+
+ args << "--with-freetype" if build.with? 'freetype'
+
+ system "./configure", *args
system "make install"
end
end