GRASS GIS on Mac OS X

PNG

Last change: 2005/7/18


libpng version: 1.2.8
libpng.org

Important note: There are some security holes in earlier versions of libpng. These have been fixed starting with 1.2.6rc1. Please make sure to get the latest.

libpng doesn't use a configure script, so there's a bit of editing to do. In a Terminal type:

$ cd path_to_folder_containing_libpng_source_tar_gz
$ tar -zxf libpng-1.2.8.tar.gz

From the scripts folder, copy the file makefile.darwin to the top level of the source (ie directly inside libpng-1.2.8), and remove the .darwin extension. Now edit that makefile. Near the top, change the lines that set ZLIBLIB and ZLIBINC to:

ZLIBLIB=/usr/lib
ZLIBINC=/usr/include

And farther down, change the MANPATH line to:

MANPATH=$(prefix)/share/man

Then continue:

$ cd libpng-1.2.8
$ make
$ sudo make install

© 2003-2005 GRASS Development Team
Imprint | Comments about this page
Last change: $Date$