= libpng = == Description == libpng is the official PNG reference library. It supports almost all PNG features, is extensible, and has been extensively tested for over 13 years. The home site for development versions (i.e., may be buggy or subject to change or include experimental features) is http://libpng.sourceforge.net/, and the place to go for questions about the library is the png-mng-implement mailing list. Website: http://www.libpng.org/pub/png/libpng.html == License == The libpng license - see http://www.libpng.org/pub/png/src/libpng-LICENSE.txt == SPKG Maintainers == * William Stein == Upstream Contact == The png mailing lists - see http://www.libpng.org/pub/png/pngmisc.html#lists == Dependencies == This spkg depends on: * libz == Special Update/Build Instructions == * No changes went into src. There are two different tarballs, but we use the one with configure. * On Darwin, the symbolic links libpng.* created by libpng12 may interfere with a system-wide libPng.dylib. This system-wide library is likely to be a different version and on top of that the symbols exported there are prefixed with "_cg" (for "Core Graphics"), so even if by chance the functionalities of the two libraries were interchangeable, libraries or applications looking for one and being presented the other won't find the symbols they expect. Note the uppercase "P" which could prevent this conflict; unfortunately, the default filesystem used by Apple is case-insensitive. Also note there would be no problem if the system-wide library was not looked for when Sage is being built or run, but that's not the case either; it is at least looked for by the "ImageIO" framework: - when Python is built with Mac OS extensions, fixed in #4008; - when Mercurial is built because it uses $EDITOR, cf. #4678; - when R is built and it finds -lpng, cf. #4409 and #11696. As not all of these problems are easily dealt with and new ones may arise, we chose to delete the $SAGE_LOCAL/lib/libpng.* symlinks on Darwin. Therefore, some package as matplotlib (cf. #11686) which by default looks for -lpng are patched to look for -lpng12 (unless pkg-config is installed; in this case indeed we can use a non-conflicting libpng.pc symlinking to libpng12.pc). == Changelog == === libpng-1.2.35.p5 (Leif Leonhardy, Jean-Pierre Flori, 19 February 2013) === * #11696: Correctly build and install libpng. * Delete symlinks from libpng.* in $SAGE_LOCAL/lib on Darwin only. * Fix order of additions of flags and do not drop user settings. * Use $MAKE and quote $UNAME. * Use SYMBOL_PREFIX trick on Cygwin to build a correct import library. === libpng-1.2.35.p4 (Simon King, 10th December 2011) === * #12131: Use --libdir, to make the package work on openSUSE. === libpng-1.2.35.p3 (David Kirkby 1st April 2011) === * Remove the erronous file '.#spkg-install' in the root directory of the package. === libpng-1.2.35.p2 (Mike Hansen, June 4th, 2010) === * #9146: cygwin: gd doesn't correctly link in libpng with sage-4.4.3. === libpng-1.2.35.p1 (Jaap Spies, Feb 1th, 2010) === * Remove duplicate copy of libpng from spkg * #8767: Use CPPFLAGS instead of CFLAGS for include paths === libpng-1.2.35.p0 (Jaap Spies, Feb 1th, 2010) === * === libpng-1.2.35 (Michael Abshoff, April 10th, 2009) === * update to latest upstream due to security issue in libpng (#5696) === libpng-1.2.34 (Michael Abshoff, February 15th, 2009) === * update to latest upstream release (security related) * delete SAGE_LOCAL/lib/libpng.* to avoid OSX specific issues. This required a set of other fixes. * unset RM * check if SAGE_LOCAL is set === libpng-1.2.22.p8 (Michael Abshoff, August 29th, 2008) === * Do not delete libpng.dylib on OSX === libpng-1.2.22.p7 (Michael Abshoff, May 22nd, 2008) === * on OSX: delete libtool files also to make graphviz compile on OSX === libpng-1.2.22.p6 (Michael Abshoff, May 18th, 2008) === * improve 64 bit OSX build support === libpng-1.2.22.p5 (michael Abshoff, Feb. 15th, 2008) === * add OSX 10.5 64 bit support * fix zlib headers detection issue (#2068) === libpng-1.2.22.p4 (Michael Abshoff, Jan. 31st, 2008) === * remove loads of ._* files (#2010)