mxcl/homebrew — pull request #12451 by netj (2012-05-26 20:18:40+00:00)
Title: Fixed netpbm --HEAD build error and dyld problem

netpbm was not building with the latest HEAD due to a link error caused by [some new code](http://netpbm.svn.sourceforge.net/viewvc/netpbm/trunk/converter/other/giftopnm.c?view=log).

You could say this is an upstream problem, but I believe my fix should go into Homebrew. I simply forced the build config to assume Darwin/BSD (w/ `-D_BSD_SOURCE`), so that'll prevent a lot of potential problems in the future as well. Current formula is trying to reuse default config for GNU with minimal changes, but that doesn't seem wise to me. Recent versions of Netpbm seem to have separate Darwin build configs, so maybe we should switch to that someday.

I also added linker flags for installations outside /usr/local/.

BTW I don't know if the stable version compiles at all. I never seen one working. Can we force it to HEAD build only?