- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 688
 
Closed
Closed
Copy link
Description
Doing so avoids trouble if pkg-config isn't available, and packages look for just libpng.
The header png.h is already installed in $SAGE_LOCAL/include/, and a symbolic link from $SAGE_LOCAL/lib/pkgconfig/libpng.pc to the actual libpng12.pc is also created.
Actually the links (and a compatibility libpng shared library) are created by upstream, but spkg-install deleted these.
Use spkg at:
http://boxen.math.washington.edu/home/jpflori/libpng-1.2.35.p5.spkg
Original changes:
libpng-1.2.35.p4 (Leif Leonhardy, August 17th 2011)
- The libpng12 spkg should also create symbolic links from 
libpng.*for its libraries #11696: Do not delete symbolic links fromlibpng.*(and the shared
library namedlibpng.so.*) in$SAGE_LOCAL/lib; see the comment in
spkg-installfor why (cf. also Race condition in matplotlib mkdir() #11686). - Add 
-L$SAGE_LOCAL/libtoLDFLAGS, since otherwise Sage's zlib won't
be used. - Fix order of additions to flags, and don't drop user's settings. (Some
might still intentionally get overridden though.) - Use 
$MAKE, but also install serially since this shouldn't take much
time and is certainly safer. - Quote also 
$UNAME. 
Further changes:
- Let libpng build a correct import on Cygwin using the SYMBOL_PREFIX trick, seehttp://old.nabble.com/Fwd%3A---libpng-Bugs-2981656---Import-library-definitions-missing-in-Windows-td28130513.html.
 - Further cleanups.
 
CC: @jdemeyer @jhpalmieri @kcrisman @dimpase
Component: packages: standard
Keywords: PNG libpng spkg
Author: Leif Leonhardy, Jean-Pierre Flori
Reviewer: Dmitrii Pasechnik
Merged: sage-5.8.beta1
Issue created by migration from https://trac.sagemath.org/ticket/11696