diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-04-01 13:45:38 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-04-01 13:45:38 +0800 |
commit | 629fc03d4366c518dcd8fd55a393a2223ef5a7ed (patch) | |
tree | 6cdfa7cdc0a229d3fec32daf9213d99397b9d0f0 | |
parent | 76a6fcbbdcc21904d347879a994728425ebdf03e (diff) | |
download | freebsd-ports-gnome-629fc03d4366c518dcd8fd55a393a2223ef5a7ed.tar.gz freebsd-ports-gnome-629fc03d4366c518dcd8fd55a393a2223ef5a7ed.tar.zst freebsd-ports-gnome-629fc03d4366c518dcd8fd55a393a2223ef5a7ed.zip |
- fix build for png-1.4.1
- bump PORTREVISION
-rw-r--r-- | graphics/evas-loader-png/Makefile | 2 | ||||
-rw-r--r-- | graphics/evas-loader-png/files/patch-evas_image_load_png.c | 11 | ||||
-rw-r--r-- | graphics/evas-loader-svg/Makefile | 2 | ||||
-rw-r--r-- | graphics/evas-loader-svg/files/patch-evas_image_load_png.c | 20 |
4 files changed, 32 insertions, 3 deletions
diff --git a/graphics/evas-loader-png/Makefile b/graphics/evas-loader-png/Makefile index 6fcf2f1ef2b2..2ebbc93f2645 100644 --- a/graphics/evas-loader-png/Makefile +++ b/graphics/evas-loader-png/Makefile @@ -7,7 +7,7 @@ PORTNAME= loader-png PORTVERSION= 0.9.9.042 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= ftp://ftp.springdaemons.com/pub/snapshots/e17/ \ http://download.enlightenment.org/snapshots/2008-01-25/ diff --git a/graphics/evas-loader-png/files/patch-evas_image_load_png.c b/graphics/evas-loader-png/files/patch-evas_image_load_png.c index 7557aa27ea28..b3de3f645163 100644 --- a/graphics/evas-loader-png/files/patch-evas_image_load_png.c +++ b/graphics/evas-loader-png/files/patch-evas_image_load_png.c @@ -1,5 +1,5 @@ --- src/modules/loaders/png/evas_image_load_png.c.orig 2007-10-28 11:35:13.000000000 +0100 -+++ src/modules/loaders/png/evas_image_load_png.c 2010-03-30 14:16:48.000000000 +0200 ++++ src/modules/loaders/png/evas_image_load_png.c 2010-04-01 07:26:03.000000000 +0200 @@ -44,7 +44,7 @@ fclose(f); return 0; @@ -9,3 +9,12 @@ { fclose(f); return 0; +@@ -121,7 +121,7 @@ + + /* if we havent read the header before, set the header data */ + fread(buf, 1, PNG_BYTES_TO_CHECK, f); +- if (!png_check_sig(buf, PNG_BYTES_TO_CHECK)) ++ if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK)) + { + fclose(f); + return 0; diff --git a/graphics/evas-loader-svg/Makefile b/graphics/evas-loader-svg/Makefile index 54626349f102..9e68f39712b1 100644 --- a/graphics/evas-loader-svg/Makefile +++ b/graphics/evas-loader-svg/Makefile @@ -7,7 +7,7 @@ PORTNAME= loader-svg PORTVERSION= 0.9.9.042 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= ftp://ftp.springdaemons.com/pub/snapshots/e17/ \ http://download.enlightenment.org/snapshots/2008-01-25/ diff --git a/graphics/evas-loader-svg/files/patch-evas_image_load_png.c b/graphics/evas-loader-svg/files/patch-evas_image_load_png.c new file mode 100644 index 000000000000..b3de3f645163 --- /dev/null +++ b/graphics/evas-loader-svg/files/patch-evas_image_load_png.c @@ -0,0 +1,20 @@ +--- src/modules/loaders/png/evas_image_load_png.c.orig 2007-10-28 11:35:13.000000000 +0100 ++++ src/modules/loaders/png/evas_image_load_png.c 2010-04-01 07:26:03.000000000 +0200 +@@ -44,7 +44,7 @@ + fclose(f); + return 0; + } +- if (!png_check_sig(buf, PNG_BYTES_TO_CHECK)) ++ if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK)) + { + fclose(f); + return 0; +@@ -121,7 +121,7 @@ + + /* if we havent read the header before, set the header data */ + fread(buf, 1, PNG_BYTES_TO_CHECK, f); +- if (!png_check_sig(buf, PNG_BYTES_TO_CHECK)) ++ if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK)) + { + fclose(f); + return 0; |