mxcl/homebrew — pull request #12124 by 2bits (2012-05-07 10:02:44+00:00)
Title: ghostscript fix compile error with libtiff-4.0.1

The gs formula stopped working after libtiff was upgraded to 4.0.1.
It gives an error `no rule to make target obj/libtiff_.dev`.
Add the `--with-system-libtiff` flag so it compiles against 4.0.1.
Remove the `--disable-debug` flag, which is not a valid option.

Add deps on little-cms2 and jbig2dec and
Add `lcms2` and `jbig2dec` to the `renames` variable so that gs
will properly link against those two libraries that many people
already have installed who deal with images frequently. Without
those additions on systems with `lcms2` and `jbig2dec` installed,
`configure` will find them but not link correctly against them.

`autogen.sh` automatically calls configure and warns the user
that it is running configure with no args, explaining how to put
the args after `autogen.sh` if args are desired. Do that for
head builds. It is proper and saves configure from being run twice
when brewing head.

Fixes #12098