Changeset 97425 for trunk/dports


Ignore:
Timestamp:
Sep 5, 2012, 8:19:58 PM (8 years ago)
Author:
jmr@…
Message:

magicpoint: fix build with giflib 4.2 (#34972) and libpng 1.5

Location:
trunk/dports/graphics/magicpoint
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/magicpoint/Portfile

    r97300 r97425  
    2020patchfiles      patch-config.guess patch-image.h patch-new.c patch-parse.c \
    2121                patch-default.mgp patch-configure patch-freetype.patch \
    22                 patch-image_png.c
     22                patch-image_png.c patch-image_gif.c
    2323
    2424depends_build   port:pkgconfig \
  • trunk/dports/graphics/magicpoint/files/patch-image_png.c

    r82822 r97425  
    11--- image/png.c.orig    2001-04-11 18:37:00.000000000 +1000
    2 +++ image/png.c 2011-08-21 10:56:49.000000000 +1000
     2+++ image/png.c 2012-09-06 06:01:22.000000000 +1000
     3@@ -44,7 +44,7 @@
     4 #define PNG_CHECK_BYTES 4
     5 
     6 int
     7-pngIdent(char *fullname, char *name) {}
     8+pngIdent(char *fullname, char *name) {return 1;}
     9     
     10 Image *
     11 pngLoad(fullname, name, verbose)
     12@@ -86,7 +86,7 @@ pngLoad(fullname, name, verbose)
     13                return NULL;
     14        }
     15 
     16-       if (setjmp(png_ptr->jmpbuf)) {
     17+       if (setjmp(png_jmpbuf(png_ptr))) {
     18                png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
     19                fclose(fp);
     20                return NULL;
    321@@ -134,7 +134,7 @@ pngLoad(fullname, name, verbose)
    422        }
Note: See TracChangeset for help on using the changeset viewer.