diff -Nru pgplot5-5.2.2/debian/changelog pgplot5-5.2.2/debian/changelog
--- pgplot5-5.2.2/debian/changelog	2012-03-05 13:48:13.000000000 +0900
+++ pgplot5-5.2.2/debian/changelog	2012-03-12 13:06:29.000000000 +0900
@@ -1,3 +1,9 @@
+pgplot5 (5.2.2-19.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@nigauri.org>  Mon, 12 Mar 2012 13:06:21 +0900
+
 pgplot5 (5.2.2-19) unstable; urgency=low
 
   * Change Suggests to libpng-dev instead of libpng12-dev.
diff -Nru pgplot5-5.2.2/debian/patches/libpng15 pgplot5-5.2.2/debian/patches/libpng15
--- pgplot5-5.2.2/debian/patches/libpng15	1970-01-01 09:00:00.000000000 +0900
+++ pgplot5-5.2.2/debian/patches/libpng15	2012-03-12 13:06:48.000000000 +0900
@@ -0,0 +1,39 @@
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ pgplot5 (5.2.2-19.1) unstable; urgency=low
+ .
+   * Non-maintainer upload.
+Author: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- pgplot5-5.2.2.orig/drivers/pndriv.c
++++ pgplot5-5.2.2/drivers/pndriv.c
+@@ -222,7 +222,11 @@ static void write_image_file(DeviceData
+ 	return;
+   }
+ 
++#if PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 4
++  if (setjmp(png_jmpbuf(png_ptr))) {
++#else
+   if (setjmp(png_ptr->jmpbuf)) { /* not really sure what I'm doing here... */
++#endif
+ 	fprintf(stderr,"%s: error in libpng while writing file %s, plotting disabled\n", png_ident, filename);
+ 	png_destroy_write_struct(&png_ptr,&info_ptr);
+ 	dev->error = true;
diff -Nru pgplot5-5.2.2/debian/patches/series pgplot5-5.2.2/debian/patches/series
--- pgplot5-5.2.2/debian/patches/series	2011-11-19 14:12:37.000000000 +0900
+++ pgplot5-5.2.2/debian/patches/series	2012-03-12 13:06:48.000000000 +0900
@@ -1,3 +1,4 @@
 correct-path-locations
 compiler-specific-changes
 linker-specific-changes
+libpng15
