]> git.pld-linux.org Git - packages/gd.git/commitdiff
allow compiling with libpng 1.2.2
authorArtur Frysiak <artur@frysiak.net>
Fri, 26 Apr 2002 15:00:47 +0000 (15:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gd.spec -> 1.65

gd.spec

diff --git a/gd.spec b/gd.spec
index 1f4b02c55d49cae578006319d09e883bcff2de09..21bea8cfe8c241b5c808bcd4d23bfa1b8f162574 100644 (file)
--- a/gd.spec
+++ b/gd.spec
@@ -132,7 +132,10 @@ libtoolize --copy --force
 aclocal
 automake -a -c -f
 autoconf
-%configure
+if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
+       CPPFLAGS="`pkg-config libpng12 --cflags`"
+fi
+%configure CPPFLAGS="$CPPFLAGS"
 %{__make}
 
 %install
This page took 0.166379 seconds and 4 git commands to generate.