mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
- fix build for png-1.4.1
This commit is contained in:
parent
49b35c1ae0
commit
074547cbba
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251639
4 changed files with 24 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
PORTNAME= imlib
|
PORTNAME= imlib
|
||||||
PORTVERSION= 1.9.15
|
PORTVERSION= 1.9.15
|
||||||
PORTREVISION= 10
|
PORTREVISION= 11
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= GNOME
|
MASTER_SITES= GNOME
|
||||||
DIST_SUBDIR= gnome
|
DIST_SUBDIR= gnome
|
||||||
|
|
11
graphics/imlib/files/patch-load.c
Normal file
11
graphics/imlib/files/patch-load.c
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Imlib/load.c.orig 2004-09-21 02:23:20.000000000 +0200
|
||||||
|
+++ Imlib/load.c 2010-03-28 16:23:13.000000000 +0200
|
||||||
|
@@ -1619,7 +1619,7 @@
|
||||||
|
return 0;
|
||||||
|
fread(buf, 1, 8, f);
|
||||||
|
rewind(f);
|
||||||
|
- return (int)png_check_sig(buf, 8);
|
||||||
|
+ return (int)!png_sig_cmp(buf, 0, 8);
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= imlib2
|
PORTNAME= imlib2
|
||||||
PORTVERSION= 1.4.1.000
|
PORTVERSION= 1.4.1.000
|
||||||
PORTREVISION= 4
|
PORTREVISION= 5
|
||||||
PORTEPOCH= 2
|
PORTEPOCH= 2
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= ftp://ftp.springdaemons.com/pub/snapshots/e17/ \
|
MASTER_SITES= ftp://ftp.springdaemons.com/pub/snapshots/e17/ \
|
||||||
|
|
11
graphics/imlib2/files/patch-loader_png.c
Normal file
11
graphics/imlib2/files/patch-loader_png.c
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/modules/loaders/loader_png.c.orig 2007-08-25 04:33:10.000000000 +0200
|
||||||
|
+++ src/modules/loaders/loader_png.c 2010-03-28 16:18:53.000000000 +0200
|
||||||
|
@@ -38,7 +38,7 @@
|
||||||
|
|
||||||
|
/* if we haven't 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_check_sig(buf, 0, PNG_BYTES_TO_CHECK))
|
||||||
|
{
|
||||||
|
fclose(f);
|
||||||
|
return 0;
|
Loading…
Add table
Reference in a new issue