[78153] trunk/dports/graphics/gd2

ryandesign at macports.org ryandesign at macports.org
Tue Apr 26 04:03:43 PDT 2011


Revision: 78153
          http://trac.macports.org/changeset/78153
Author:   ryandesign at macports.org
Date:     2011-04-26 04:03:41 -0700 (Tue, 26 Apr 2011)
Log Message:
-----------
gd2: do not check for and use a libpng12-config; see #29266

Modified Paths:
--------------
    trunk/dports/graphics/gd2/Portfile

Added Paths:
-----------
    trunk/dports/graphics/gd2/files/patch-configure.ac.diff

Modified: trunk/dports/graphics/gd2/Portfile
===================================================================
--- trunk/dports/graphics/gd2/Portfile	2011-04-26 10:50:36 UTC (rev 78152)
+++ trunk/dports/graphics/gd2/Portfile	2011-04-26 11:03:41 UTC (rev 78153)
@@ -55,7 +55,8 @@
                             lib/libiconv.dylib \
                             lib/libexpat.dylib
 
-patchfiles                  patch-gdft.c.diff
+patchfiles                  patch-configure.ac.diff \
+                            patch-gdft.c.diff
 
 post-patch {
     if {[file exists ${prefix}/share/libtool/config/ltmain.sh]} {

Added: trunk/dports/graphics/gd2/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/graphics/gd2/files/patch-configure.ac.diff	                        (rev 0)
+++ trunk/dports/graphics/gd2/files/patch-configure.ac.diff	2011-04-26 11:03:41 UTC (rev 78153)
@@ -0,0 +1,18 @@
+--- configure.ac.orig	2007-04-25 07:48:41.000000000 -0500
++++ configure.ac	2011-04-26 06:01:00.000000000 -0500
+@@ -350,14 +350,8 @@
+ # authors decide to do this AGAIN. Which I really hope they won't. TBB
+ 
+ if test "$withval" != no; then
+-  AC_PATH_PROG([LIBPNG12_CONFIG], [libpng12-config])
+   AC_PATH_PROG([LIBPNG_CONFIG], [libpng-config])
+-  if test -n "$LIBPNG12_CONFIG"; then
+-    libpng_CPPFLAGS=`libpng12-config --cflags`
+-    # should be --ldopts, but it's currently broken
+-    libpng_LDFLAGS=`libpng12-config --ldflags`
+-    libpng_LDFLAGS=`echo " $libpng_LDFLAGS" | sed 's/ -l[[^ ]][[^ ]]*//g'`
+-  elif test -n "$LIBPNG_CONFIG"; then
++  if test -n "$LIBPNG_CONFIG"; then
+     libpng_CPPFLAGS=`libpng-config --cflags`
+     # should be --ldopts, but it's currently broken
+     libpng_LDFLAGS=`libpng-config --ldflags`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110426/8f9ff971/attachment.html>


More information about the macports-changes mailing list