components/gnuplot/patches/libpng12.patch
changeset 204 78dfe4707c7c
child 778 9d5e4d6466cd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gnuplot/patches/libpng12.patch	Tue Apr 26 14:07:49 2011 -0700
@@ -0,0 +1,22 @@
+--- gnuplot-4.4.0/src/Makefile.am.orig	Fri Mar  5 18:09:39 2010
++++ gnuplot-4.4.0/src/Makefile.am	Tue Apr 19 15:59:18 2011
[email protected]@ -51,7 +51,7 @@
+ template.h term_api.h term.c term.h time.c unset.c util.c util.h \
+ util3d.c util3d.h variable.c variable.h version.c version.h
+ 
+-gnuplot_LDADD = $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS)
++gnuplot_LDADD = $(shell echo -lpng $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) | sed -e s,-lpng[0123456789]*,-lpng12,g)
+ 
+ pkglibexec_PROGRAMS = 
+ 
+--- gnuplot-4.4.0/src/Makefile.in.orig	Sat Mar 13 13:20:04 2010
++++ gnuplot-4.4.0/src/Makefile.in	Tue Apr 19 16:46:03 PDT 2011
[email protected]@ -347,7 +347,7 @@
+ 	template.h term_api.h term.c term.h time.c unset.c util.c \
+ 	util.h util3d.c util3d.h variable.c variable.h version.c \
+ 	version.h $(am__append_2) $(am__append_3)
+-gnuplot_LDADD = $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS)
++gnuplot_LDADD = $(shell echo -lpng $(TERMLIBS) $(TERMXLIBS) $(WX_LIBS) | sed -e s,-lpng[0123456789]*,-lpng12,g)
+ @[email protected]_x11_SOURCES = gplt_x11.c gplt_x11.h gpexecute.c gpexecute.h mousecmn.h
+ @[email protected] = @[email protected]
+ @[email protected]_x11_LDADD = getcolor_x11.o $(XLIBS)