ghostscript: don't call X11 methods unless X11 is installed
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
1965107f0b
commit
0a3bd92393
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Ghostscript < Formula
|
|||
def install
|
||||
ENV.deparallelize
|
||||
# ghostscript configure ignores LDFLAGs apparently
|
||||
ENV['LIBS'] = "-L#{MacOS::X11.lib}"
|
||||
ENV['LIBS'] = "-L#{MacOS::X11.lib}" if MacOS::X11.installed?
|
||||
|
||||
src_dir = build.head? ? "gs" : "."
|
||||
|
||||
|
|
Loading…
Reference in a new issue