xpdf: add link flags and fix include flag

Closes Homebrew/homebrew#21572.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Dustin Lang 2013-07-31 13:11:01 -04:00 committed by Adam Vandenberg
parent 2c6a9a5e62
commit d1c8851776

View file

@ -12,7 +12,8 @@ class Xpdf < Formula
def patches; DATA; end
def install
ENV.append_to_cflags "-I#{MacOS::X11.include} -#{MacOS::X11.include}/freetype2"
ENV.append_to_cflags "-I#{MacOS::X11.include} -I#{MacOS::X11.include}/freetype2"
ENV.append "LDFLAGS", "-L#{MacOS::X11.lib}"
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make"