Blame SOURCES/libpng-multilib.patch

1106d8
Use pkg-config to report libpng version and installation directories.
1106d8
1106d8
1106d8
diff -Naur libpng-1.5.5.orig/libpng-config.in libpng-1.5.5/libpng-config.in
1106d8
--- libpng-1.5.5.orig/libpng-config.in	2011-09-22 09:40:23.000000000 -0400
1106d8
+++ libpng-1.5.5/libpng-config.in	2011-10-05 01:03:32.335435187 -0400
1106d8
@@ -11,11 +11,11 @@
1106d8
 
1106d8
 # Modeled after libxml-config.
1106d8
 
1106d8
-version="@PNGLIB_VERSION@"
1106d8
-prefix="@prefix@"
1106d8
-exec_prefix="@exec_prefix@"
1106d8
-libdir="@libdir@"
1106d8
-includedir="@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
1106d8
+version=`pkg-config --modversion libpng`
1106d8
+prefix=`pkg-config --variable prefix libpng`
1106d8
+exec_prefix=`pkg-config --variable exec_prefix libpng`
1106d8
+libdir=`pkg-config --variable libdir libpng`
1106d8
+includedir=`pkg-config --variable includedir libpng`
1106d8
 libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@"
1106d8
 all_libs="-lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ @LIBS@"
1106d8
 I_opts="-I${includedir}"