• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Use pkg-config to report libpng version and installation directories.
2
3
4diff -Naur libpng-1.5.5.orig/libpng-config.in libpng-1.5.5/libpng-config.in
5--- libpng-1.5.5.orig/libpng-config.in	2011-09-22 09:40:23.000000000 -0400
6+++ libpng-1.5.5/libpng-config.in	2011-10-05 01:03:32.335435187 -0400
7@@ -11,11 +11,11 @@
8
9 # Modeled after libxml-config.
10
11-version="@PNGLIB_VERSION@"
12-prefix="@prefix@"
13-exec_prefix="@exec_prefix@"
14-libdir="@libdir@"
15-includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
16+version=`pkg-config --modversion libpng`
17+prefix=`pkg-config --variable prefix libpng`
18+exec_prefix=`pkg-config --variable exec_prefix libpng`
19+libdir=`pkg-config --variable libdir libpng`
20+includedir=`pkg-config --variable includedir libpng`
21 libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
22 all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ @LIBS@"
23 I_opts="-I${includedir}"
24