diff options
| author | eru.tndl | 2013-10-24 13:53:37 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-26 09:53:21 -0700 |
| commit | bf630cda10d0120f7260ef6b54ca2fede0458e51 (patch) | |
| tree | 31863ff976a4b119bda6f434e19812fe672b1247 /Library/Formula | |
| parent | ad6de78c2456086125ed30a2f629a13085429480 (diff) | |
| download | homebrew-bf630cda10d0120f7260ef6b54ca2fede0458e51.tar.bz2 | |
mscgen: add option --with-freetype
Closes #23515.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mscgen.rb | 9 |
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 |
