From 5bf84ad0e2828a9642dbe385a1aefdf79b074dce Mon Sep 17 00:00:00 2001 From: naddy Date: Sun, 11 Oct 2009 19:36:15 +0000 Subject: [PATCH] update to 10.26.64 (miscellaneous bug fixes) and prepare for jpeg7 --- graphics/netpbm/Makefile | 4 +- graphics/netpbm/distinfo | 10 +- .../patch-converter_ppm_ppmtompeg_jpeg_c | 15 + graphics/netpbm/pkg/PLIST | 536 +++++++++--------- 4 files changed, 290 insertions(+), 275 deletions(-) create mode 100644 graphics/netpbm/patches/patch-converter_ppm_ppmtompeg_jpeg_c diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile index ce4f0bb18da..055bb8f3855 100644 --- a/graphics/netpbm/Makefile +++ b/graphics/netpbm/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.49 2008/10/25 11:25:10 naddy Exp $ +# $OpenBSD: Makefile,v 1.50 2009/10/11 19:36:15 naddy Exp $ COMMENT= toolkit for converting images between different formats -DISTNAME= netpbm-10.26.57 +DISTNAME= netpbm-10.26.64 SHARED_LIBS= netpbm 1.0 CATEGORIES= graphics HOMEPAGE= http://netpbm.sourceforge.net/ diff --git a/graphics/netpbm/distinfo b/graphics/netpbm/distinfo index cc531be99c1..078eec8ac8a 100644 --- a/graphics/netpbm/distinfo +++ b/graphics/netpbm/distinfo @@ -1,5 +1,5 @@ -MD5 (netpbm-10.26.57.tgz) = KXXpxKkM0W7v92PDjJqnPw== -RMD160 (netpbm-10.26.57.tgz) = afWkTleyHYpF+T6PmC7xbA13Xk4= -SHA1 (netpbm-10.26.57.tgz) = FZ0peQL6y7rkYh4ZREiwGiS682U= -SHA256 (netpbm-10.26.57.tgz) = WduQMkbYzP9T62wuChcRuOv0ubrTKVPiAHWWgNP1A+Q= -SIZE (netpbm-10.26.57.tgz) = 2544590 +MD5 (netpbm-10.26.64.tgz) = qJXwAtjiC8aNAD7nctt28Q== +RMD160 (netpbm-10.26.64.tgz) = w+kiquwyClaS+w1xteNDA9ncL58= +SHA1 (netpbm-10.26.64.tgz) = FRjWJoo1ogix31V9bhkyNtLsVvg= +SHA256 (netpbm-10.26.64.tgz) = HPiRc/FB4uj0bFS5U380TIdPjj/9HUGpXUHeAtknJXs= +SIZE (netpbm-10.26.64.tgz) = 2545993 diff --git a/graphics/netpbm/patches/patch-converter_ppm_ppmtompeg_jpeg_c b/graphics/netpbm/patches/patch-converter_ppm_ppmtompeg_jpeg_c new file mode 100644 index 00000000000..d0bd1ea59e4 --- /dev/null +++ b/graphics/netpbm/patches/patch-converter_ppm_ppmtompeg_jpeg_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-converter_ppm_ppmtompeg_jpeg_c,v 1.1 2009/10/11 19:36:15 naddy Exp $ +--- converter/ppm/ppmtompeg/jpeg.c.orig Sun Oct 11 21:08:27 2009 ++++ converter/ppm/ppmtompeg/jpeg.c Sun Oct 11 21:14:24 2009 +@@ -481,7 +481,11 @@ ReadJPEG(mf, fp) + #ifdef JPEG4 + buffer_height = 8; /* could be 2, 4,8 rows high */ + #else ++#if JPEG_LIB_VERSION < 70 + buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_scaled_size; ++#else ++ buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_v_scaled_size; ++#endif + #endif + + for(cp=0,compptr = cinfo.comp_info;cp