Compiling libpng for Mac OS X
I thought Mac OS X comes with libpng pre-installed. It’s pretty clear that I was wrong after I failed to compile a game that uses libpng. The good thing about OS X is that, you can just use fink to easily install Unix/Linux binaries. However, the weird thing is, the game configuration still complains that libpng could not be found. So I decided to install libpng from the source code. In case anyone of you out there who may face the same problem as me, you could do as what I describe below....