From e13e84821f0d532c43da6b196296e9a99e0452f7 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sat, 13 Feb 2016 22:56:05 +0700 Subject: multimedia/stills2dv: Updated for version alpha_0.602. Signed-off-by: Willy Sudiarto Raharjo --- multimedia/stills2dv/libpng.patch | 57 +++++++++++++++++++++++++++++++ multimedia/stills2dv/stills2dv.SlackBuild | 11 +++--- multimedia/stills2dv/stills2dv.info | 6 ++-- 3 files changed, 67 insertions(+), 7 deletions(-) create mode 100644 multimedia/stills2dv/libpng.patch (limited to 'multimedia') diff --git a/multimedia/stills2dv/libpng.patch b/multimedia/stills2dv/libpng.patch new file mode 100644 index 0000000000..98a070f86e --- /dev/null +++ b/multimedia/stills2dv/libpng.patch @@ -0,0 +1,57 @@ +--- stills2dv-alpha-0.602/s2d_png.c.orig 2016-02-13 22:37:33.318517038 +0700 ++++ stills2dv-alpha-0.602/s2d_png.c 2016-02-13 22:49:22.996228344 +0700 +@@ -75,8 +75,8 @@ + png_init_io(png_ptr, in); + png_set_sig_bytes(png_ptr, 8); + png_read_info(png_ptr, info_ptr); +- width = info_ptr->width; +- height = info_ptr->height; ++ width = png_get_image_width(png_ptr, info_ptr);; ++ height = png_get_image_height(png_ptr, info_ptr); + png_set_interlace_handling(png_ptr); + png_read_update_info(png_ptr, info_ptr); + if (setjmp(png_jmpbuf(png_ptr))) +@@ -91,7 +91,7 @@ + return NULL; + } + for (y=0; yrowbytes))==NULL) ++ if((row_pointers[y] = (unsigned char *) malloc(png_get_rowbytes(png_ptr, info_ptr)))==NULL) + { + fprintf(stderr, "Out of memory allocating rows for png\n"); + while(y>1) +@@ -128,14 +128,14 @@ + free(img); + return NULL; + } +- if(info_ptr->color_type == PNG_COLOR_TYPE_RGB) ++ if(png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB) + { + + for (y=0;ydata[y*width*3], row_pointers[y], width*3); + } +- }else if (info_ptr->color_type == PNG_COLOR_TYPE_RGBA) ++ }else if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGBA) + { + data=img->data; + for (y=0;ycolor_type == PNG_COLOR_TYPE_GRAY) ++ }else if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_GRAY) + { + data=img->data; + for (y=0;ycolor_type == PNG_COLOR_TYPE_GRAY_ALPHA) ++ }else if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_GRAY_ALPHA) + { + data=img->data; + for (y=0;y /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a Makefile README.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.txt $PKG/usr/doc/$PRGNAM-$VERSION cp -a Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/multimedia/stills2dv/stills2dv.info b/multimedia/stills2dv/stills2dv.info index 40c379796e..ee77ce0a1c 100644 --- a/multimedia/stills2dv/stills2dv.info +++ b/multimedia/stills2dv/stills2dv.info @@ -1,8 +1,8 @@ PRGNAM="stills2dv" -VERSION="alpha_0.601" +VERSION="alpha_0.602" HOMEPAGE="http://www.deniscarl.com/stills2dv/" -DOWNLOAD="http://downloads.sourceforge.net/stills2dv/stills2dv-alpha-0.601.tgz" -MD5SUM="8ed69f48d5af651aa70940e64b39c854" +DOWNLOAD="http://downloads.sourceforge.net/stills2dv/stills2dv-alpha-0.602.tgz" +MD5SUM="fd12def0d42275245bf20d5b9384f7fb" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libdv" -- cgit v1.2.3